summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2
Unidiff
Diffstat (limited to 'noncore/settings/appearance2') (more/less context) (ignore 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
@@ -290,12 +290,26 @@ QWidget *Appearance::createColorTab ( QWidget *parent, Config &cfg )
290 290
291QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg ) 291QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
292{ 292{
293 QWidget *tab = new QWidget ( parent ); 293 QWidget *tab = new QWidget ( parent );
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
298 int style = cfg. readNumEntry ( "TabStyle", 2 ) - 1; 312 int style = cfg. readNumEntry ( "TabStyle", 2 ) - 1;
299 bool tabtop = ( cfg. readEntry ( "TabPosition", "Top" ) == "Top" ); 313 bool tabtop = ( cfg. readEntry ( "TabPosition", "Top" ) == "Top" );
300 314
301 QLabel* label = new QLabel( tr( "Tab style:" ), tab ); 315 QLabel* label = new QLabel( tr( "Tab style:" ), tab );
@@ -490,12 +504,14 @@ void Appearance::accept ( )
490 else 504 else
491 { 505 {
492 rot = Flip; 506 rot = Flip;
493 } 507 }
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 ( );
498 514
499 QDialog::accept ( ); 515 QDialog::accept ( );
500} 516}
501 517
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
@@ -116,9 +116,10 @@ private:
116 116
117 QRadioButton *m_rotdir_cw; 117 QRadioButton *m_rotdir_cw;
118 QRadioButton *m_rotdir_ccw; 118 QRadioButton *m_rotdir_ccw;
119 QRadioButton *m_rotdir_flip; 119 QRadioButton *m_rotdir_flip;
120 120
121 QWidget * m_advtab; 121 QWidget * m_advtab;
122 QCheckBox *m_leftHand;
122}; 123};
123 124
124#endif 125#endif