SubmitEditorWidget: Inline two small functions

Change-Id: Ia9b2c451a587d418ccf39707c25d8aff062f6ed8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2020-02-28 11:40:26 +01:00
committed by André Hartmann
parent 3f61e9a391
commit 41cb713370
2 changed files with 2 additions and 14 deletions

View File

@@ -622,16 +622,6 @@ void SubmitEditorWidget::checkAllToggled()
d->m_ui.checkAllCheckBox->setTristate(false);
}
void SubmitEditorWidget::checkAll()
{
fileModel()->setAllChecked(true);
}
void SubmitEditorWidget::uncheckAll()
{
fileModel()->setAllChecked(false);
}
void SubmitEditorWidget::fileListCustomContextMenuRequested(const QPoint & pos)
{
// Execute menu offering to check/uncheck all
@@ -642,11 +632,11 @@ void SubmitEditorWidget::fileListCustomContextMenuRequested(const QPoint & pos)
QAction *uncheckAllAction = menu.addAction(tr("Unselect All"));
QAction *action = menu.exec(d->m_ui.fileView->mapToGlobal(pos));
if (action == checkAllAction) {
checkAll();
fileModel()->setAllChecked(true);;
return;
}
if (action == uncheckAllAction) {
uncheckAll();
fileModel()->setAllChecked(false);
return;
}
}

View File

@@ -124,8 +124,6 @@ protected slots:
private:
void updateCheckAllComboBox();
void checkAllToggled();
void checkAll();
void uncheckAll();
void triggerDiffSelected();
void diffActivated(const QModelIndex &index);