Changeset View
Changeset View
Standalone View
Standalone View
qt5/style/qtcurve.h
| Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Line(s) | 373 | #ifdef QTC_QT5_ENABLE_KDE | |||
|---|---|---|---|---|---|
| 374 | void setupKde4(); | 374 | void setupKde4(); | ||
| 375 | void setDecorationColors(); | 375 | void setDecorationColors(); | ||
| 376 | void applyKdeSettings(bool pal); | 376 | void applyKdeSettings(bool pal); | ||
| 377 | #endif | 377 | #endif | ||
| 378 | bool isWindowDragWidget(QObject *o); | 378 | bool isWindowDragWidget(QObject *o); | ||
| 379 | void emitMenuSize(QWidget *w, unsigned short size, bool force=false); | 379 | void emitMenuSize(QWidget *w, unsigned short size, bool force=false); | ||
| 380 | void emitStatusBarState(QStatusBar *sb); | 380 | void emitStatusBarState(QStatusBar *sb); | ||
| 381 | const QColor& | 381 | const QColor& | ||
| 382 | MOArrow(QFlags<State> state, const QPalette &palette, bool mo, | 382 | MOArrow(State state, const QPalette &palette, bool mo, | ||
| 383 | QPalette::ColorRole rol) const | 383 | QPalette::ColorRole rol) const | ||
| 384 | { | 384 | { | ||
| 385 | if (!(state & State_Enabled)) { | 385 | if (!(state & State_Enabled)) { | ||
| 386 | return palette.color(QPalette::Disabled, rol); | 386 | return palette.color(QPalette::Disabled, rol); | ||
| 387 | } else if (opts.coloredMouseOver != MO_NONE && mo) { | 387 | } else if (opts.coloredMouseOver != MO_NONE && mo) { | ||
| 388 | return m_mouseOverCols[ARROW_MO_SHADE]; | 388 | return m_mouseOverCols[ARROW_MO_SHADE]; | ||
| 389 | } else { | 389 | } else { | ||
| 390 | return palette.color(rol); | 390 | return palette.color(rol); | ||
| 391 | } | 391 | } | ||
| 392 | } | 392 | } | ||
| 393 | const QColor& | 393 | const QColor& | ||
| 394 | MOArrow(QFlags<State> state, const QPalette &palette, | 394 | MOArrow(State state, const QPalette &palette, | ||
| 395 | QPalette::ColorRole rol) const | 395 | QPalette::ColorRole rol) const | ||
| 396 | { | 396 | { | ||
| 397 | return MOArrow(state, palette, state & State_MouseOver, rol); | 397 | return MOArrow(state, palette, state & State_MouseOver, rol); | ||
| 398 | } | 398 | } | ||
| 399 | 399 | | |||
| 400 | bool | 400 | bool | ||
| 401 | drawPrimitiveNone(PrimitiveElement, const QStyleOption*, | 401 | drawPrimitiveNone(PrimitiveElement, const QStyleOption*, | ||
| 402 | QPainter*, const QWidget*) const | 402 | QPainter*, const QWidget*) const | ||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||