X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=c48e4955853c03f469af71149129dfa565127d36;hb=aca3bbeca7fee2ff50918a9d09a41be4edf1140c;hp=3564a8e7a71d32e638d4a6a0683de73552fa4473;hpb=255215b082091aaadd5ef24cfc0880cd81e42272;p=PrivacyBrowserPC.git diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3564a8e..c48e495 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -38,17 +38,6 @@ MainWindow::MainWindow() : KXmlGuiWindow() // Get a handle for the action collectoin. KActionCollection *actionCollectionPointer = this->actionCollection(); - // Create a switch colorsaction pointer. - QAction *switchColorsActionPointer; - - // Populate the switch colors action pointer. - switchColorsActionPointer = actionCollectionPointer->addAction(QStringLiteral("switch_action")); - switchColorsActionPointer->setText(i18nc("@action", "Switch Colors")); - switchColorsActionPointer->setIcon(QIcon::fromTheme(QStringLiteral("fill-color"))); - - // Connect the signals to the slots. - connect(switchColorsActionPointer, &QAction::triggered, mainViewPointer, &MainView::switchColors); - // Add the standard actions. KStandardAction::openNew(this, SLOT(fileNew()), actionCollectionPointer); KStandardAction::quit(qApp, SLOT(closeAllWindows()), actionCollectionPointer); @@ -82,7 +71,7 @@ void MainWindow::settingsConfigure() KConfigDialog *configDialogPointer = new KConfigDialog(this, QStringLiteral("settings"), Settings::self()); // Add the general settings widget page. - configDialogPointer->addPage(generalSettingsWidgetPointer, i18nc("@title:tab", "General"), QStringLiteral("package_setting")); + configDialogPointer->addPage(generalSettingsWidgetPointer, i18nc("@title:tab", "General"), QStringLiteral("breeze-settings")); // Delete the config dialog when it is closed. configDialogPointer->setAttribute(Qt::WA_DeleteOnClose);