The Constants class.
More...
#include <plugins/Utils/constants.h>
Inherits QObject.
The Constants class.
This singleton class exposes contants to Qml
Definition at line 28 of file constants.h.
◆ Constants()
Constants::Constants |
( |
QObject * |
parent = 0 | ) |
|
Definition at line 21 of file constants.cpp.
22 : QObject(parent)
23{
24 if (qEnvironmentVariableIsEmpty("QT_LOAD_TESTABILITY")) {
25 m_indicatorValueTimeout = 30000;
26 } else {
27 m_indicatorValueTimeout = 5000;
28 }
29
30 QString snapRoot = QFile::decodeName(qgetenv("SNAP"));
31 m_defaultWallpaper = snapRoot + "/usr/share/backgrounds/warty-final-ubuntu.png";
32}
◆ defaultWallpaper()
QString Constants::defaultWallpaper |
( |
| ) |
const |
|
inline |
Definition at line 38 of file constants.h.
38{ return m_defaultWallpaper; }
◆ indicatorValueTimeout()
int Constants::indicatorValueTimeout |
( |
| ) |
const |
|
inline |
Definition at line 37 of file constants.h.
37{ return m_indicatorValueTimeout; }
◆ defaultWallpaper
QString Constants::defaultWallpaper |
|
read |
◆ indicatorValueTimeout
int Constants::indicatorValueTimeout |
|
read |
The documentation for this class was generated from the following files: