mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Hide menus icons size option under Qt
(cherry picked from commit ecf3b8196a)
This commit is contained in:
parent
ed2ff490bc
commit
3ab22d39df
2 changed files with 7 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ var
|
|||
AIconSize: String;
|
||||
begin
|
||||
inherited Init;
|
||||
// Qt bindings support only 16px icons for menu items
|
||||
{$IF DEFINED(LCLQT5) OR DEFINED(LCLQT6)}
|
||||
cbIconsInMenusSize.Visible:= False;
|
||||
{$ENDIF}
|
||||
for I:= Low(ICON_SIZES) to High(ICON_SIZES) do
|
||||
begin
|
||||
AIconSize:= IntToStr(ICON_SIZES[I]) + 'x' + IntToStr(ICON_SIZES[I]);
|
||||
|
|
|
|||
|
|
@ -3200,7 +3200,10 @@ begin
|
|||
end;
|
||||
gCustomIcons := TCustomIconsMode(GetValue(Node, 'CustomIcons', Integer(gCustomIcons)));
|
||||
gIconsInMenus := GetAttr(Node, 'ShowInMenus/Enabled', gIconsInMenus);
|
||||
// Qt bindings support only 16px icons for menu items
|
||||
{$IF NOT (DEFINED(LCLQT5) OR DEFINED(LCLQT6))}
|
||||
gIconsInMenusSize := GetValue(Node, 'ShowInMenus/Size', gIconsInMenusSize);
|
||||
{$ENDIF}
|
||||
Application.ShowButtonGlyphs := TApplicationShowGlyphs(GetValue(Node, 'ShowButtonGlyphs', Integer(Application.ShowButtonGlyphs)));
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue