mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
Highlight the correct disk on the grid view
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user