mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:16:10 +02:00
qt: implement theme drawing of combobox drop down arrow
git-svn-id: trunk@24162 -
This commit is contained in:
parent
c93ed80353
commit
c4b2012cf1
@ -194,7 +194,10 @@ begin
|
||||
QStyleOptionToolButton_setFeatures(QStyleOptionToolButtonH(opt),
|
||||
Element.Features);
|
||||
end;
|
||||
|
||||
QStyleCC_ComboBox:
|
||||
begin
|
||||
opt := QStyleOptionComboBox_create();
|
||||
end;
|
||||
QStyleCC_TitleBar, QStyleCC_MdiControls:
|
||||
begin
|
||||
opt := QStyleOptionTitleBar_create();
|
||||
@ -468,6 +471,15 @@ begin
|
||||
Result.SubControls := QStyleSC_GroupBoxFrame;
|
||||
end;
|
||||
end;
|
||||
teComboBox:
|
||||
begin
|
||||
if Details.Part = CP_DROPDOWNBUTTON then
|
||||
begin
|
||||
Result.DrawVariant := qdvComplexControl;
|
||||
Result.ComplexControl := QStyleCC_ComboBox;
|
||||
Result.SubControls := QStyleSC_ComboBoxArrow;
|
||||
end;
|
||||
end;
|
||||
teHeader:
|
||||
begin
|
||||
case Details.Part of
|
||||
|
Loading…
Reference in New Issue
Block a user