summaryrefslogtreecommitdiff
path: root/library/qpeapplication.cpp
authorzecke <zecke>2004-06-13 19:32:42 (UTC)
committer zecke <zecke>2004-06-13 19:32:42 (UTC)
commit6092529865660fee46ffab29177ca281f6252b2a (patch) (side-by-side diff)
tree45373de9c58a31e3951f745c90aa223f260d47cd /library/qpeapplication.cpp
parentf74ad6f0e20cb803321cec629cd8d37abc966571 (diff)
downloadopie-6092529865660fee46ffab29177ca281f6252b2a.zip
opie-6092529865660fee46ffab29177ca281f6252b2a.tar.gz
opie-6092529865660fee46ffab29177ca281f6252b2a.tar.bz2
Set the ScrollBar position right on start.
This works on Qt2.3.8 and Qt2.3.7
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
@@ -1314,12 +1314,14 @@ void QPEApplication::reset() {
qt_screen->connect( QString::null );
// Redraw everything
applyStyle();
}
+
+extern bool qt_left_hand_scrollbars __attribute__(( weak ));
/*!
\internal
*/
void QPEApplication::applyStyle()
{
Config config( "qpe" );
@@ -1370,20 +1372,24 @@ void QPEApplication::applyStyle()
pal.setColor( QPalette::Disabled, QColorGroup::Text,
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;
}