Qt: qtthemes - when toolbar is flat, then make toolbar buttons also flat.

git-svn-id: trunk@16659 -
This commit is contained in:
zeljko 2008-09-19 21:31:42 +00:00
parent fd0b43824d
commit 160b31e9dc

View File

@ -272,6 +272,11 @@ begin
Result := Result or QStyleState_NoChange;
// specific states
{when toolbar = flat, toolbar buttons should be flat too.}
if (Details.Element = teToolBar) and
(Details.Part = TP_BUTTON) and
(Details.State = TS_NORMAL) then
Result := QStyleState_AutoRaise;
// define orientations
if ((Details.Element = teRebar) and (Details.Part = RP_GRIPPER)) or