Add tooltip with filenames

This commit is contained in:
2023-11-14 16:30:38 +01:00
parent fa69f17e51
commit 2608a1bc79
3 changed files with 19 additions and 2 deletions
+8 -1
View File
@@ -23,10 +23,17 @@ signals:
void reverseSort();
};
class FileSystemModel : public QFileSystemModel
{
public:
explicit FileSystemModel(QObject *parent) : QFileSystemModel(parent){}
QVariant data(const QModelIndex &index, int role) const override;
};
class Filetree : public QTreeView
{
Q_OBJECT
QFileSystemModel *m_fileSystemModel;
FileSystemModel *m_fileSystemModel;
QString m_rootDir;
public:
explicit Filetree(QWidget *parent = nullptr);