forked from qt-creator/qt-creator
SubmitEditorWidget: Inline two small functions
Change-Id: Ia9b2c451a587d418ccf39707c25d8aff062f6ed8 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
3f61e9a391
commit
41cb713370
@@ -622,16 +622,6 @@ void SubmitEditorWidget::checkAllToggled()
|
|||||||
d->m_ui.checkAllCheckBox->setTristate(false);
|
d->m_ui.checkAllCheckBox->setTristate(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SubmitEditorWidget::checkAll()
|
|
||||||
{
|
|
||||||
fileModel()->setAllChecked(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SubmitEditorWidget::uncheckAll()
|
|
||||||
{
|
|
||||||
fileModel()->setAllChecked(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SubmitEditorWidget::fileListCustomContextMenuRequested(const QPoint & pos)
|
void SubmitEditorWidget::fileListCustomContextMenuRequested(const QPoint & pos)
|
||||||
{
|
{
|
||||||
// Execute menu offering to check/uncheck all
|
// 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 *uncheckAllAction = menu.addAction(tr("Unselect All"));
|
||||||
QAction *action = menu.exec(d->m_ui.fileView->mapToGlobal(pos));
|
QAction *action = menu.exec(d->m_ui.fileView->mapToGlobal(pos));
|
||||||
if (action == checkAllAction) {
|
if (action == checkAllAction) {
|
||||||
checkAll();
|
fileModel()->setAllChecked(true);;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (action == uncheckAllAction) {
|
if (action == uncheckAllAction) {
|
||||||
uncheckAll();
|
fileModel()->setAllChecked(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -124,8 +124,6 @@ protected slots:
|
|||||||
private:
|
private:
|
||||||
void updateCheckAllComboBox();
|
void updateCheckAllComboBox();
|
||||||
void checkAllToggled();
|
void checkAllToggled();
|
||||||
void checkAll();
|
|
||||||
void uncheckAll();
|
|
||||||
|
|
||||||
void triggerDiffSelected();
|
void triggerDiffSelected();
|
||||||
void diffActivated(const QModelIndex &index);
|
void diffActivated(const QModelIndex &index);
|
||||||
|
Reference in New Issue
Block a user