src/gui/styles/qplastiquestyle.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
    48 // #define QPlastique_MaskButtons
    48 // #define QPlastique_MaskButtons
    49 static const int ProgressBarFps = 25;
    49 static const int ProgressBarFps = 25;
    50 static const int blueFrameWidth =  2;  // with of line edit focus frame
    50 static const int blueFrameWidth =  2;  // with of line edit focus frame
    51 
    51 
    52 #include "qwindowsstyle_p.h"
    52 #include "qwindowsstyle_p.h"
    53 #include <private/qstylehelper_p.h>
       
    54 #include <qapplication.h>
    53 #include <qapplication.h>
    55 #include <qbitmap.h>
    54 #include <qbitmap.h>
    56 #include <qabstractitemview.h>
    55 #include <qabstractitemview.h>
    57 #include <qcheckbox.h>
    56 #include <qcheckbox.h>
    58 #include <qcombobox.h>
    57 #include <qcombobox.h>
    59 #include <qdatetime.h>
       
    60 #include <qdebug.h>
    58 #include <qdebug.h>
    61 #include <qdialogbuttonbox.h>
    59 #include <qdialogbuttonbox.h>
    62 #include <qformlayout.h>
    60 #include <qformlayout.h>
    63 #include <qgroupbox.h>
    61 #include <qgroupbox.h>
    64 #include <qimage.h>
    62 #include <qimage.h>
    79 #include <qscrollbar.h>
    77 #include <qscrollbar.h>
    80 #include <qspinbox.h>
    78 #include <qspinbox.h>
    81 #include <qsplitter.h>
    79 #include <qsplitter.h>
    82 #include <qstyleoption.h>
    80 #include <qstyleoption.h>
    83 #include <qtextedit.h>
    81 #include <qtextedit.h>
       
    82 #include <qelapsedtimer.h>
    84 #include <qtoolbar.h>
    83 #include <qtoolbar.h>
    85 #include <qtoolbox.h>
    84 #include <qtoolbox.h>
    86 #include <qtoolbutton.h>
    85 #include <qtoolbutton.h>
    87 #include <qworkspace.h>
    86 #include <qworkspace.h>
    88 #include <qprocess.h>
    87 #include <qprocess.h>
    89 #include <qvarlengtharray.h>
    88 #include <qvarlengtharray.h>
    90 #include <limits.h>
    89 #include <limits.h>
       
    90 #include <private/qstylehelper_p.h>
    91 
    91 
    92 QT_BEGIN_NAMESPACE
    92 QT_BEGIN_NAMESPACE
    93 
    93 
    94 // from windows style
    94 // from windows style
    95 static const int windowsItemFrame        =  2; // menu item frame width
    95 static const int windowsItemFrame        =  2; // menu item frame width
   978                           const QRect &rect, const QWidget *widget) const;
   978                           const QRect &rect, const QWidget *widget) const;
   979 
   979 
   980 #ifndef QT_NO_PROGRESSBAR
   980 #ifndef QT_NO_PROGRESSBAR
   981     QList<QProgressBar *> bars;
   981     QList<QProgressBar *> bars;
   982     int progressBarAnimateTimer;
   982     int progressBarAnimateTimer;
   983     QTime timer;
   983     QElapsedTimer timer;
   984 #endif
   984 #endif
   985 };
   985 };
   986 
   986 
   987 /*!
   987 /*!
   988   \internal
   988   \internal
  5844   \reimp
  5844   \reimp
  5845 */
  5845 */
  5846 void QPlastiqueStyle::polish(QPalette &pal)
  5846 void QPlastiqueStyle::polish(QPalette &pal)
  5847 {
  5847 {
  5848     QWindowsStyle::polish(pal);
  5848     QWindowsStyle::polish(pal);
  5849     pal.setBrush(QPalette::AlternateBase, pal.base().color().darker(110));
       
  5850 #ifdef Q_WS_MAC
  5849 #ifdef Q_WS_MAC
  5851     pal.setBrush(QPalette::Shadow, Qt::black);
  5850     pal.setBrush(QPalette::Shadow, Qt::black);
  5852 #endif
  5851 #endif
  5853 }
  5852 }
  5854 
  5853