Skip to content

Commit

Permalink
ステータスバー更新の最適化
Browse files Browse the repository at this point in the history
  • Loading branch information
soramimi committed Feb 12, 2025
1 parent 764cf33 commit a5ee6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ MainWindow::MainWindow(QWidget *parent)

connectSetCommitLog();

connect(ui->tableWidget_log, &CommitLogTableWidget::currentRowChanged, this, &MainWindow::on_tableWidget_log_currentRowChanged);
connect(ui->tableWidget_log, &CommitLogTableWidget::currentRowChanged, this, &MainWindow::onCommitLogCurrentRowChanged);

initUpdateFileListTimer();

Expand Down Expand Up @@ -7139,7 +7139,7 @@ void MainWindow::selectLogTableRow(int row)
ui->tableWidget_log->selectRow(row);
}

void MainWindow::on_tableWidget_log_currentRowChanged(int row)
void MainWindow::onCommitLogCurrentRowChanged(int row)
{
onLogCurrentItemChanged();
updateStatusBarText(); // ステータスバー更新
Expand Down
2 changes: 1 addition & 1 deletion src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ private slots:
void onSetCommitLog(const CommitLogExchangeData &log);
void connectSetCommitLog();

void on_tableWidget_log_currentRowChanged(int row);
void onCommitLogCurrentRowChanged(int row);
public:
void setCommitLog(const CommitLogExchangeData &exdata);

Expand Down

0 comments on commit a5ee6ad

Please sign in to comment.