From e8f4f398c60060d4edd09065000d977cf38a9bcc Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 23 Jun 2010 20:27:32 +0200 Subject: Singleton cleanup The SmUberModel class wasn't needed at all, so I removed it. Instead I renamed SmUmberModelSingleton into a real singleton for all QAbstractItemModel*, though right now it only supports the SeriesTreeModel and FileTreeModel. But it should eventually evolve into a singleton for all QAbstractItemModel *. For this I renamed the class SmUberModelSingleton to SmModelSingleton. --- smubermodelsingleton.h | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 smubermodelsingleton.h (limited to 'smubermodelsingleton.h') diff --git a/smubermodelsingleton.h b/smubermodelsingleton.h deleted file mode 100644 index 80b2313..0000000 --- a/smubermodelsingleton.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version - 2 of the License, or (at your option) any later version. -*/ - -#ifndef SMUBERMODELSINGLETON_H -#define SMUBERMODELSINGLETON_H - -class SmUberModel; - -class SmUberModelSingleton { - public: - static SmUberModel *instance(); - - private: - SmUberModelSingleton() {} - SmUberModelSingleton(const SmUberModelSingleton &other); - SmUberModelSingleton &operator=(const SmUberModelSingleton &other); - static SmUberModel *mInstance; -}; - -#endif -- cgit v1.2.3-70-g09d2