author | zecke <zecke> | 2005-02-08 23:07:38 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-02-08 23:07:38 (UTC) |
commit | 5703c0b74a0866145a24a01e68530ed36a33e9cc (patch) (unidiff) | |
tree | 6cd77da956b55cd8bfd760f266ce23b10e6b5b48 | |
parent | 80144c63f04e798b10a966402f235d236e3e540f (diff) | |
download | opie-5703c0b74a0866145a24a01e68530ed36a33e9cc.zip opie-5703c0b74a0866145a24a01e68530ed36a33e9cc.tar.gz opie-5703c0b74a0866145a24a01e68530ed36a33e9cc.tar.bz2 |
Reuse the gained space and implement the "Scrollbars on Left" GUI Setting
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 16 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance.h | 1 |
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 | |||
@@ -294,4 +294,18 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg ) | |||
294 | QVBoxLayout *vertLayout = new QVBoxLayout( tab, 3, 3 ); | 294 | QVBoxLayout *vertLayout = new QVBoxLayout( tab, 3, 3 ); |
295 | 295 | ||
296 | /* | ||
297 | * show scrollbars on the left? | ||
298 | */ | ||
299 | m_leftHand = new QCheckBox( tr("Show Scrollbars on the left"), tab ); | ||
300 | m_leftHand->setChecked( cfg.readBoolEntry( "LeftHand", false ) ); | ||
301 | QWhatsThis::add( m_leftHand, tr( "Click here to display scrollbars on the left side instead of the right." ) ); | ||
302 | vertLayout->addWidget( m_leftHand ); | ||
303 | |||
304 | QFrame *f = new QFrame ( tab ); | ||
305 | f-> setFrameStyle ( QFrame::HLine | QFrame::Sunken ); | ||
306 | vertLayout-> addWidget ( f ); | ||
307 | vertLayout-> addSpacing ( 3 ); | ||
308 | |||
309 | |||
296 | QGridLayout* gridLayout = new QGridLayout ( vertLayout, 0, 0, 3, 0 ); | 310 | QGridLayout* gridLayout = new QGridLayout ( vertLayout, 0, 0, 3, 0 ); |
297 | 311 | ||
@@ -494,4 +508,6 @@ void Appearance::accept ( ) | |||
494 | config. writeEntry ( "rotatedir", (int)rot ); | 508 | config. writeEntry ( "rotatedir", (int)rot ); |
495 | 509 | ||
510 | config. writeEntry( "LeftHand", m_leftHand->isChecked() ); | ||
511 | |||
496 | config. write ( ); // need to flush the config info first | 512 | config. write ( ); // need to flush the config info first |
497 | Global::applyStyle ( ); | 513 | Global::applyStyle ( ); |
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 | |||
@@ -120,4 +120,5 @@ private: | |||
120 | 120 | ||
121 | QWidget * m_advtab; | 121 | QWidget * m_advtab; |
122 | QCheckBox *m_leftHand; | ||
122 | }; | 123 | }; |
123 | 124 | ||