mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
Use macro then.
Took 7 minutes
This commit is contained in:
parent
96de0209b2
commit
42565cc91a
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ struct PaletteColorInfo
|
||||||
QColor color;
|
QColor color;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef NDEBUG
|
[[maybe_unused]]
|
||||||
static inline QList<PaletteColorInfo> queryAllPaletteColors(const QPalette &palette = qApp->palette())
|
static inline QList<PaletteColorInfo> queryAllPaletteColors(const QPalette &palette = qApp->palette())
|
||||||
{
|
{
|
||||||
QList<PaletteColorInfo> colors;
|
QList<PaletteColorInfo> colors;
|
||||||
|
|
@ -66,6 +66,7 @@ static inline QList<PaletteColorInfo> queryAllPaletteColors(const QPalette &pale
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pretty print version
|
// Pretty print version
|
||||||
|
[[maybe_unused]]
|
||||||
static inline void printPaletteColors(const QPalette &palette = qApp->palette())
|
static inline void printPaletteColors(const QPalette &palette = qApp->palette())
|
||||||
{
|
{
|
||||||
QMetaEnum groupEnum = QMetaEnum::fromType<QPalette::ColorGroup>();
|
QMetaEnum groupEnum = QMetaEnum::fromType<QPalette::ColorGroup>();
|
||||||
|
|
@ -88,7 +89,6 @@ static inline void printPaletteColors(const QPalette &palette = qApp->palette())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue