|
|
@ -2806,14 +2806,10 @@ void PlastikStyle::drawComplexControl(TQ_ComplexControl control,
|
|
|
|
static const unsigned int handleWidth = 15;
|
|
|
|
static const unsigned int handleWidth = 15;
|
|
|
|
|
|
|
|
|
|
|
|
const TQComboBox *cb = dynamic_cast<const TQComboBox *>(widget);
|
|
|
|
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 editable = false;
|
|
|
|
bool hasFocus = false;
|
|
|
|
bool hasFocus = false;
|
|
|
|
if (cb) {
|
|
|
|
editable = (elementFlags & CEF_IsEditable);
|
|
|
|
editable = cb->editable();
|
|
|
|
hasFocus = (elementFlags & CEF_HasFocus);
|
|
|
|
hasFocus = cb->hasFocus();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const TQColor buttonColor = enabled?cg.button():cg.background();
|
|
|
|
const TQColor buttonColor = enabled?cg.button():cg.background();
|
|
|
|
const TQColor inputColor = enabled?(editable?cg.base():cg.button())
|
|
|
|
const TQColor inputColor = enabled?(editable?cg.base():cg.button())
|
|
|
|