summaryrefslogtreecommitdiff
path: root/library/qpeapplication.cpp
Side-by-side diff
Diffstat (limited to 'library/qpeapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 040b2fe..26e310a 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -1316,8 +1316,10 @@ void QPEApplication::reset() {
// Redraw everything
applyStyle();
}
+
+extern bool qt_left_hand_scrollbars __attribute__(( weak ));
/*!
\internal
*/
void QPEApplication::applyStyle()
@@ -1372,16 +1374,20 @@ void QPEApplication::applyStyle()
pal.color( QPalette::Active, QColorGroup::Background ).dark() );
setPalette( pal, TRUE );
+
+ // Set the ScrollBar on the 'right' side but only if the weak symbol is present
+ if (&qt_left_hand_scrollbars )
+ qt_left_hand_scrollbars = config.readBoolEntry( "LeftHand", false );
+
// Window Decoration
QString dec = config.readEntry( "Decoration", "Flat" );
// don't set a custom deco
if ( nostyle & Opie::Force_Decoration )
dec = "";
- //qDebug ( "Setting Deco: %s -- old %s (%d)", dec.latin1(), d-> decorationName.latin1(), nostyle);
if ( dec != d->decorationName ) {
qwsSetDecoration( new QPEDecoration( dec ) );
d->decorationName = dec;