mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:19:16 +02:00
LCL: use as default widgettype the IDE value
git-svn-id: trunk@37392 -
This commit is contained in:
parent
b7deaffd70
commit
08fb6b919a
@ -12,14 +12,22 @@
|
||||
</SearchPaths>
|
||||
<Conditionals Value="// LCLWidgetType
|
||||
if undefined(LCLWidgetType) then begin
|
||||
if (TargetOS='win32') or (TargetOS='win64') then
|
||||
LCLWidgetType := 'win32'
|
||||
else if TargetOS='wince' then
|
||||
LCLWidgetType := 'wince'
|
||||
else if TargetOS='darwin' then
|
||||
LCLWidgetType := 'carbon'
|
||||
else
|
||||
LCLWidgetType := 'gtk2';
|
||||
if GetIDEValue('OS')=TargetOS then begin
|
||||
// use the same widgettype as the IDE
|
||||
LCLWidgetType := GetIDEValue('LCLWidgetType');
|
||||
if LCLWidgetType='nogui' then
|
||||
LCLWidgetType:='';
|
||||
end;
|
||||
if LCLWidgetType='' then begin
|
||||
if (TargetOS='win32') or (TargetOS='win64') then
|
||||
LCLWidgetType := 'win32'
|
||||
else if TargetOS='wince' then
|
||||
LCLWidgetType := 'wince'
|
||||
else if TargetOS='darwin' then
|
||||
LCLWidgetType := 'carbon'
|
||||
else
|
||||
LCLWidgetType:='gtk2';
|
||||
end;
|
||||
end;
|
||||
|
||||
// widget set specific options
|
||||
|
Loading…
Reference in New Issue
Block a user