32 #include <QFileSystemWatcher>
59 static QString convertToHumanReadableSize(qint64 size);
66 QFileSystemWatcher fileWatcher;
67 static QMap<QString, InfoDialog*> instances;
68 bool labelActive =
false;
69 bool iconClickedHandled =
false;
70 bool isEditable =
false;
77 explicit InfoDialog(
const QString &filePath, QWidget *parent =
nullptr);
85 bool eventFilter(QObject *obj, QEvent *event);
92 QString getPermissionsString(QFile::Permissions permissions);
97 void setupInformation();
102 void setExecutable();
107 void updatePermissions();
133 void fileChanged(
const QString &path);
138 void changeOpenWith();
The InfoDialog class represents a dialog to display information about a file or directory.
Definition: InfoDialog.h:42
~InfoDialog()
Destructor.
Definition: InfoDialog.cpp:157
static InfoDialog * getInstance(const QString &filePath, QWidget *parent=nullptr)
Gets the instance of the InfoDialog for the given file path if it exists, otherwise creates it.
Definition: InfoDialog.cpp:56
Definition: ui_InfoDialog.h:260