forked from qt-creator/qt-creator
Utils: More forward declarations / drop unused headers [D-G]
Round 1 - focus on headers. For classes with initial in range [D-G]. Try to keep the same separators between different kind of headers. Change-Id: Id42cd7b3743a816f75cecb6b576c0e37cb057473 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -254,7 +254,7 @@ DockWidget::DockWidget(QWidget *inner, FancyMainWindow *parent, bool immutable)
|
||||
|
||||
QString title = inner->windowTitle();
|
||||
toggleViewAction()->setProperty("original_title", title);
|
||||
title = Utils::stripAccelerator(title);
|
||||
title = stripAccelerator(title);
|
||||
setWindowTitle(title);
|
||||
|
||||
QStyleOptionDockWidget opt;
|
||||
@@ -547,7 +547,7 @@ void FancyMainWindow::addDockActionsToMenu(QMenu *menu)
|
||||
actions.append(action);
|
||||
}
|
||||
}
|
||||
Utils::sort(actions, [](const QAction *action1, const QAction *action2) {
|
||||
sort(actions, [](const QAction *action1, const QAction *action2) {
|
||||
QTC_ASSERT(action1, return true);
|
||||
QTC_ASSERT(action2, return false);
|
||||
return stripAccelerator(action1->text()).toLower() < stripAccelerator(action2->text()).toLower();
|
||||
|
||||
Reference in New Issue
Block a user