diff options
author | Arno <am@disconnect.de> | 2014-12-07 22:40:10 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-12-07 22:40:10 +0100 |
commit | 3adf6f859dd4d5df8e8fceacce74487814867e61 (patch) | |
tree | 5725a517b379ceeb30eda09fbe6a7405e5f6bbe8 /smglobals.h | |
parent | 51bc87ebc73b5777ad36e35ec20445b07a0d7639 (diff) | |
download | SheMov-3adf6f859dd4d5df8e8fceacce74487814867e61.tar.gz SheMov-3adf6f859dd4d5df8e8fceacce74487814867e61.tar.bz2 SheMov-3adf6f859dd4d5df8e8fceacce74487814867e61.zip |
Major revamp of the file Manager
Nothing is async any more. Didn't work, anyway. Instead show a
QProgressDialog when gathering data. Was kinda surprising that
processEvents has to be called explicitly... Well, done!
Diffstat (limited to 'smglobals.h')
-rw-r--r-- | smglobals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smglobals.h b/smglobals.h index cbabbde..e28047d 100644 --- a/smglobals.h +++ b/smglobals.h @@ -42,6 +42,8 @@ class SmGlobals : public QObject { const QSize minPVSize() const { return QSize(640, 480); } const QHash<QString, QString> & icons() const { return mIcons; } QHash<int, QString> filetypeMap() const { return mFiletypeMap; } + QHash<QString, QWidget*> registeredWidgets() { return mWidgets; } + void registerWidget(const QString &name, QWidget *w); private: SmGlobals(); @@ -55,6 +57,7 @@ class SmGlobals : public QObject { QHash<QString, QString> mIcons; ArchiveController *mArchiveController; QHash<int, QString> mFiletypeMap; + QHash<QString, QWidget*> mWidgets; }; #endif |