QPlastiqueStylePrivate Class Reference

Inheritance diagram for QPlastiqueStylePrivate:

Inheritance graph
[legend]
Collaboration diagram for QPlastiqueStylePrivate:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 940 of file qplastiquestyle.cpp.

Public Member Functions

 QPlastiqueStylePrivate ()
virtual ~QPlastiqueStylePrivate ()
void lookupIconTheme () const

Public Attributes

QList< QProgressBar * > bars
int progressBarAnimateTimer
QTime timer


Constructor & Destructor Documentation

QPlastiqueStylePrivate::QPlastiqueStylePrivate (  ) 

Definition at line 958 of file qplastiquestyle.cpp.

References isNull(), qgetenv(), and UsePixmapCache.

00958                                                :
00959     QWindowsStylePrivate()
00960 #ifndef QT_NO_PROGRESSBAR
00961     , progressBarAnimateTimer(0)
00962 #endif
00963 {
00964     if (!qgetenv("QT_STYLE_NO_PIXMAPCACHE").isNull())
00965         UsePixmapCache = false;
00966 }

Here is the call graph for this function:

QPlastiqueStylePrivate::~QPlastiqueStylePrivate (  )  [virtual]

Definition at line 971 of file qplastiquestyle.cpp.

00972 {
00973 }


Member Function Documentation

void QPlastiqueStylePrivate::lookupIconTheme (  )  const

Definition at line 5521 of file qplastiquestyle.cpp.

References QSettings::beginGroup(), QFileInfo::canonicalFilePath(), QFileInfo::exists(), QSettings::IniFormat, kdeHome(), QVariant::toString(), and QSettings::value().

05522 {
05523 #ifdef Q_WS_X11
05524     if (!themeName.isEmpty())
05525         return;
05526     QFileInfo fileInfo("/usr/share/icons/default.kde");
05527     QDir dir(fileInfo.canonicalFilePath());
05528     QString defaultTheme = fileInfo.exists() ? dir.dirName() : "crystalsvg";
05529 
05530     QSettings settings(kdeHome() + QLatin1String("/share/config/kdeglobals"), QSettings::IniFormat);
05531     settings.beginGroup("Icons");
05532     themeName = settings.value("Theme", defaultTheme).toString();
05533     /*
05534     // This can be enabled if there are bug reports that this doesn't cover all cases (which it doesn't)
05535     QProcess kreadconfig;
05536     kreadconfig.start(QLatin1String("kreadconfig --file kdeglobals --group Icons --key Theme --default crystalsvg"));
05537     if (kreadconfig.waitForFinished())
05538         themeName = QLatin1String(kreadconfig.readLine().trimmed());
05539     */
05540 #endif
05541 }

Here is the call graph for this function:


Member Data Documentation

QList<QProgressBar *> QPlastiqueStylePrivate::bars

Reimplemented from QWindowsStylePrivate.

Definition at line 949 of file qplastiquestyle.cpp.

int QPlastiqueStylePrivate::progressBarAnimateTimer

Definition at line 950 of file qplastiquestyle.cpp.

QTime QPlastiqueStylePrivate::timer

Definition at line 951 of file qplastiquestyle.cpp.


The documentation for this class was generated from the following file:
Generated on Thu Mar 15 18:42:00 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1