From 2f10690bf1b6edb4aed9d839ba8ef779ec90f761 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Nov 2012 01:03:19 -0600 Subject: Fix combobox drawing under Plastik --- kstyles/plastik/plastik.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'kstyles/plastik/plastik.cpp') 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(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()) -- cgit v1.2.1