167 for (
int i = 0 ; i < iconDirs.
size() ; ++i) {
168 QDir iconDir(iconDirs[i]);
171 if (themeIndex.
exists()) {
177 #ifndef QT_NO_SETTINGS 178 if (themeIndex.
exists()) {
181 while (keyIterator.hasNext()) {
187 if (
int size = indexReader.value(key).toInt()) {
202 dirInfo.threshold = indexReader.value(directoryKey +
206 dirInfo.minSize = indexReader.value(directoryKey +
210 dirInfo.maxSize = indexReader.value(directoryKey +
230 #endif //QT_NO_SETTINGS The QDir class provides access to directory structures and their contents.
QString fileName() const
Returns the name set by setFileName() or to the QFile constructors.
The QSettings class provides persistent platform-independent application settings.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
QList< QIconDirInfo > keyList()
static QStringList themeSearchPaths()
Returns the search paths for icon themes.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
bool exists() const
Returns true if the file specified by fileName() exists; otherwise returns false. ...
void append(const T &t)
Inserts value at the end of the list.
QList< QIconDirInfo > m_keyList
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
int size() const
Returns the number of characters in this string.
The QStringList class provides a list of strings.
static QString fallbackTheme()
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.
T value(int i) const
Returns the value at index position i in the list.
The QFile class provides an interface for reading from and writing to files.
int size() const
Returns the number of items in the list.
QListIterator< QString > QStringListIterator
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void setFileName(const QString &name)
Sets the name of the file.