summaryrefslogtreecommitdiff
Side-by-side diff
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
class IMToolButton : public QToolButton
{
public:
IMToolButton::IMToolButton( QWidget *parent ) : QToolButton( parent )
- { setWFlags( WStyle_Tool ); }
+ { setWFlags( WStyle_Tool );
+ setBackgroundOrigin( ParentOrigin );
+ setBackgroundMode( PaletteBackground );
+ }
};
InputMethods::InputMethods( QWidget *parent ) :
@@ -90,8 +93,9 @@ InputMethods::InputMethods( QWidget *parent ) :
mkeyboard(0), imethod(0)
{
readConfig();
+ setBackgroundOrigin( ParentOrigin );
setBackgroundMode( PaletteBackground );
QHBoxLayout *hbox = new QHBoxLayout( this );
kbdButton = new IMToolButton( this);