From 3adf6f859dd4d5df8e8fceacce74487814867e61 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 7 Dec 2014 22:40:10 +0100 Subject: 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! --- smglobals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'smglobals.h') 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 & icons() const { return mIcons; } QHash filetypeMap() const { return mFiletypeMap; } + QHash registeredWidgets() { return mWidgets; } + void registerWidget(const QString &name, QWidget *w); private: SmGlobals(); @@ -55,6 +57,7 @@ class SmGlobals : public QObject { QHash mIcons; ArchiveController *mArchiveController; QHash mFiletypeMap; + QHash mWidgets; }; #endif -- cgit v1.2.3-70-g09d2