Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouib <code@louib.net>2021-03-13 22:07:49 +0300
committerJonathan White <support@dmapps.us>2021-11-12 15:41:30 +0300
commit004f2b6801d93116277778611920793b7dbe0afb (patch)
treeab328622af017c0e5735ffd0588480321bbed07d /src/gui/Icons.h
parent6f5bbf7ad1048abc3db7e378df654a61954f77e3 (diff)
Removing QWidget dependency from src/core.
Diffstat (limited to 'src/gui/Icons.h')
-rw-r--r--src/gui/Icons.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/Icons.h b/src/gui/Icons.h
index d02fd79c4..01af0b289 100644
--- a/src/gui/Icons.h
+++ b/src/gui/Icons.h
@@ -21,6 +21,9 @@
#include <QIcon>
+#include <core/Database.h>
+#include <gui/DatabaseIcons.h>
+
class Icons
{
public:
@@ -32,6 +35,14 @@ public:
QIcon icon(const QString& name, bool recolor = true, const QColor& overrideColor = QColor::Invalid);
QIcon onOffIcon(const QString& name, bool on, bool recolor = true);
+ static QPixmap customIconPixmap(const Database* db, const QUuid& uuid, IconSize size = IconSize::Default);
+ static QHash<QUuid, QPixmap> customIconsPixmaps(const Database* db, IconSize size = IconSize::Default);
+ static QPixmap entryIconPixmap(const Entry* entry, IconSize size = IconSize::Default);
+ static QPixmap groupIconPixmap(const Group* group, IconSize size = IconSize::Default);
+
+ static QByteArray saveToBytes(const QImage& image);
+ static QString imageFormatsFilter();
+
static Icons* instance();
private: