Add built-in icons.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QHash>
|
||||
#include <QtGui/QImage>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
class Database;
|
||||
class Group;
|
||||
@@ -48,7 +48,8 @@ public:
|
||||
bool protectUrl() const;
|
||||
bool protectNotes() const;
|
||||
bool autoEnableVisualHiding() const;
|
||||
QHash<Uuid, QImage> customIcons() const;
|
||||
QIcon customIcon(const Uuid& uuid) const;
|
||||
QHash<Uuid, QIcon> customIcons() const;
|
||||
bool recycleBinEnabled() const;
|
||||
const Group* recycleBin() const;
|
||||
QDateTime recycleBinChanged() const;
|
||||
@@ -72,7 +73,7 @@ public:
|
||||
void setProtectUrl(bool value);
|
||||
void setProtectNotes(bool value);
|
||||
void setAutoEnableVisualHiding(bool value);
|
||||
void addCustomIcon(const Uuid& uuid, const QImage& image);
|
||||
void addCustomIcon(const Uuid& uuid, const QIcon& icon);
|
||||
void removeCustomIcon(const Uuid& uuid);
|
||||
void setRecycleBinEnabled(bool value);
|
||||
void setRecycleBin(Group* group);
|
||||
@@ -101,7 +102,7 @@ private:
|
||||
bool m_protectNotes;
|
||||
bool m_autoEnableVisualHiding;
|
||||
|
||||
QHash<Uuid, QImage> m_customIcons;
|
||||
QHash<Uuid, QIcon> m_customIcons;
|
||||
|
||||
bool m_recycleBinEnabled;
|
||||
Group* m_recycleBin;
|
||||
|
||||
Reference in New Issue
Block a user