diff options
author | Timothy Pearson <[email protected]> | 2012-11-21 01:03:19 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-11-21 01:03:19 -0600 |
commit | 2f10690bf1b6edb4aed9d839ba8ef779ec90f761 (patch) | |
tree | 5b33afe73a01707d6ea689a9fcef4db7d5ea1da4 /kstyles/plastik | |
parent | 043698a3205e5b96c476ff33e21a3261fd4ac83f (diff) | |
download | tdelibs-2f10690bf1b6edb4aed9d839ba8ef779ec90f761.tar.gz tdelibs-2f10690bf1b6edb4aed9d839ba8ef779ec90f761.zip |
Fix combobox drawing under Plastik
Diffstat (limited to 'kstyles/plastik')
-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()) |