Ignore:
Timestamp:
Jan 25, 2025, 10:36:28 PM (7 days ago)
Author:
chronos
Message:
  • Fixed: Workaround to show checkboxes on Qt5 in import sources and acronym categories.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormImportSources.pas

    r230 r234  
    4040    ToolButton4: TToolButton;
    4141    ToolButton5: TToolButton;
     42    ToolButton6: TToolButton;
     43    ToolButton7: TToolButton;
    4244    procedure AAddExecute(Sender: TObject);
    4345    procedure ADisableExecute(Sender: TObject);
     
    106108    Item.SubItems.Add(Format.Name);
    107109    Item.Checked := Enabled;
     110    if Enabled then Item.StateIndex := 24 else
     111      Item.StateIndex := 23;
    108112  end;
    109113end;
     
    386390  for I := 0 to ToolBar1.ButtonCount - 1 do
    387391    ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption;
     392  {$IFDEF LCLQt5}
     393  ListView1.Checkboxes := False;
     394  ListView1.StateImages := ActionList1.Images;
     395  {$ENDIF}
    388396end;
    389397
Note: See TracChangeset for help on using the changeset viewer.