mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-09 03:37:20 +01:00
qt: change {$mode delphi} to {$mode objfpc}
git-svn-id: trunk@14236 -
This commit is contained in:
parent
83ebfd0672
commit
fe81e69498
@ -22,7 +22,7 @@
|
||||
}
|
||||
unit QtWSCalendar;
|
||||
|
||||
{$mode delphi}{$H+}
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
}
|
||||
unit QtWSDialogs;
|
||||
|
||||
{$mode delphi}{$H+}
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
@ -299,7 +299,7 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
class procedure TQtWSFileDialog.ShowModal(const ACommonDialog: TCommonDialog);
|
||||
var
|
||||
selectedFilter, ReturnText,
|
||||
{selectedFilter, }ReturnText,
|
||||
saveFileName, saveTitle, saveFilter: WideString;
|
||||
FileDialog: TFileDialog;
|
||||
ReturnList: QStringListH;
|
||||
@ -310,7 +310,7 @@ begin
|
||||
Initialization of variables
|
||||
------------------------------------------------------------------------------}
|
||||
ReturnText := '';
|
||||
selectedFilter := '';
|
||||
//selectedFilter := '';
|
||||
saveFileName := '';
|
||||
saveTitle := '';
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
}
|
||||
unit QtWSMenus;
|
||||
|
||||
{$mode delphi}{$H+}
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
}
|
||||
unit QtWSStdCtrls;
|
||||
|
||||
{$mode delphi}{$H+}
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
@ -972,7 +972,7 @@ begin
|
||||
Color:=ColorToRGB(AWinControl.Color);
|
||||
|
||||
// Fill QColor
|
||||
QColor_setRgb(@QColor,Red(Color),Green(Color),Blue(Color));
|
||||
QColor_setRgb(QColorH(@QColor),Red(Color),Green(Color),Blue(Color));
|
||||
|
||||
// Set color of the widget to QColor
|
||||
TQtAbstractButton(AWinControl.Handle).SetColor(@QColor);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user