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/FormCategories.pas

    r231 r234  
    3333    ToolButton2: TToolButton;
    3434    ToolButton3: TToolButton;
     35    ToolButton4: TToolButton;
     36    ToolButton5: TToolButton;
    3537    procedure AAddExecute(Sender: TObject);
    3638    procedure ADisableExecute(Sender: TObject);
     
    178180  for I := 0 to ToolBar1.ButtonCount - 1 do
    179181    ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption;
     182  {$IFDEF LCLQt5}
     183  ListViewCategories.Checkboxes := False;
     184  ListViewCategories.StateImages := ActionList1.Images;
     185  {$ENDIF}
    180186end;
    181187
     
    189195    Item.SubItems.Add(IntToStr(GetImportSourcesCount));
    190196    Item.Checked := Enabled;
     197    if Enabled then Item.StateIndex := 24 else
     198      Item.StateIndex := 23;
    191199  end;
    192200end;
Note: See TracChangeset for help on using the changeset viewer.