summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-13 14:49:52 (UTC)
committer zecke <zecke>2004-09-13 14:49:52 (UTC)
commit114abd0387d34bb0a160059d7799c4fbece63e78 (patch) (unidiff)
tree8294e4fd9608cb9110a7d747edcd528713476cfe
parent2e896a0d3d5b18a160c5cc468bee5ed129a92320 (diff)
downloadopie-114abd0387d34bb0a160059d7799c4fbece63e78.zip
opie-114abd0387d34bb0a160059d7799c4fbece63e78.tar.gz
opie-114abd0387d34bb0a160059d7799c4fbece63e78.tar.bz2
Try to use the Parent Background as BackgroundOrigin
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/inputmethods.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/launcher/inputmethods.cpp b/core/launcher/inputmethods.cpp
index 7e99796..586628b 100644
--- a/core/launcher/inputmethods.cpp
+++ b/core/launcher/inputmethods.cpp
@@ -80,9 +80,12 @@ int InputMethod::operator <=(const InputMethod& o) const
80class IMToolButton : public QToolButton 80class IMToolButton : public QToolButton
81{ 81{
82public: 82public:
83 IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent ) 83 IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent )
84 { setWFlags( WStyle_Tool ); } 84 { setWFlags( WStyle_Tool );
85 setBackgroundOrigin( ParentOrigin );
86 setBackgroundMode( PaletteBackground );
87 }
85}; 88};
86 89
87 90
88InputMethods::InputMethods( QWidget *parent ) : 91InputMethods::InputMethods( QWidget *parent ) :
@@ -90,8 +93,9 @@ InputMethods::InputMethods( QWidget *parent ) :
90 mkeyboard(0), imethod(0) 93 mkeyboard(0), imethod(0)
91{ 94{
92 readConfig(); 95 readConfig();
93 96
97 setBackgroundOrigin( ParentOrigin );
94 setBackgroundMode( PaletteBackground ); 98 setBackgroundMode( PaletteBackground );
95 QHBoxLayout *hbox = new QHBoxLayout( this ); 99 QHBoxLayout *hbox = new QHBoxLayout( this );
96 100
97 kbdButton = new IMToolButton( this); 101 kbdButton = new IMToolButton( this);