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.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index f228504..624effc 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -171,3 +171,7 @@ SmGlobals::SmGlobals() : mPictureViewer(0), mArchiveController(0){ mFiletypeMap.insert(FT_GENERALCOVER, tr("General Cover")); mFiletypeMap.insert(FT_ORIGIN, tr("Origin")); } + +void SmGlobals::registerWidget(const QString &name, QWidget *w){ + mWidgets.insert(name, w); +} -- cgit v1.2.3-70-g09d2