+ // 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);
+
+ KStandardAction::openNew(this, SLOT(fileNew()), actionCollectionPointer);
+ KStandardAction::quit(qApp, SLOT(closeAllWindows()), actionCollectionPointer);
+ KStandardAction::preferences(this, SLOT(settingsConfigure()), actionCollectionPointer);
+
+ setupGUI();