Qt6: fixed behaviour inside IDE

This commit is contained in:
zeljan1 2022-11-11 16:19:06 +01:00
parent 14c89302df
commit 646d41cfe5
3 changed files with 4 additions and 4 deletions

View File

@ -1014,7 +1014,7 @@ begin
Assert(Pages[i].PageName=UserOrder.ComponentPages[i],
'UpdateNoteBookButtons: Page names do not match.');
Pg := TComponentPage(Pages[i]);
{$IF DEFINED(LCLQt) OR DEFINED(LCLQt5)} // Qt has some problems in moving existing tabs!
{$IF DEFINED(LCLQt) OR DEFINED(LCLQt5) OR DEFINED(LCLQt6)} // Qt has some problems in moving existing tabs!
if Assigned(Pg.PageComponent) then begin
Pg.PageComponent.Free;
Pg.RemoveSheet;

View File

@ -512,7 +512,7 @@ begin
end;
function TMainIDEBar.CalcNonClientHeight: Integer;
{$IF DEFINED(LCLWin32) OR DEFINED(LCLGtk) OR DEFINED(LCLGtk2) OR DEFINED(LCLQt) OR DEFINED(LCLQt5)}
{$IF DEFINED(LCLWin32) OR DEFINED(LCLGtk) OR DEFINED(LCLGtk2) OR DEFINED(LCLQt) OR DEFINED(LCLQt5) OR DEFINED(LCLQt6)}
var
WindowRect, WindowClientRect: TRect;
{$ENDIF}
@ -533,7 +533,7 @@ begin
if not Showing then
Exit(0);
{$IF DEFINED(LCLWin32) OR DEFINED(LCLGtk) OR DEFINED(LCLGtk2) OR DEFINED(LCLQt) OR DEFINED(LCLQt5)}
{$IF DEFINED(LCLWin32) OR DEFINED(LCLGtk) OR DEFINED(LCLGtk2) OR DEFINED(LCLQt) OR DEFINED(LCLQt5) OR DEFINED(LCLQt6)}
//Gtk2 + Win32 + Qt
//retrieve real main menu height because
// - Win32: multi-line is possible (SM_CYMENU reflects only single line)

View File

@ -304,7 +304,7 @@ begin
if (I<0) or (I>=lvToolbar.Items.Count-1) then Exit;
Cmd := TIDEButtonCommand(lvToolbar.Items[I].Data);
lvToolbar.Items.Delete(I);
{$IF DEFINED(LCLQt) or DEFINED(LCLQt5)}
{$IF DEFINED(LCLQt) or DEFINED(LCLQt5) or DEFINED(LCLQt6)}
lvToolbar.ItemIndex := -1; // Try to make LCLQt behave.
lvToolbar.ItemIndex := I;
{$ENDIF}