From 6092529865660fee46ffab29177ca281f6252b2a Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 13 Jun 2004 19:32:42 +0000 Subject: Set the ScrollBar position right on start. This works on Qt2.3.8 and Qt2.3.7 --- (limited to 'library/qpeapplication.cpp') diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 040b2fe..26e310a 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1317,6 +1317,8 @@ void QPEApplication::reset() { applyStyle(); } + +extern bool qt_left_hand_scrollbars __attribute__(( weak )); /*! \internal */ @@ -1373,6 +1375,11 @@ void QPEApplication::applyStyle() 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" ); @@ -1380,7 +1387,6 @@ void QPEApplication::applyStyle() 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 ) ); -- cgit v0.9.0.2