summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylehelper_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2014-09-04 19:11:23 +0200
committerGabriel de Dietrich <gabriel.dedietrich@digia.com>2014-09-11 11:53:53 +0200
commit982b9b7ec2441103b100c09cfcca4755d67fe839 (patch)
tree9b1a11f3b5feca720a448b5654fe7c2423406a98 /src/widgets/styles/qstylehelper_p.h
parentc1b46b98edc2f12fb7c596660777debed9191f52 (diff)
QMacStyle: Use NSView rendering for some inactive widgets on 10.10
Right now, we use them for inactive non-editable combo box, check box, and radio button only on Yosemite. We keep as much as possible the previous behavior on older versions. In addition, we add a way for QQuickStyleItem to specify the window the item is on. This is currently without effect, since we don't seem to take the inactive window state into account. Task-number: QTBUG-40833 Change-Id: I2fb2a99e6adf1972f881195b79b07ce85a960273 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/widgets/styles/qstylehelper_p.h')
-rw-r--r--src/widgets/styles/qstylehelper_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/styles/qstylehelper_p.h b/src/widgets/styles/qstylehelper_p.h
index 73e5c94dcd..1229af7497 100644
--- a/src/widgets/styles/qstylehelper_p.h
+++ b/src/widgets/styles/qstylehelper_p.h
@@ -68,6 +68,7 @@ class QPainter;
class QPixmap;
class QStyleOptionSlider;
class QStyleOption;
+class QWindow;
namespace QStyleHelper
{
@@ -87,6 +88,7 @@ namespace QStyleHelper
bool hasAncestor(QObject *obj, QAccessible::Role role);
#endif
QColor backgroundColor(const QPalette &pal, const QWidget* widget = 0);
+ QWindow *styleObjectWindow(QObject *so);
}