the-libs/lib/the-libs_global.h
2018-08-03 22:31:27 +10:00

47 lines
948 B
C++

#ifndef THELIBS_GLOBAL_H
#define THELIBS_GLOBAL_H
#include <QtCore/qglobal.h>
#include <QObject>
#include <QApplication>
#include <QStyle>
#include <QStyleFactory>
#include <QSettings>
#ifdef Q_OS_UNIX
#include <QDBusMessage>
#include <QDBusReply>
#include <QDBusConnection>
#endif
#if defined(THELIBS_LIBRARY)
# define THELIBSSHARED_EXPORT Q_DECL_EXPORT
#else
# define THELIBSSHARED_EXPORT Q_DECL_IMPORT
#endif
class THELIBSSHARED_EXPORT theLibsGlobal : public QObject {
Q_OBJECT
public:
static theLibsGlobal* instance();
static float getDPIScaling();
public slots:
bool powerStretchEnabled();
bool allowSystemAnimations();
private slots:
void powerStretchChangedPrivate(bool isOn);
signals:
void powerStretchChanged(bool isOn);
private:
theLibsGlobal();
bool powerStretch = false;
QSettings* themeSettings;
};
#endif // THELIBS_GLOBAL_H