summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-06-20 14:50:48 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-12-12 23:24:29 +0100
commit072ca960f517f0cdfcb768dcbeebba2212a6c21e (patch)
tree53a55ceb2be475dd5a7b1a0830b7d9b79b79a5a9 /examples/widgets/widgets/styles/norwegianwoodstyle.cpp
parentda0e7457523a5c6867c2d9b9f0346167738f0323 (diff)
styles example: Set default style up front, and react to style changes
Allows running the example with -style foo or QT_STYLE_OVERRIDE. No changes to documentation needed. Change-Id: Id7cef450f13faabd118badde51afb7273439c9fc Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/widgets/widgets/styles/norwegianwoodstyle.cpp')
-rw-r--r--examples/widgets/widgets/styles/norwegianwoodstyle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/widgets/styles/norwegianwoodstyle.cpp b/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
index 0f614a2e9a..bbdb626a18 100644
--- a/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
+++ b/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
@@ -58,6 +58,7 @@
NorwegianWoodStyle::NorwegianWoodStyle() :
QProxyStyle(QStyleFactory::create("windows"))
{
+ setObjectName("NorwegianWood");
}
//! [0]