mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 13:37:44 +01:00
qt: implement teTooltip drawing
git-svn-id: trunk@19620 -
This commit is contained in:
parent
7d97f14c33
commit
92bbe0f074
@ -202,13 +202,19 @@ begin
|
|||||||
end;
|
end;
|
||||||
qdvPrimitive:
|
qdvPrimitive:
|
||||||
begin
|
begin
|
||||||
if Element.PrimitiveElement = QStylePE_FrameTabWidget then
|
case Element.PrimitiveElement of
|
||||||
|
QStylePE_FrameTabWidget:
|
||||||
begin
|
begin
|
||||||
opt := QStyleOptionTabWidgetFrame_create();
|
opt := QStyleOptionTabWidgetFrame_create();
|
||||||
// need widget to draw gradient
|
// need widget to draw gradient
|
||||||
end
|
end;
|
||||||
|
QStylePE_PanelTipLabel:
|
||||||
|
begin
|
||||||
|
opt := QStyleOptionFrame_create();
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
opt := QStyleOption_create(Integer(QStyleOptionVersion), Integer(QStyleOptionSO_Default));
|
opt := QStyleOption_create(Integer(QStyleOptionVersion), Integer(QStyleOptionSO_Default));
|
||||||
|
end;
|
||||||
QStyleOption_setState(opt, GetControlState(Details));
|
QStyleOption_setState(opt, GetControlState(Details));
|
||||||
QStyleOption_setRect(opt, @ARect);
|
QStyleOption_setRect(opt, @ARect);
|
||||||
QStyle_drawPrimitive(Style, Element.PrimitiveElement, opt, Context.Widget);
|
QStyle_drawPrimitive(Style, Element.PrimitiveElement, opt, Context.Widget);
|
||||||
@ -480,6 +486,14 @@ begin
|
|||||||
Result.PrimitiveElement := QStylePE_IndicatorBranch
|
Result.PrimitiveElement := QStylePE_IndicatorBranch
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
teToolTip:
|
||||||
|
begin
|
||||||
|
if Details.Part = TTP_STANDARD then
|
||||||
|
begin
|
||||||
|
Result.DrawVariant := qdvPrimitive;
|
||||||
|
Result.PrimitiveElement := QStylePE_PanelTipLabel;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user