mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 05:48:12 +02:00
Compare commits
3 Commits
6501525e08
...
134fb19e6d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
134fb19e6d | ||
![]() |
91fbaca370 | ||
![]() |
ebc6cb6e35 |
@ -55,7 +55,7 @@ uses
|
||||
// IdeConfig
|
||||
LazConf, EnvironmentOpts, ModeMatrixOpts, TransferMacros, IdeConfStrConsts,
|
||||
IDEProcs, etMakeMsgParser, etFPCMsgFilePool, ParsedCompilerOpts, CompilerOptions,
|
||||
EditDefineTree,
|
||||
EditDefineTree, IDECmdLine,
|
||||
// IdePackager
|
||||
IdePackagerStrConsts,
|
||||
// IDE
|
||||
@ -1138,7 +1138,7 @@ begin
|
||||
|
||||
debugln('Warning: (lazarus) [TBuildManager.RescanCompilerDefines]: invalid compiler:');
|
||||
debugln(Msg);
|
||||
if not Quiet then begin
|
||||
if not Quiet and not GetSkipCheck(skcFpcSrc) then begin
|
||||
IDEMessageDialog(lisCCOErrorCaption, Format(
|
||||
lisThereIsNoFreePascalCompilerEGFpcOrPpcCpuConfigured, [ExeExt,
|
||||
LineEnding, Msg]), mtError, [mbOk]);
|
||||
@ -1267,7 +1267,7 @@ begin
|
||||
FPCSrcScans.Scan(AsyncScanFPCSrcDir);
|
||||
end;
|
||||
|
||||
if not Quiet then begin
|
||||
if not Quiet and not GetSkipCheck(skcFpcExe) then begin
|
||||
// check for common installation mistakes
|
||||
if not PPUFilesAndCompilerMatch then exit;
|
||||
if (UnitSetCache.GetCompilerKind=pcFPC) then begin
|
||||
|
@ -107,6 +107,7 @@ type
|
||||
|
||||
TQtWidget = class(TQtObject, IUnknown)
|
||||
private
|
||||
FDefaultFocusReason: QtFocusReason;
|
||||
FInResizeEvent: boolean;
|
||||
FWidgetState: TQtWidgetStates;
|
||||
FWidgetDefaultFont: TQtFont;
|
||||
@ -319,6 +320,7 @@ type
|
||||
nil): QPixmapH;
|
||||
property ChildOfComplexWidget: TChildOfComplexWidget read FChildOfComplexWidget write FChildOfComplexWidget;
|
||||
property Context: HDC read GetContext;
|
||||
property DefaultFocusReason: QtFocusReason read FDefaultFocusReason write FDefaultFocusReason;
|
||||
property HasCaret: Boolean read FHasCaret write SetHasCaret;
|
||||
property HasPaint: Boolean read FHasPaint write FHasPaint;
|
||||
property InResizeEvent: boolean read FInResizeEvent write FInResizeEvent;
|
||||
@ -2161,6 +2163,7 @@ end;
|
||||
|
||||
procedure TQtWidget.InitializeWidget;
|
||||
begin
|
||||
FDefaultFocusReason := QtTabFocusReason;
|
||||
FInResizeEvent := False;
|
||||
// default states
|
||||
FWidgetState := [];
|
||||
@ -5164,7 +5167,7 @@ end;
|
||||
procedure TQtWidget.setFocus;
|
||||
begin
|
||||
if getFocusPolicy <> QtNoFocus then
|
||||
QWidget_setFocus(Widget, QtTabFocusReason) {issue #10155}
|
||||
QWidget_setFocus(Widget, FDefaultFocusReason) {issue #10155}
|
||||
else
|
||||
QWidget_setFocus(Widget);
|
||||
end;
|
||||
@ -9769,6 +9772,7 @@ begin
|
||||
FCachedSelectionLen := -1;
|
||||
FIntValidator := nil;
|
||||
FNumbersOnly := False;
|
||||
FDefaultFocusReason := QtOtherFocusReason;
|
||||
if AParams.WndParent <> 0 then
|
||||
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
||||
else
|
||||
@ -16412,6 +16416,7 @@ end;
|
||||
|
||||
procedure TQtMenu.InitializeWidget;
|
||||
begin
|
||||
FDefaultFocusReason := QtTabFocusReason;
|
||||
FWidgetState := [];
|
||||
ChildOfComplexWidget := ccwNone;
|
||||
WidgetColorRole := QPaletteWindow;
|
||||
|
@ -107,6 +107,7 @@ type
|
||||
|
||||
TQtWidget = class(TQtObject, IUnknown)
|
||||
private
|
||||
FDefaultFocusReason: QtFocusReason;
|
||||
FInResizeEvent: boolean;
|
||||
FWidgetState: TQtWidgetStates;
|
||||
FWidgetDefaultFont: TQtFont;
|
||||
@ -316,6 +317,7 @@ type
|
||||
nil): QPixmapH;
|
||||
property ChildOfComplexWidget: TChildOfComplexWidget read FChildOfComplexWidget write FChildOfComplexWidget;
|
||||
property Context: HDC read GetContext;
|
||||
property DefaultFocusReason: QtFocusReason read FDefaultFocusReason write FDefaultFocusReason;
|
||||
property HasCaret: Boolean read FHasCaret write SetHasCaret;
|
||||
property HasPaint: Boolean read FHasPaint write FHasPaint;
|
||||
property InResizeEvent: boolean read FInResizeEvent write FInResizeEvent;
|
||||
@ -2158,6 +2160,7 @@ end;
|
||||
|
||||
procedure TQtWidget.InitializeWidget;
|
||||
begin
|
||||
FDefaultFocusReason := QtTabFocusReason;
|
||||
FInResizeEvent := False;
|
||||
// default states
|
||||
FWidgetState := [];
|
||||
@ -5168,7 +5171,7 @@ end;
|
||||
procedure TQtWidget.setFocus;
|
||||
begin
|
||||
if getFocusPolicy <> QtNoFocus then
|
||||
QWidget_setFocus(Widget, QtTabFocusReason) {issue #10155}
|
||||
QWidget_setFocus(Widget, FDefaultFocusReason) {issue #10155}
|
||||
else
|
||||
QWidget_setFocus(Widget);
|
||||
end;
|
||||
@ -9725,6 +9728,7 @@ begin
|
||||
FCachedSelectionLen := -1;
|
||||
FIntValidator := nil;
|
||||
FNumbersOnly := False;
|
||||
FDefaultFocusReason := QtOtherFocusReason;
|
||||
if AParams.WndParent <> 0 then
|
||||
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
||||
else
|
||||
@ -16322,6 +16326,7 @@ end;
|
||||
|
||||
procedure TQtMenu.InitializeWidget;
|
||||
begin
|
||||
FDefaultFocusReason := QtTabFocusReason;
|
||||
FWidgetState := [];
|
||||
ChildOfComplexWidget := ccwNone;
|
||||
WidgetColorRole := QPaletteWindow;
|
||||
|
Loading…
Reference in New Issue
Block a user