summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2
Side-by-side diff
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 )
QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
{
QWidget *tab = new QWidget ( parent );
QVBoxLayout *vertLayout = new QVBoxLayout( tab, 3, 3 );
+ /*
+ * 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 );
int style = cfg. readNumEntry ( "TabStyle", 2 ) - 1;
bool tabtop = ( cfg. readEntry ( "TabPosition", "Top" ) == "Top" );
QLabel* label = new QLabel( tr( "Tab style:" ), tab );
@@ -490,12 +504,14 @@ void Appearance::accept ( )
else
{
rot = Flip;
}
config. writeEntry ( "rotatedir", (int)rot );
+ config. writeEntry( "LeftHand", m_leftHand->isChecked() );
+
config. write ( ); // need to flush the config info first
Global::applyStyle ( );
QDialog::accept ( );
}
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:
QRadioButton *m_rotdir_cw;
QRadioButton *m_rotdir_ccw;
QRadioButton *m_rotdir_flip;
QWidget * m_advtab;
+ QCheckBox *m_leftHand;
};
#endif