Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgtk3storage.cpp File Reference

(d0b4e8a601bc2f81ddb23c124acc99defa26c02f)

#include "qgtk3json_p.h"
#include "qgtk3storage_p.h"
#include <qpa/qwindowsysteminterface.h>
+ Include dependency graph for qgtk3storage.cpp:

Go to the source code of this file.

Macros

#define FIND(brush)
 
#define GTK(wtype, colorSource, state)
 
#define LIGHTER(group, role, lighter)
 
#define MODIFY(group, role, red, green, blue)
 
#define FIX(color)   source = FixedSource(color);
 
#define ADD_2(group, role)   map.insert(TargetBrush(QPalette::group, QPalette::role), source);
 
#define ADD_3(group, role, app)
 
#define ADD_X(x, group, role, app, FUNC, ...)   FUNC
 
#define ADD(...)   ADD_X(,##__VA_ARGS__, ADD_3(__VA_ARGS__), ADD_2(__VA_ARGS__))
 
#define SAVE(palette)   m_palettes.insert(QPlatformTheme::palette, map)
 
#define CLEAR   map.clear()
 

Macro Definition Documentation

◆ ADD

#define ADD ( ...)    ADD_X(,##__VA_ARGS__, ADD_3(__VA_ARGS__), ADD_2(__VA_ARGS__))

◆ ADD_2

#define ADD_2 ( group,
role )   map.insert(TargetBrush(QPalette::group, QPalette::role), source);

◆ ADD_3

#define ADD_3 ( group,
role,
app )
Value:
map.insert(TargetBrush(QPalette::group, QPalette::role,\
Qt::ColorScheme::app), source);
iterator insert(const Key &key, const T &value)
Definition qmap.h:688
QMap< QString, QString > map
[6]
GLsizei GLsizei GLchar * source

◆ ADD_X

#define ADD_X ( x,
group,
role,
app,
FUNC,
... )   FUNC

◆ CLEAR

#define CLEAR   map.clear()

◆ FIND

#define FIND ( brush)
Value:
return map.value(brush)
T value(const Key &key, const T &defaultValue=T()) const
Definition qmap.h:357
bool contains(const Key &key) const
Definition qmap.h:341
Definition brush.cpp:5

◆ FIX

#define FIX ( color)    source = FixedSource(color);

◆ GTK

#define GTK ( wtype,
colorSource,
state )
Value:
source = Source(QGtk3Interface::QGtkWidget::gtk_ ##wtype,\
QGtk3Interface::QGtkColorSource::colorSource, GTK_STATE_FLAG_ ##state)
else opt state
[0]

◆ LIGHTER

#define LIGHTER ( group,
role,
lighter )
Value:
source = Source(QPalette::group, QPalette::role,\

◆ MODIFY

#define MODIFY ( group,
role,
red,
green,
blue )
Value:
source = Source(QPalette::group, QPalette::role,\
GLbyte GLbyte blue
Definition qopenglext.h:385
GLbyte green
Definition qopenglext.h:385
QGraphicsSvgItem * red

◆ SAVE