Highlight the correct disk on the grid view

This commit is contained in:
Spiros
2025-05-29 20:32:08 +03:00
parent 2929829729
commit 5f126e4f28
3 changed files with 42 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ class GridView : public QWidget {
public:
explicit GridView(QWidget *parent = nullptr);
void setDisks(const QVector<DiskItem> &newDisks);
void highlightDisk(qsizetype index);
void setActiveIndex(qsizetype index);
protected:
void resizeEvent(QResizeEvent *) override;
@@ -32,4 +34,6 @@ private:
void extracted(const QVector<DiskItem> &filteredDisks, int &cols, int &row, int &col);
void populateGrid();
qsizetype activeIndex = -1;
};