diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 20:58:07 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 20:58:07 -0600 |
commit | 2b96a180208a07ef56af8796c22a869ab90cebc8 (patch) | |
tree | bac4cdabe5a8dd5f3d27f3454ac04b2b33935b77 /kcontrol | |
parent | d9087191ac7b27ca0e8f55704bc2301dfe24fe96 (diff) | |
download | tdebase-2b96a180208a07ef56af8796c22a869ab90cebc8.tar.gz tdebase-2b96a180208a07ef56af8796c22a869ab90cebc8.zip |
Add GUI check box to control mouse wheel cycling over tab bar in konqueror.
Work remains to finish the patch to actually stop the cycling.
This partially resolves bug report 910.
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/konqhtml/htmlopts.cpp | 7 | ||||
-rw-r--r-- | kcontrol/konqhtml/htmlopts.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/kcontrol/konqhtml/htmlopts.cpp b/kcontrol/konqhtml/htmlopts.cpp index 0fb7f6021..5b921f217 100644 --- a/kcontrol/konqhtml/htmlopts.cpp +++ b/kcontrol/konqhtml/htmlopts.cpp @@ -95,6 +95,11 @@ KMiscHTMLOptions::KMiscHTMLOptions(TDEConfig *config, TQString group, TQWidget * connect(m_pDynamicTabbarHide, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged())); laygroup->addWidget(m_pDynamicTabbarHide); + m_pDynamicTabbarCycle = new TQCheckBox( i18n( "C&ycle tabs with mouse wheel" ), bgTabbedBrowsing ); + TQWhatsThis::add( m_pDynamicTabbarCycle, i18n("This will cycle through tabs when there are two or more tabs.") ); + connect(m_pDynamicTabbarCycle, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged())); + laygroup->addWidget(m_pDynamicTabbarCycle); + TQHBoxLayout *laytab = new TQHBoxLayout(laygroup, KDialog::spacingHint()); TQPushButton *advancedTabButton = new TQPushButton( i18n( "Advanced Options"), bgTabbedBrowsing ); laytab->addWidget(advancedTabButton); @@ -289,6 +294,7 @@ void KMiscHTMLOptions::load( bool useDefaults ) m_pConfig->setGroup("FMSettings"); m_pShowMMBInTabs->setChecked( m_pConfig->readBoolEntry( "MMBOpensTab", false ) ); m_pDynamicTabbarHide->setChecked( ! (m_pConfig->readBoolEntry( "AlwaysTabbedMode", false )) ); + m_pDynamicTabbarCycle->setChecked( m_pConfig->readBoolEntry( "TabsCycleWheel", true ) ); TDEConfig config("kbookmarkrc", true, false); config.setReadDefaults( useDefaults ); @@ -361,6 +367,7 @@ void KMiscHTMLOptions::save() m_pConfig->setGroup("FMSettings"); m_pConfig->writeEntry( "MMBOpensTab", m_pShowMMBInTabs->isChecked() ); m_pConfig->writeEntry( "AlwaysTabbedMode", !(m_pDynamicTabbarHide->isChecked()) ); + m_pConfig->writeEntry( "TabsCycleWheel", m_pDynamicTabbarCycle->isChecked() ); m_pConfig->sync(); TDEConfig config("kbookmarkrc", false, false); diff --git a/kcontrol/konqhtml/htmlopts.h b/kcontrol/konqhtml/htmlopts.h index 4e719d181..a2a649ef2 100644 --- a/kcontrol/konqhtml/htmlopts.h +++ b/kcontrol/konqhtml/htmlopts.h @@ -62,6 +62,7 @@ private: TQCheckBox* m_pShowMMBInTabs; TQCheckBox* m_pFormCompletionCheckBox; TQCheckBox* m_pDynamicTabbarHide; + TQCheckBox* m_pDynamicTabbarCycle; TQCheckBox* m_pAdvancedAddBookmarkCheckBox; TQCheckBox* m_pOnlyMarkedBookmarksCheckBox; KIntNumInput* m_pMaxFormCompletionItems; |