pqIconSettings.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef pqIconSettings_h
5 #define pqIconSettings_h
6 
7 #include "pqCoreModule.h"
8 
9 #include <QMap>
10 #include <QString>
11 
19 {
20 public:
21  pqIconSettings(const QString& iconCategory);
22 
26  void setItemIconInSettings(const QString& itemKey, const QString& iconPath);
27 
31  QString getIconFromSettings(const QString& itemKey);
32 
37  QMap<QString, QString> getSettings();
38 
44  void writeSettings(const QMap<QString, QString>& iconMap);
45 
49  void removeItemFromSettings(const QString& itemKey);
50 
51 private:
56  bool getItemIndexInSettings(const QString& itemKey, int& idx, int& size);
57 
58  QString IconCategory;
59 };
60 
61 #endif // pqIconSettings_h
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
size
pqIconSettings is a class to handle icons settings for a specific category of graphical item...