summaryrefslogtreecommitdiff
authorzecke <zecke>2005-02-08 23:07:38 (UTC)
committer zecke <zecke>2005-02-08 23:07:38 (UTC)
commit5703c0b74a0866145a24a01e68530ed36a33e9cc (patch) (side-by-side diff)
tree6cd77da956b55cd8bfd760f266ce23b10e6b5b48
parent80144c63f04e798b10a966402f235d236e3e540f (diff)
downloadopie-5703c0b74a0866145a24a01e68530ed36a33e9cc.zip
opie-5703c0b74a0866145a24a01e68530ed36a33e9cc.tar.gz
opie-5703c0b74a0866145a24a01e68530ed36a33e9cc.tar.bz2
Reuse the gained space and implement the "Scrollbars on Left" GUI Setting
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp16
-rw-r--r--noncore/settings/appearance2/appearance.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index d649ed6..82d8931 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -295,2 +295,16 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
+ /*
+ * show scrollbars on the left?
+ */
+ m_leftHand = new QCheckBox( tr("Show Scrollbars on the left"), tab );
+ m_leftHand->setChecked( cfg.readBoolEntry( "LeftHand", false ) );
+ QWhatsThis::add( m_leftHand, tr( "Click here to display scrollbars on the left side instead of the right." ) );
+ vertLayout->addWidget( m_leftHand );
+
+ QFrame *f = new QFrame ( tab );
+ f-> setFrameStyle ( QFrame::HLine | QFrame::Sunken );
+ vertLayout-> addWidget ( f );
+ vertLayout-> addSpacing ( 3 );
+
+
QGridLayout* gridLayout = new QGridLayout ( vertLayout, 0, 0, 3, 0 );
@@ -495,2 +509,4 @@ void Appearance::accept ( )
+ config. writeEntry( "LeftHand", m_leftHand->isChecked() );
+
config. write ( ); // need to flush the config info first
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h
index de2f1ab..287f9f7 100644
--- a/noncore/settings/appearance2/appearance.h
+++ b/noncore/settings/appearance2/appearance.h
@@ -121,2 +121,3 @@ private:
QWidget * m_advtab;
+ QCheckBox *m_leftHand;
};