diff options
Diffstat (limited to 'kexi/widget/utils/kexidropdownbutton.cpp')
| -rw-r--r-- | kexi/widget/utils/kexidropdownbutton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kexi/widget/utils/kexidropdownbutton.cpp b/kexi/widget/utils/kexidropdownbutton.cpp index 054192ce7..0710b4d06 100644 --- a/kexi/widget/utils/kexidropdownbutton.cpp +++ b/kexi/widget/utils/kexidropdownbutton.cpp @@ -33,10 +33,10 @@ KexiDropDownButton::KexiDropDownButton(TQWidget *parent) // setFixedWidth(TQMAX(18, tqApp->globalStrut().width())); int fixedWidth; //hack - if (qstricmp(tqstyle().name(),"thinkeramik")==0) + if (qstricmp(style().name(),"thinkeramik")==0) fixedWidth = 18; //typical width as in "windows" style else - fixedWidth = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, + fixedWidth = style().querySubControlMetrics( TQStyle::CC_ComboBox, this, TQStyle::SC_ComboBoxArrow ).width(); setFixedWidth( fixedWidth ); setPopupDelay(10/*ms*/); @@ -54,7 +54,7 @@ void KexiDropDownButton::drawButton( TQPainter *p ) arrowFlags |= TQStyle::Style_Down; if (isEnabled()) arrowFlags |= TQStyle::Style_Enabled; - tqstyle().tqdrawPrimitive(TQStyle::PE_ArrowDown, p, + style().tqdrawPrimitive(TQStyle::PE_ArrowDown, p, TQRect((width()-7)/2, height()-9, 7, 7), colorGroup(), arrowFlags, TQStyleOption() ); } |
