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.cpp | |
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.cpp')
-rw-r--r-- | smglobals.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); +} |