summaryrefslogtreecommitdiffstats
path: root/kpdf/conf/preferencesdialog.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2025-04-09 17:18:28 +0300
committerMavridis Philippe <mavridisf@gmail.com>2025-04-14 19:11:08 +0300
commit8fc0d1697439a9d020a8a7c0deb504b71b20a671 (patch)
treeedb15c52b6f2016a86b92abc3f20597bdb799c99 /kpdf/conf/preferencesdialog.cpp
parent4c0b40a916e69640fde5784471469723a0d7a9ae (diff)
downloadtdegraphics-8fc0d1697439a9d020a8a7c0deb504b71b20a671.tar.gz
tdegraphics-8fc0d1697439a9d020a8a7c0deb504b71b20a671.zip
KPDF Shell: Add option to show close button on tabs
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit eea9673d2a3ac7ef6f7cb5f973c502eb7af8419d)
Diffstat (limited to 'kpdf/conf/preferencesdialog.cpp')
-rw-r--r--kpdf/conf/preferencesdialog.cpp30
1 files changed, 20 insertions, 10 deletions
diff --git a/kpdf/conf/preferencesdialog.cpp b/kpdf/conf/preferencesdialog.cpp
index 3b8de428..814c5301 100644
--- a/kpdf/conf/preferencesdialog.cpp
+++ b/kpdf/conf/preferencesdialog.cpp
@@ -8,6 +8,7 @@
***************************************************************************/
#include <tdelocale.h>
+#include <tqcheckbox.h>
// single config pages
#include "dlggeneral.h"
@@ -19,16 +20,25 @@
#include "preferencesdialog.h"
PreferencesDialog::PreferencesDialog( TQWidget * parent, TDEConfigSkeleton * skeleton )
- : TDEConfigDialog( parent, "preferences", skeleton )
+ : TDEConfigDialog( parent, "preferences", skeleton ),
+ m_shellMode(false)
{
- m_general = new DlgGeneral(0);
- m_performance = new DlgPerformance(0);
- m_accessibility = new DlgAccessibility(0);
- m_presentation = new DlgPresentation(0);
+ m_general = new DlgGeneral(nullptr);
+ m_performance = new DlgPerformance(nullptr);
+ m_accessibility = new DlgAccessibility(nullptr);
+ m_presentation = new DlgPresentation(nullptr);
- addPage( m_general, i18n("General"), "kpdf", i18n("General Options") );
- addPage( m_accessibility, i18n("Accessibility"), "access", i18n("Reading Aids") );
- addPage( m_performance, i18n("Performance"), "launch", i18n("Performance Tuning") );
- addPage( m_presentation, i18n("Presentation"), "application-x-kpresenter",
- i18n("Options for Presentation Mode") );
+ addPage(m_general, i18n("General"), "kpdf", i18n("General Options"));
+ addPage(m_accessibility, i18n("Accessibility"), "access", i18n("Reading Aids"));
+ addPage(m_performance, i18n("Performance"), "launch", i18n("Performance Tuning"));
+ addPage(m_presentation, i18n("Presentation"), "application-x-kpresenter",
+ i18n("Options for Presentation Mode"));
+
+ setShellMode(m_shellMode);
+}
+
+void PreferencesDialog::setShellMode(bool on)
+{
+ m_shellMode = on;
+ m_general->kcfg_TabsHoverCloseButton->setHidden(!m_shellMode);
}