mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-19 22:42:23 -05:00
Move theme detection into Application
* Add function to Application to quickly determine if in light or dark theme * Add kpxcApp symbol * Explicitly define main function for GUI tests to improve performance and use custom Application.
This commit is contained in:
parent
a8c02fdc3c
commit
1d7ef5d4eb
7 changed files with 77 additions and 30 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#ifndef KEEPASSX_CONFIG_H
|
||||
#define KEEPASSX_CONFIG_H
|
||||
|
||||
#include <QPointer>
|
||||
#include <QScopedPointer>
|
||||
#include <QVariant>
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ private:
|
|||
void init(const QString& fileName);
|
||||
void upgrade();
|
||||
|
||||
static Config* m_instance;
|
||||
static QPointer<Config> m_instance;
|
||||
|
||||
QScopedPointer<QSettings> m_settings;
|
||||
QHash<QString, QVariant> m_defaults;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue