-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcustomborderstorage.h
More file actions
31 lines (27 loc) · 1.06 KB
/
customborderstorage.h
File metadata and controls
31 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CUSTOMBORDERSTORAGE_H
#define CUSTOMBORDERSTORAGE_H
#include "filestorage.h"
#include "custombordercontainer.h"
class CustomBorderContainerPrivate;
class UTILS_EXPORT CustomBorderStorage : public FileStorage
{
Q_OBJECT
public:
CustomBorderStorage(const QString &AStorage, const QString &ASubStorage = QString::null, QObject *AParent = NULL);
~CustomBorderStorage();
CustomBorderContainer *addBorder(QWidget *widget, const QString & key);
void removeBorder(QWidget * widget);
public:
static bool isBordersAvail();
static bool isBordersEnabled();
static void setBordersEnabled(bool enabled);
static bool isBordered(QWidget *widget);
static CustomBorderContainer *widgetBorder(QWidget *widget);
static CustomBorderStorage *staticStorage(const QString & storage);
private:
static bool bordersEnabled;
static QHash<QString, CustomBorderContainerPrivate *> borderStyleCache;
static QHash<QWidget *, CustomBorderContainer *> borderCache;
static QHash<QString, CustomBorderStorage *> staticStorages;
};
#endif // CUSTOMBORDERSTORAGE_H