[graphics/kuickshow] src: KuickConfigDialog: Add icons to tabs

Jonathan Marten <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 5d70203e656b70898ddd00b61b9b477dbb6c442e by Jonathan Marten.
Committed on 16/07/2026 at 17:23.
Pushed by marten into branch 'master'.

KuickConfigDialog: Add icons to tabs

M  +10   -5    src/kuickconfigdlg.cpp

https://invent.kde.org/graphics/kuickshow/-/commit/5d70203e656b70898ddd00b61b9b477dbb6c442e

diff --git a/src/kuickconfigdlg.cpp b/src/kuickconfigdlg.cpp
index fb412d7..6c387bc 100644
--- a/src/kuickconfigdlg.cpp
+++ b/src/kuickconfigdlg.cpp
@@ -43,24 +43,29 @@ KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, QWidget *parent,
 
     generalWidget = new GeneralWidget( this );
     generalWidget->setObjectName( QString::fromLatin1( "general widget" ) );
-    addPage( generalWidget, i18n("&General") );
+    KPageWidgetItem *page = addPage( generalWidget, i18n("&General") );
+    page->setIcon(QIcon::fromTheme("configure"));
 
     defaultsWidget = new DefaultsWidget( this );
     defaultsWidget->setObjectName( QString::fromLatin1( "defaults widget" ) );
-    addPage( defaultsWidget, i18n("&Modifications") );
+    page = addPage( defaultsWidget, i18n("&Modifications") );
+    page->setIcon(QIcon::fromTheme("calibrate"));
 
     slideshowWidget = new SlideShowWidget( this );
     slideshowWidget->setObjectName( QString::fromLatin1( "slideshow widget" ) );
-    addPage( slideshowWidget, i18n("&Slideshow")  );
+    page = addPage( slideshowWidget, i18n("&Slideshow")  );
+    page->setIcon(QIcon::fromTheme("ksslide"));
 
     // TODO: this can be a child of us, then no need to delete in destructor
     imageWindow = new ImageWindow(); // just to get the accel...
     imageWindow->hide();
     imageKeyChooser = new KShortcutsEditor( imageWindow->actionCollection(), this );
-    addPage( imageKeyChooser, i18n("&Viewer Shortcuts") );
+    page = addPage( imageKeyChooser, i18n("&Viewer Shortcuts") );
+    page->setIcon(QIcon::fromTheme("configure-shortcuts"));
 
     browserKeyChooser = new KShortcutsEditor( coll, this );
-    addPage( browserKeyChooser, i18n("Bro&wser Shortcuts") );
+    page = addPage( browserKeyChooser, i18n("Bro&wser Shortcuts") );
+    page->setIcon(QIcon::fromTheme("configure-shortcuts"));
 
     connect(buttonBox()->button(QDialogButtonBox::RestoreDefaults), &QAbstractButton::clicked,
             this, &KuickConfigDialog::resetDefaults);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.