diff options
author | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
commit | ba3c5aa40274c11f9cefd4e9842be3488cad07b4 (patch) | |
tree | 2865703ae78ed397f24fa32fca642332ac7b3a49 /src/sessionsiconholder.h | |
parent | fileDownloader.* -> filedownloader.* (diff) | |
download | vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.gz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.xz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.zip |
Fix indentation, cleanup, refactoring, deletions
* Remove unused methods for adding hostname and user to xml
* Avoid copying/(de)serializing XML a thousand times
* Fix Session::isValid() or rather make it a bit more usable
(although it's unused currently)
* baseDir is global, not per VSession, which doesn't make any
sense without the legacy approach of recusively loading
one xml file per entry
Diffstat (limited to 'src/sessionsiconholder.h')
-rw-r--r-- | src/sessionsiconholder.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sessionsiconholder.h b/src/sessionsiconholder.h index 3284bf7..8935606 100644 --- a/src/sessionsiconholder.h +++ b/src/sessionsiconholder.h @@ -22,23 +22,23 @@ class SessionTreeModel; class SessionsIconHolder : public QObject { - Q_OBJECT + Q_OBJECT private: - QHash<QString, QIcon> icons; - SessionsIconHolder(); - static SessionsIconHolder* instance; + QHash<QString, QIcon> icons; + SessionsIconHolder(); + static SessionsIconHolder* instance; signals: - void iconDownloaded(const QUrl& url, const QIcon& icon); + void iconDownloaded(const QUrl& url, const QIcon& icon); public: - QIcon getIcon(const QString& name); - QIcon getIcon(const QUrl& url); - static SessionsIconHolder* get() { if (instance == NULL) instance = new SessionsIconHolder(); return instance; } + QIcon getIcon(const QString& name); + QIcon getIcon(const QUrl& url); + static SessionsIconHolder* get() { if (instance == NULL) instance = new SessionsIconHolder(); return instance; } public slots: - void afterDownload(const QUrl& url, const QByteArray& downloadedData); + void afterDownload(const QUrl& url, const QByteArray& downloadedData); }; #endif /* SESSIONSICONHOLDER_H_ */ |