mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
refactor: Fix clang-tidy modernize-use-auto
This commit is contained in:
@@ -184,7 +184,7 @@ QAction *SwiftGuiStd::getWindowMinimizeAction(QObject *parent)
|
||||
{
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarMinButton),
|
||||
Qt::white, QSize(16, 16)));
|
||||
QAction *a = new QAction(i, "Window minimized", parent);
|
||||
auto a = new QAction(i, "Window minimized", parent);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::showMinimized);
|
||||
return a;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ QAction *SwiftGuiStd::getWindowNormalAction(QObject *parent)
|
||||
{
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarNormalButton),
|
||||
Qt::white, QSize(16, 16)));
|
||||
QAction *a = new QAction(i, "Window normal", parent);
|
||||
auto a = new QAction(i, "Window normal", parent);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::showNormal);
|
||||
return a;
|
||||
}
|
||||
@@ -202,7 +202,7 @@ QAction *SwiftGuiStd::getToggleWindowVisibilityAction(QObject *parent)
|
||||
{
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarShadeButton),
|
||||
Qt::white, QSize(16, 16)));
|
||||
QAction *a = new QAction(i, "Toogle main window visibility", parent);
|
||||
auto a = new QAction(i, "Toogle main window visibility", parent);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::toggleWindowVisibility);
|
||||
return a;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ QAction *SwiftGuiStd::getToggleStayOnTopAction(QObject *parent)
|
||||
{
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarUnshadeButton),
|
||||
Qt::white, QSize(16, 16)));
|
||||
QAction *a = new QAction(i, "Toogle main window on top", parent);
|
||||
auto a = new QAction(i, "Toogle main window on top", parent);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::toggleWindowStayOnTop);
|
||||
return a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user