44 #include <QtCore/QLibrary> 45 #include <QtCore/QDir> 46 #include <QtCore/qdebug.h> 47 #include <QtCore/QSettings> 48 #include "QtGui/qstylefactory.h" 85 if (values.
size() == 3) {
86 int r = values[0].toInt();
87 int g = values[1].toInt();
88 int b = values[2].toInt();
129 if (
X11->desktopVersion >= 4) {
138 if (
X11->use_xrender)
163 static int iconSize = -1;
164 if (iconSize == -1) {
The QVariant class acts like a union for the most common Qt data types.
The QDir class provides access to directory structures and their contents.
The QColor class provides colors based on RGB, HSV or CMYK values.
static bool kdeColor(QPalette *pal, QPalette::ColorRole role, const QSettings &kdeSettings, const QString &kde4Key, const QString &kde3Key=QString())
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Returns the value for setting key.
#define QT_END_NAMESPACE
This macro expands to.
ColorRole
The ColorRole enum defines the different symbolic color roles used in current GUIs.
The QSettings class provides persistent platform-independent application settings.
void beginGroup(const QString &prefix)
Appends prefix to the current group.
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
bool exists() const
Returns true if the directory exists; otherwise returns false.
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
QStringList toStringList() const
Returns the variant as a QStringList if the variant has type() StringList, String ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setBrush(ColorRole cr, const QBrush &brush)
Sets the brush for the given color role to the specified brush for all groups in the palette...
static QStringList keys()
Returns the list of valid keys, i.e.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The QStringList class provides a list of strings.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
int size() const
Returns the number of items in the list.
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
static QString homePath()
Returns the absolute path of the user's home directory.
The QPalette class contains color groups for each widget state.