File fix-combobox-edit-fields.diff of Package thinkeramik
--- widget-engine/thinkeramik.cpp
+++ widget-engine/thinkeramik.cpp
@@ -3030,7 +3030,7 @@
}
} else {
a.setPoints(QCOORDARRLEN(thinkeramik_combo_arrow), thinkeramik_combo_arrow);
- a.translate( ar.x() + ar.width() / 2, ar.y() + ar.height() / 2 );
+ a.translate( ar.x() + 3 + ar.width() / 2, ar.y() + ar.height() / 2 );
}
p2->setPen( cg.buttonText() );
@@ -3692,13 +3692,16 @@
case SC_ComboBoxEditField:
{
+ bool is_editable = static_cast< const QComboBox* >( widget )->editable();
if (isLightMode)
return QRect( 2, 2, widget->width() - lcbbwidth - 6, widget->height() - 4 );
- else if ( compact )
- return QRect( 2, 4, widget->width() - arrow - 2 - 7, widget->height() - 8 );
+ else if ( compact && is_editable )
+ return QRect( 5, 4, widget->width() - arrow - 6 - 7, widget->height() - 11 );
+ else if ( compact && !is_editable )
+ return QRect( 4, 4, widget->width() - arrow - 4 - 7, widget->height() - 9 );
else if ( widget->width() < 36 || widget->height() < 22 )
return QRect( 4, 3, widget->width() - arrow - 20, widget->height() - 6 );
- else if ( static_cast< const QComboBox* >( widget )->editable() )
+ else if ( is_editable )
return QRect( 8, 4, widget->width() - arrow - 26, widget->height() - 11 );
else
return QRect( 6, 4, widget->width() - arrow - 22, widget->height() - 9 );