mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Fixed clazy warnings: new-style signal/slot connect syntax.
This commit is contained in:
@@ -42,7 +42,7 @@ namespace BlackGui
|
||||
void CConsoleTextEdit::customMenuRequested(const QPoint &pos)
|
||||
{
|
||||
QMenu *menu = QPlainTextEdit::createStandardContextMenu();
|
||||
menu->addAction(CIcons::delete16(), "Clear console", this, SLOT(clear()));
|
||||
menu->addAction(CIcons::delete16(), "Clear console", this, &QPlainTextEdit::clear);
|
||||
menu->exec(this->mapToGlobal(pos));
|
||||
}
|
||||
|
||||
|
||||
@@ -349,7 +349,7 @@ namespace BlackGui
|
||||
a = contextMenu->addAction(CIcons::resize16(), "2 columns", this, &CNavigatorDialog::changeLayout);
|
||||
a->setData("2c");
|
||||
const QString frameLessActionText = this->isFrameless() ? "Normal window" : "Frameless";
|
||||
contextMenu->addAction(CIcons::tableSheet16(), frameLessActionText, this, SLOT(toggleFrameless()));
|
||||
contextMenu->addAction(CIcons::tableSheet16(), frameLessActionText, this, &CNavigatorDialog::toggleFrameless);
|
||||
contextMenu->addAction("Adjust margins", this, &CNavigatorDialog::dummyFunction);
|
||||
contextMenu->addAction(m_marginMenuAction);
|
||||
contextMenu->addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user