From 114abd0387d34bb0a160059d7799c4fbece63e78 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 13 Sep 2004 14:49:52 +0000 Subject: Try to use the Parent Background as BackgroundOrigin --- (limited to 'core') 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 @@ -81,7 +81,10 @@ class IMToolButton : public QToolButton { public: IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent ) - { setWFlags( WStyle_Tool ); } + { setWFlags( WStyle_Tool ); + setBackgroundOrigin( ParentOrigin ); + setBackgroundMode( PaletteBackground ); + } }; @@ -91,6 +94,7 @@ InputMethods::InputMethods( QWidget *parent ) : { readConfig(); + setBackgroundOrigin( ParentOrigin ); setBackgroundMode( PaletteBackground ); QHBoxLayout *hbox = new QHBoxLayout( this ); -- cgit v0.9.0.2