diff options
Diffstat (limited to 'kstyles')
-rw-r--r-- | kstyles/plastik/plastik.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kstyles/plastik/plastik.cpp b/kstyles/plastik/plastik.cpp index 6828b8870..e97cf6aed 100644 --- a/kstyles/plastik/plastik.cpp +++ b/kstyles/plastik/plastik.cpp @@ -2806,14 +2806,10 @@ void PlastikStyle::drawComplexControl(TQ_ComplexControl control, static const unsigned int handleWidth = 15; const TQComboBox *cb = dynamic_cast<const TQComboBox *>(widget); - // at the moment cb is only needed to check if the combo box is editable or not. - // if cb doesn't exist, just assume false and the app (gideon! ;) ) at least doesn't crash. bool editable = false; bool hasFocus = false; - if (cb) { - editable = cb->editable(); - hasFocus = cb->hasFocus(); - } + editable = (elementFlags & CEF_IsEditable); + hasFocus = (elementFlags & CEF_HasFocus); const TQColor buttonColor = enabled?cg.button():cg.background(); const TQColor inputColor = enabled?(editable?cg.base():cg.button()) |