summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel de Dietrich <[email protected]>2012-08-17 13:23:19 +0200
committerQt by Nokia <[email protected]>2012-08-20 12:20:55 +0200
commit806dda08d685bc5f9ed71dfe8b61f21848d48066 (patch)
treea63533a1c4a335ae17adc105abb0ae4e62e2f26e
parent9f942014e31842b512c3198de035d041c59f54a9 (diff)
Moving .qdoc files under examples/widgets/doc
Updated those .qdoc files to refer to the new relative examples emplacement. Images and snippets to be moved later. Also grouped all widgets related examples under widgets. Change-Id: Ib29696e2d8948524537f53e8dda88f9ee26a597f Reviewed-by: J-P Nurmi <[email protected]>
-rw-r--r--doc/src/examples/maemovibration.qdoc164
-rw-r--r--examples/examples.pro35
-rw-r--r--examples/widgets/animation/README (renamed from examples/animation/README)0
-rw-r--r--examples/widgets/animation/animatedtiles/animatedtiles.desktop (renamed from examples/animation/animatedtiles/animatedtiles.desktop)0
-rw-r--r--examples/widgets/animation/animatedtiles/animatedtiles.pro (renamed from examples/animation/animatedtiles/animatedtiles.pro)0
-rw-r--r--examples/widgets/animation/animatedtiles/animatedtiles.qrc (renamed from examples/animation/animatedtiles/animatedtiles.qrc)0
-rw-r--r--examples/widgets/animation/animatedtiles/images/Time-For-Lunch-2.jpg (renamed from examples/animation/animatedtiles/images/Time-For-Lunch-2.jpg)bin32471 -> 32471 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/centered.png (renamed from examples/animation/animatedtiles/images/centered.png)bin892 -> 892 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/ellipse.png (renamed from examples/animation/animatedtiles/images/ellipse.png)bin10767 -> 10767 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/figure8.png (renamed from examples/animation/animatedtiles/images/figure8.png)bin14050 -> 14050 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/kinetic.png (renamed from examples/animation/animatedtiles/images/kinetic.png)bin6776 -> 6776 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/random.png (renamed from examples/animation/animatedtiles/images/random.png)bin14969 -> 14969 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/images/tile.png (renamed from examples/animation/animatedtiles/images/tile.png)bin16337 -> 16337 bytes
-rw-r--r--examples/widgets/animation/animatedtiles/main.cpp (renamed from examples/animation/animatedtiles/main.cpp)0
-rw-r--r--examples/widgets/animation/animation.pro (renamed from examples/animation/animation.pro)0
-rw-r--r--examples/widgets/animation/appchooser/accessories-dictionary.png (renamed from examples/animation/appchooser/accessories-dictionary.png)bin5396 -> 5396 bytes
-rw-r--r--examples/widgets/animation/appchooser/akregator.png (renamed from examples/animation/appchooser/akregator.png)bin4873 -> 4873 bytes
-rw-r--r--examples/widgets/animation/appchooser/appchooser.desktop (renamed from examples/animation/appchooser/appchooser.desktop)0
-rw-r--r--examples/widgets/animation/appchooser/appchooser.pro (renamed from examples/animation/appchooser/appchooser.pro)0
-rw-r--r--examples/widgets/animation/appchooser/appchooser.qrc (renamed from examples/animation/appchooser/appchooser.qrc)0
-rw-r--r--examples/widgets/animation/appchooser/digikam.png (renamed from examples/animation/appchooser/digikam.png)bin3334 -> 3334 bytes
-rw-r--r--examples/widgets/animation/appchooser/k3b.png (renamed from examples/animation/appchooser/k3b.png)bin8220 -> 8220 bytes
-rw-r--r--examples/widgets/animation/appchooser/main.cpp (renamed from examples/animation/appchooser/main.cpp)0
-rw-r--r--examples/widgets/animation/easing/animation.h (renamed from examples/animation/easing/animation.h)0
-rw-r--r--examples/widgets/animation/easing/easing.desktop (renamed from examples/animation/easing/easing.desktop)0
-rw-r--r--examples/widgets/animation/easing/easing.pro (renamed from examples/animation/easing/easing.pro)0
-rw-r--r--examples/widgets/animation/easing/easing.qrc (renamed from examples/animation/easing/easing.qrc)0
-rw-r--r--examples/widgets/animation/easing/form.ui (renamed from examples/animation/easing/form.ui)0
-rw-r--r--examples/widgets/animation/easing/images/qt-logo.png (renamed from examples/animation/easing/images/qt-logo.png)bin5149 -> 5149 bytes
-rw-r--r--examples/widgets/animation/easing/main.cpp (renamed from examples/animation/easing/main.cpp)0
-rw-r--r--examples/widgets/animation/easing/window.cpp (renamed from examples/animation/easing/window.cpp)0
-rw-r--r--examples/widgets/animation/easing/window.h (renamed from examples/animation/easing/window.h)0
-rw-r--r--examples/widgets/animation/moveblocks/main.cpp (renamed from examples/animation/moveblocks/main.cpp)0
-rw-r--r--examples/widgets/animation/moveblocks/moveblocks.desktop (renamed from examples/animation/moveblocks/moveblocks.desktop)0
-rw-r--r--examples/widgets/animation/moveblocks/moveblocks.pro (renamed from examples/animation/moveblocks/moveblocks.pro)0
-rw-r--r--examples/widgets/animation/states/accessories-dictionary.png (renamed from examples/animation/states/accessories-dictionary.png)bin5396 -> 5396 bytes
-rw-r--r--examples/widgets/animation/states/akregator.png (renamed from examples/animation/states/akregator.png)bin4873 -> 4873 bytes
-rw-r--r--examples/widgets/animation/states/digikam.png (renamed from examples/animation/states/digikam.png)bin3334 -> 3334 bytes
-rw-r--r--examples/widgets/animation/states/help-browser.png (renamed from examples/animation/states/help-browser.png)bin6984 -> 6984 bytes
-rw-r--r--examples/widgets/animation/states/k3b.png (renamed from examples/animation/states/k3b.png)bin8220 -> 8220 bytes
-rw-r--r--examples/widgets/animation/states/kchart.png (renamed from examples/animation/states/kchart.png)bin4887 -> 4887 bytes
-rw-r--r--examples/widgets/animation/states/main.cpp (renamed from examples/animation/states/main.cpp)0
-rw-r--r--examples/widgets/animation/states/states.desktop (renamed from examples/animation/states/states.desktop)0
-rw-r--r--examples/widgets/animation/states/states.pro (renamed from examples/animation/states/states.pro)0
-rw-r--r--examples/widgets/animation/states/states.qrc (renamed from examples/animation/states/states.qrc)0
-rw-r--r--examples/widgets/animation/stickman/animation.cpp (renamed from examples/animation/stickman/animation.cpp)0
-rw-r--r--examples/widgets/animation/stickman/animation.h (renamed from examples/animation/stickman/animation.h)0
-rw-r--r--examples/widgets/animation/stickman/animations/chilling.bin (renamed from examples/animation/stickman/animations/chilling.bin)bin6508 -> 6508 bytes
-rw-r--r--examples/widgets/animation/stickman/animations/dancing.bin (renamed from examples/animation/stickman/animations/dancing.bin)bin2348 -> 2348 bytes
-rw-r--r--examples/widgets/animation/stickman/animations/dead.bin (renamed from examples/animation/stickman/animations/dead.bin)bin268 -> 268 bytes
-rw-r--r--examples/widgets/animation/stickman/animations/jumping.bin (renamed from examples/animation/stickman/animations/jumping.bin)bin1308 -> 1308 bytes
-rw-r--r--examples/widgets/animation/stickman/graphicsview.cpp (renamed from examples/animation/stickman/graphicsview.cpp)0
-rw-r--r--examples/widgets/animation/stickman/graphicsview.h (renamed from examples/animation/stickman/graphicsview.h)0
-rw-r--r--examples/widgets/animation/stickman/lifecycle.cpp (renamed from examples/animation/stickman/lifecycle.cpp)0
-rw-r--r--examples/widgets/animation/stickman/lifecycle.h (renamed from examples/animation/stickman/lifecycle.h)0
-rw-r--r--examples/widgets/animation/stickman/main.cpp (renamed from examples/animation/stickman/main.cpp)0
-rw-r--r--examples/widgets/animation/stickman/node.cpp (renamed from examples/animation/stickman/node.cpp)0
-rw-r--r--examples/widgets/animation/stickman/node.h (renamed from examples/animation/stickman/node.h)0
-rw-r--r--examples/widgets/animation/stickman/rectbutton.cpp (renamed from examples/animation/stickman/rectbutton.cpp)0
-rw-r--r--examples/widgets/animation/stickman/rectbutton.h (renamed from examples/animation/stickman/rectbutton.h)0
-rw-r--r--examples/widgets/animation/stickman/stickman.cpp (renamed from examples/animation/stickman/stickman.cpp)0
-rw-r--r--examples/widgets/animation/stickman/stickman.desktop (renamed from examples/animation/stickman/stickman.desktop)0
-rw-r--r--examples/widgets/animation/stickman/stickman.h (renamed from examples/animation/stickman/stickman.h)0
-rw-r--r--examples/widgets/animation/stickman/stickman.pro (renamed from examples/animation/stickman/stickman.pro)0
-rw-r--r--examples/widgets/animation/stickman/stickman.qrc (renamed from examples/animation/stickman/stickman.qrc)0
-rw-r--r--examples/widgets/animation/sub-attaq/animationmanager.cpp (renamed from examples/animation/sub-attaq/animationmanager.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/animationmanager.h (renamed from examples/animation/sub-attaq/animationmanager.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/boat.cpp (renamed from examples/animation/sub-attaq/boat.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/boat.h (renamed from examples/animation/sub-attaq/boat.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/boat_p.h (renamed from examples/animation/sub-attaq/boat_p.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/bomb.cpp (renamed from examples/animation/sub-attaq/bomb.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/bomb.h (renamed from examples/animation/sub-attaq/bomb.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/data.xml (renamed from examples/animation/sub-attaq/data.xml)0
-rw-r--r--examples/widgets/animation/sub-attaq/graphicsscene.cpp (renamed from examples/animation/sub-attaq/graphicsscene.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/graphicsscene.h (renamed from examples/animation/sub-attaq/graphicsscene.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/main.cpp (renamed from examples/animation/sub-attaq/main.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/mainwindow.cpp (renamed from examples/animation/sub-attaq/mainwindow.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/mainwindow.h (renamed from examples/animation/sub-attaq/mainwindow.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/background.png (renamed from examples/animation/sub-attaq/pics/big/background.png)bin48858 -> 48858 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/boat.png (renamed from examples/animation/sub-attaq/pics/big/boat.png)bin5198 -> 5198 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/bomb.png (renamed from examples/animation/sub-attaq/pics/big/bomb.png)bin760 -> 760 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step1.png (renamed from examples/animation/sub-attaq/pics/big/explosion/boat/step1.png)bin5760 -> 5760 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step2.png (renamed from examples/animation/sub-attaq/pics/big/explosion/boat/step2.png)bin9976 -> 9976 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step3.png (renamed from examples/animation/sub-attaq/pics/big/explosion/boat/step3.png)bin12411 -> 12411 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step4.png (renamed from examples/animation/sub-attaq/pics/big/explosion/boat/step4.png)bin15438 -> 15438 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step1.png (renamed from examples/animation/sub-attaq/pics/big/explosion/submarine/step1.png)bin3354 -> 3354 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step2.png (renamed from examples/animation/sub-attaq/pics/big/explosion/submarine/step2.png)bin6205 -> 6205 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step3.png (renamed from examples/animation/sub-attaq/pics/big/explosion/submarine/step3.png)bin6678 -> 6678 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step4.png (renamed from examples/animation/sub-attaq/pics/big/explosion/submarine/step4.png)bin6666 -> 6666 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/submarine.png (renamed from examples/animation/sub-attaq/pics/big/submarine.png)bin3202 -> 3202 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/surface.png (renamed from examples/animation/sub-attaq/pics/big/surface.png)bin575 -> 575 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/big/torpedo.png (renamed from examples/animation/sub-attaq/pics/big/torpedo.png)bin951 -> 951 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/background-n810.svg (renamed from examples/animation/sub-attaq/pics/scalable/background-n810.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/background.svg (renamed from examples/animation/sub-attaq/pics/scalable/background.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/boat.svg (renamed from examples/animation/sub-attaq/pics/scalable/boat.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/bomb.svg (renamed from examples/animation/sub-attaq/pics/scalable/bomb.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/sand.svg (renamed from examples/animation/sub-attaq/pics/scalable/sand.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/see.svg (renamed from examples/animation/sub-attaq/pics/scalable/see.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/sky.svg (renamed from examples/animation/sub-attaq/pics/scalable/sky.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/sub-attaq.svg (renamed from examples/animation/sub-attaq/pics/scalable/sub-attaq.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/submarine.svg (renamed from examples/animation/sub-attaq/pics/scalable/submarine.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/surface.svg (renamed from examples/animation/sub-attaq/pics/scalable/surface.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/scalable/torpedo.svg (renamed from examples/animation/sub-attaq/pics/scalable/torpedo.svg)0
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/background.png (renamed from examples/animation/sub-attaq/pics/small/background.png)bin34634 -> 34634 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/boat.png (renamed from examples/animation/sub-attaq/pics/small/boat.png)bin2394 -> 2394 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/bomb.png (renamed from examples/animation/sub-attaq/pics/small/bomb.png)bin760 -> 760 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/submarine.png (renamed from examples/animation/sub-attaq/pics/small/submarine.png)bin1338 -> 1338 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/surface.png (renamed from examples/animation/sub-attaq/pics/small/surface.png)bin502 -> 502 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/small/torpedo.png (renamed from examples/animation/sub-attaq/pics/small/torpedo.png)bin951 -> 951 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-a.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-a.png)bin5972 -> 5972 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-a2.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-a2.png)bin5969 -> 5969 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-b.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-b.png)bin6869 -> 6869 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-dash.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-dash.png)bin2255 -> 2255 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-excl.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-excl.png)bin2740 -> 2740 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-q.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-q.png)bin7016 -> 7016 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-s.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-s.png)bin5817 -> 5817 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-t.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-t.png)bin3717 -> 3717 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-t2.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-t2.png)bin3688 -> 3688 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pics/welcome/logo-u.png (renamed from examples/animation/sub-attaq/pics/welcome/logo-u.png)bin5374 -> 5374 bytes
-rw-r--r--examples/widgets/animation/sub-attaq/pixmapitem.cpp (renamed from examples/animation/sub-attaq/pixmapitem.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/pixmapitem.h (renamed from examples/animation/sub-attaq/pixmapitem.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/progressitem.cpp (renamed from examples/animation/sub-attaq/progressitem.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/progressitem.h (renamed from examples/animation/sub-attaq/progressitem.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/qanimationstate.cpp (renamed from examples/animation/sub-attaq/qanimationstate.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/qanimationstate.h (renamed from examples/animation/sub-attaq/qanimationstate.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/states.cpp (renamed from examples/animation/sub-attaq/states.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/states.h (renamed from examples/animation/sub-attaq/states.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/sub-attaq.pro (renamed from examples/animation/sub-attaq/sub-attaq.pro)0
-rw-r--r--examples/widgets/animation/sub-attaq/subattaq.qrc (renamed from examples/animation/sub-attaq/subattaq.qrc)0
-rw-r--r--examples/widgets/animation/sub-attaq/submarine.cpp (renamed from examples/animation/sub-attaq/submarine.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/submarine.h (renamed from examples/animation/sub-attaq/submarine.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/submarine_p.h (renamed from examples/animation/sub-attaq/submarine_p.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/textinformationitem.cpp (renamed from examples/animation/sub-attaq/textinformationitem.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/textinformationitem.h (renamed from examples/animation/sub-attaq/textinformationitem.h)0
-rw-r--r--examples/widgets/animation/sub-attaq/torpedo.cpp (renamed from examples/animation/sub-attaq/torpedo.cpp)0
-rw-r--r--examples/widgets/animation/sub-attaq/torpedo.h (renamed from examples/animation/sub-attaq/torpedo.h)0
-rw-r--r--examples/widgets/desktop/README (renamed from examples/desktop/README)0
-rw-r--r--examples/widgets/desktop/desktop.pro (renamed from examples/desktop/desktop.pro)0
-rw-r--r--examples/widgets/desktop/screenshot/main.cpp (renamed from examples/desktop/screenshot/main.cpp)0
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.cpp (renamed from examples/desktop/screenshot/screenshot.cpp)0
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.desktop (renamed from examples/desktop/screenshot/screenshot.desktop)0
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.h (renamed from examples/desktop/screenshot/screenshot.h)0
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.pro (renamed from examples/desktop/screenshot/screenshot.pro)0
-rw-r--r--examples/widgets/desktop/systray/images/bad.png (renamed from examples/desktop/systray/images/bad.png)bin2496 -> 2496 bytes
-rw-r--r--examples/widgets/desktop/systray/images/heart.png (renamed from examples/desktop/systray/images/heart.png)bin25780 -> 25780 bytes
-rw-r--r--examples/widgets/desktop/systray/images/trash.png (renamed from examples/desktop/systray/images/trash.png)bin12128 -> 12128 bytes
-rw-r--r--examples/widgets/desktop/systray/main.cpp (renamed from examples/desktop/systray/main.cpp)0
-rw-r--r--examples/widgets/desktop/systray/systray.desktop (renamed from examples/desktop/systray/systray.desktop)0
-rw-r--r--examples/widgets/desktop/systray/systray.pro (renamed from examples/desktop/systray/systray.pro)0
-rw-r--r--examples/widgets/desktop/systray/systray.qrc (renamed from examples/desktop/systray/systray.qrc)0
-rw-r--r--examples/widgets/desktop/systray/window.cpp (renamed from examples/desktop/systray/window.cpp)0
-rw-r--r--examples/widgets/desktop/systray/window.h (renamed from examples/desktop/systray/window.h)0
-rw-r--r--examples/widgets/dialogs/README (renamed from examples/dialogs/README)0
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.cpp (renamed from examples/dialogs/classwizard/classwizard.cpp)0
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.desktop (renamed from examples/dialogs/classwizard/classwizard.desktop)0
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.h (renamed from examples/dialogs/classwizard/classwizard.h)0
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.pro (renamed from examples/dialogs/classwizard/classwizard.pro)0
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.qrc (renamed from examples/dialogs/classwizard/classwizard.qrc)0
-rw-r--r--examples/widgets/dialogs/classwizard/images/background.png (renamed from examples/dialogs/classwizard/images/background.png)bin22578 -> 22578 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/banner.png (renamed from examples/dialogs/classwizard/images/banner.png)bin3947 -> 3947 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo1.png (renamed from examples/dialogs/classwizard/images/logo1.png)bin1619 -> 1619 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo2.png (renamed from examples/dialogs/classwizard/images/logo2.png)bin1619 -> 1619 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo3.png (renamed from examples/dialogs/classwizard/images/logo3.png)bin1619 -> 1619 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/watermark1.png (renamed from examples/dialogs/classwizard/images/watermark1.png)bin14516 -> 14516 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/watermark2.png (renamed from examples/dialogs/classwizard/images/watermark2.png)bin14912 -> 14912 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/main.cpp (renamed from examples/dialogs/classwizard/main.cpp)0
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.cpp (renamed from examples/dialogs/configdialog/configdialog.cpp)0
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.desktop (renamed from examples/dialogs/configdialog/configdialog.desktop)0
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.h (renamed from examples/dialogs/configdialog/configdialog.h)0
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.pro (renamed from examples/dialogs/configdialog/configdialog.pro)0
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.qrc (renamed from examples/dialogs/configdialog/configdialog.qrc)0
-rw-r--r--examples/widgets/dialogs/configdialog/images/config.png (renamed from examples/dialogs/configdialog/images/config.png)bin6758 -> 6758 bytes
-rw-r--r--examples/widgets/dialogs/configdialog/images/query.png (renamed from examples/dialogs/configdialog/images/query.png)bin2116 -> 2116 bytes
-rw-r--r--examples/widgets/dialogs/configdialog/images/update.png (renamed from examples/dialogs/configdialog/images/update.png)bin7890 -> 7890 bytes
-rw-r--r--examples/widgets/dialogs/configdialog/main.cpp (renamed from examples/dialogs/configdialog/main.cpp)0
-rw-r--r--examples/widgets/dialogs/configdialog/pages.cpp (renamed from examples/dialogs/configdialog/pages.cpp)0
-rw-r--r--examples/widgets/dialogs/configdialog/pages.h (renamed from examples/dialogs/configdialog/pages.h)0
-rw-r--r--examples/widgets/dialogs/dialogs.pro (renamed from examples/dialogs/dialogs.pro)0
-rw-r--r--examples/widgets/dialogs/extension/extension.desktop (renamed from examples/dialogs/extension/extension.desktop)0
-rw-r--r--examples/widgets/dialogs/extension/extension.pro (renamed from examples/dialogs/extension/extension.pro)0
-rw-r--r--examples/widgets/dialogs/extension/finddialog.cpp (renamed from examples/dialogs/extension/finddialog.cpp)0
-rw-r--r--examples/widgets/dialogs/extension/finddialog.h (renamed from examples/dialogs/extension/finddialog.h)0
-rw-r--r--examples/widgets/dialogs/extension/main.cpp (renamed from examples/dialogs/extension/main.cpp)0
-rw-r--r--examples/widgets/dialogs/findfiles/findfiles.desktop (renamed from examples/dialogs/findfiles/findfiles.desktop)0
-rw-r--r--examples/widgets/dialogs/findfiles/findfiles.pro (renamed from examples/dialogs/findfiles/findfiles.pro)0
-rw-r--r--examples/widgets/dialogs/findfiles/main.cpp (renamed from examples/dialogs/findfiles/main.cpp)0
-rw-r--r--examples/widgets/dialogs/findfiles/window.cpp (renamed from examples/dialogs/findfiles/window.cpp)0
-rw-r--r--examples/widgets/dialogs/findfiles/window.h (renamed from examples/dialogs/findfiles/window.h)0
-rw-r--r--examples/widgets/dialogs/licensewizard/images/logo.png (renamed from examples/dialogs/licensewizard/images/logo.png)bin1810 -> 1810 bytes
-rw-r--r--examples/widgets/dialogs/licensewizard/images/watermark.png (renamed from examples/dialogs/licensewizard/images/watermark.png)bin34998 -> 34998 bytes
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.cpp (renamed from examples/dialogs/licensewizard/licensewizard.cpp)0
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.desktop (renamed from examples/dialogs/licensewizard/licensewizard.desktop)0
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.h (renamed from examples/dialogs/licensewizard/licensewizard.h)0
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.pro (renamed from examples/dialogs/licensewizard/licensewizard.pro)0
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.qrc (renamed from examples/dialogs/licensewizard/licensewizard.qrc)0
-rw-r--r--examples/widgets/dialogs/licensewizard/main.cpp (renamed from examples/dialogs/licensewizard/main.cpp)0
-rw-r--r--examples/widgets/dialogs/sipdialog/dialog.cpp (renamed from examples/dialogs/sipdialog/dialog.cpp)0
-rw-r--r--examples/widgets/dialogs/sipdialog/dialog.h (renamed from examples/dialogs/sipdialog/dialog.h)0
-rw-r--r--examples/widgets/dialogs/sipdialog/main.cpp (renamed from examples/dialogs/sipdialog/main.cpp)0
-rw-r--r--examples/widgets/dialogs/sipdialog/sipdialog.desktop (renamed from examples/dialogs/sipdialog/sipdialog.desktop)0
-rw-r--r--examples/widgets/dialogs/sipdialog/sipdialog.pro (renamed from examples/dialogs/sipdialog/sipdialog.pro)0
-rw-r--r--examples/widgets/dialogs/standarddialogs/dialog.cpp (renamed from examples/dialogs/standarddialogs/dialog.cpp)0
-rw-r--r--examples/widgets/dialogs/standarddialogs/dialog.h (renamed from examples/dialogs/standarddialogs/dialog.h)0
-rw-r--r--examples/widgets/dialogs/standarddialogs/main.cpp (renamed from examples/dialogs/standarddialogs/main.cpp)0
-rw-r--r--examples/widgets/dialogs/standarddialogs/standarddialogs.desktop (renamed from examples/dialogs/standarddialogs/standarddialogs.desktop)0
-rw-r--r--examples/widgets/dialogs/standarddialogs/standarddialogs.pro (renamed from examples/dialogs/standarddialogs/standarddialogs.pro)0
-rw-r--r--examples/widgets/dialogs/tabdialog/main.cpp (renamed from examples/dialogs/tabdialog/main.cpp)0
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.cpp (renamed from examples/dialogs/tabdialog/tabdialog.cpp)0
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.desktop (renamed from examples/dialogs/tabdialog/tabdialog.desktop)0
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.h (renamed from examples/dialogs/tabdialog/tabdialog.h)0
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.pro (renamed from examples/dialogs/tabdialog/tabdialog.pro)0
-rw-r--r--examples/widgets/dialogs/trivialwizard/trivialwizard.cpp (renamed from examples/dialogs/trivialwizard/trivialwizard.cpp)0
-rw-r--r--examples/widgets/dialogs/trivialwizard/trivialwizard.desktop (renamed from examples/dialogs/trivialwizard/trivialwizard.desktop)0
-rw-r--r--examples/widgets/dialogs/trivialwizard/trivialwizard.pro (renamed from examples/dialogs/trivialwizard/trivialwizard.pro)0
-rw-r--r--examples/widgets/doc/addressbook.qdoc (renamed from doc/src/examples/addressbook.qdoc)0
-rw-r--r--examples/widgets/doc/affine.qdoc (renamed from doc/src/examples/affine.qdoc)0
-rw-r--r--examples/widgets/doc/analogclock.qdoc (renamed from doc/src/examples/analogclock.qdoc)36
-rw-r--r--examples/widgets/doc/animatedtiles.qdoc (renamed from doc/src/examples/animatedtiles.qdoc)0
-rw-r--r--examples/widgets/doc/appchooser.qdoc (renamed from doc/src/examples/appchooser.qdoc)0
-rw-r--r--examples/widgets/doc/application.qdoc (renamed from doc/src/examples/application.qdoc)88
-rw-r--r--examples/widgets/doc/basicdrawing.qdoc (renamed from doc/src/examples/basicdrawing.qdoc)68
-rw-r--r--examples/widgets/doc/basicgraphicslayouts.qdoc (renamed from doc/src/examples/basicgraphicslayouts.qdoc)26
-rw-r--r--examples/widgets/doc/basiclayouts.qdoc (renamed from doc/src/examples/basiclayouts.qdoc)28
-rw-r--r--examples/widgets/doc/basicsortfiltermodel.qdoc (renamed from doc/src/examples/basicsortfiltermodel.qdoc)0
-rw-r--r--examples/widgets/doc/blurpicker.qdoc (renamed from doc/src/examples/blurpicker.qdoc)0
-rw-r--r--examples/widgets/doc/borderlayout.qdoc (renamed from doc/src/examples/borderlayout.qdoc)0
-rw-r--r--examples/widgets/doc/boxes.qdoc (renamed from doc/src/examples/boxes.qdoc)0
-rw-r--r--examples/widgets/doc/calculator.qdoc (renamed from doc/src/examples/calculator.qdoc)86
-rw-r--r--examples/widgets/doc/calendar.qdoc (renamed from doc/src/examples/calendar.qdoc)38
-rw-r--r--examples/widgets/doc/calendarwidget.qdoc (renamed from doc/src/examples/calendarwidget.qdoc)46
-rw-r--r--examples/widgets/doc/charactermap.qdoc (renamed from doc/src/examples/charactermap.qdoc)46
-rw-r--r--examples/widgets/doc/chart.qdoc (renamed from doc/src/examples/chart.qdoc)2
-rw-r--r--examples/widgets/doc/chip.qdoc (renamed from doc/src/examples/chip.qdoc)0
-rw-r--r--examples/widgets/doc/classwizard.qdoc (renamed from doc/src/examples/classwizard.qdoc)32
-rw-r--r--examples/widgets/doc/codeeditor.qdoc (renamed from doc/src/examples/codeeditor.qdoc)0
-rw-r--r--examples/widgets/doc/coloreditorfactory.qdoc (renamed from doc/src/examples/coloreditorfactory.qdoc)10
-rw-r--r--examples/widgets/doc/combowidgetmapper.qdoc (renamed from doc/src/examples/combowidgetmapper.qdoc)18
-rw-r--r--examples/widgets/doc/composition.qdoc (renamed from doc/src/examples/composition.qdoc)0
-rw-r--r--examples/widgets/doc/concentriccircles.qdoc (renamed from doc/src/examples/concentriccircles.qdoc)30
-rw-r--r--examples/widgets/doc/configdialog.qdoc (renamed from doc/src/examples/configdialog.qdoc)0
-rw-r--r--examples/widgets/doc/customsortfiltermodel.qdoc (renamed from doc/src/examples/customsortfiltermodel.qdoc)40
-rw-r--r--examples/widgets/doc/deform.qdoc (renamed from doc/src/examples/deform.qdoc)0
-rw-r--r--examples/widgets/doc/diagramscene.qdoc (renamed from doc/src/examples/diagramscene.qdoc)144
-rw-r--r--examples/widgets/doc/digitalclock.qdoc (renamed from doc/src/examples/digitalclock.qdoc)8
-rw-r--r--examples/widgets/doc/dirview.qdoc (renamed from doc/src/examples/dirview.qdoc)0
-rw-r--r--examples/widgets/doc/dockwidgets.qdoc (renamed from doc/src/examples/dockwidgets.qdoc)20
-rw-r--r--examples/widgets/doc/dragdroprobot.qdoc (renamed from doc/src/examples/dragdroprobot.qdoc)60
-rw-r--r--examples/widgets/doc/dynamiclayouts.qdoc (renamed from doc/src/examples/dynamiclayouts.qdoc)0
-rw-r--r--examples/widgets/doc/easing.qdoc (renamed from doc/src/examples/easing.qdoc)0
-rw-r--r--examples/widgets/doc/editabletreemodel.qdoc (renamed from doc/src/examples/editabletreemodel.qdoc)50
-rw-r--r--examples/widgets/doc/elasticnodes.qdoc (renamed from doc/src/examples/elasticnodes.qdoc)62
-rw-r--r--examples/widgets/doc/elidedlabel.qdoc (renamed from doc/src/examples/elidedlabel.qdoc)32
-rw-r--r--examples/widgets/doc/embeddeddialogs.qdoc (renamed from doc/src/examples/embeddeddialogs.qdoc)0
-rw-r--r--examples/widgets/doc/eventtransitions.qdoc (renamed from doc/src/examples/eventtransitions.qdoc)14
-rw-r--r--examples/widgets/doc/extension.qdoc (renamed from doc/src/examples/extension.qdoc)12
-rw-r--r--examples/widgets/doc/factorial.qdoc (renamed from doc/src/examples/factorial.qdoc)14
-rw-r--r--examples/widgets/doc/fademessage.qdoc (renamed from doc/src/examples/fademessage.qdoc)0
-rw-r--r--examples/widgets/doc/fetchmore.qdoc (renamed from doc/src/examples/fetchmore.qdoc)10
-rw-r--r--examples/widgets/doc/findfiles.qdoc (renamed from doc/src/examples/findfiles.qdoc)28
-rw-r--r--examples/widgets/doc/flowlayout.qdoc (renamed from doc/src/examples/flowlayout.qdoc)26
-rw-r--r--examples/widgets/doc/fontsampler.qdoc (renamed from doc/src/examples/fontsampler.qdoc)0
-rw-r--r--examples/widgets/doc/frozencolumn.qdoc (renamed from doc/src/examples/frozencolumn.qdoc)16
-rw-r--r--examples/widgets/doc/gradients.qdoc (renamed from doc/src/examples/gradients.qdoc)0
-rw-r--r--examples/widgets/doc/groupbox.qdoc (renamed from doc/src/examples/groupbox.qdoc)28
-rw-r--r--examples/widgets/doc/icons.qdoc (renamed from doc/src/examples/icons.qdoc)104
-rw-r--r--examples/widgets/doc/imagecomposition.qdoc (renamed from doc/src/examples/imagecomposition.qdoc)34
-rw-r--r--examples/widgets/doc/imageviewer.qdoc (renamed from doc/src/examples/imageviewer.qdoc)56
-rw-r--r--examples/widgets/doc/interview.qdoc (renamed from doc/src/examples/interview.qdoc)0
-rw-r--r--examples/widgets/doc/licensewizard.qdoc (renamed from doc/src/examples/licensewizard.qdoc)44
-rw-r--r--examples/widgets/doc/lighting.qdoc (renamed from doc/src/examples/lighting.qdoc)0
-rw-r--r--examples/widgets/doc/lineedits.qdoc (renamed from doc/src/examples/lineedits.qdoc)30
-rw-r--r--examples/widgets/doc/mainwindow.qdoc (renamed from doc/src/examples/mainwindow.qdoc)0
-rw-r--r--examples/widgets/doc/mdi.qdoc (renamed from doc/src/examples/mdi.qdoc)0
-rw-r--r--examples/widgets/doc/menus.qdoc (renamed from doc/src/examples/menus.qdoc)24
-rw-r--r--examples/widgets/doc/moveblocks.qdoc (renamed from doc/src/examples/moveblocks.qdoc)32
-rw-r--r--examples/widgets/doc/movie.qdoc (renamed from doc/src/examples/movie.qdoc)0
-rw-r--r--examples/widgets/doc/orderform.qdoc (renamed from doc/src/examples/orderform.qdoc)58
-rw-r--r--examples/widgets/doc/padnavigator.qdoc (renamed from doc/src/examples/padnavigator.qdoc)84
-rw-r--r--examples/widgets/doc/painterpaths.qdoc (renamed from doc/src/examples/painterpaths.qdoc)74
-rw-r--r--examples/widgets/doc/pathstroke.qdoc (renamed from doc/src/examples/pathstroke.qdoc)0
-rw-r--r--examples/widgets/doc/pingpong.qdoc (renamed from doc/src/examples/pingpong.qdoc)14
-rw-r--r--examples/widgets/doc/pixelator.qdoc (renamed from doc/src/examples/pixelator.qdoc)54
-rw-r--r--examples/widgets/doc/recentfiles.qdoc (renamed from doc/src/examples/recentfiles.qdoc)0
-rw-r--r--examples/widgets/doc/rogue.qdoc (renamed from doc/src/examples/rogue.qdoc)22
-rw-r--r--examples/widgets/doc/screenshot.qdoc (renamed from doc/src/examples/screenshot.qdoc)24
-rw-r--r--examples/widgets/doc/scribble.qdoc (renamed from doc/src/examples/scribble.qdoc)92
-rw-r--r--examples/widgets/doc/sdi.qdoc (renamed from doc/src/examples/sdi.qdoc)0
-rw-r--r--examples/widgets/doc/shapedclock.qdoc (renamed from doc/src/examples/shapedclock.qdoc)14
-rw-r--r--examples/widgets/doc/simpledommodel.qdoc (renamed from doc/src/examples/simpledommodel.qdoc)40
-rw-r--r--examples/widgets/doc/simpletreemodel.qdoc (renamed from doc/src/examples/simpletreemodel.qdoc)40
-rw-r--r--examples/widgets/doc/simplewidgetmapper.qdoc (renamed from doc/src/examples/simplewidgetmapper.qdoc)12
-rw-r--r--examples/widgets/doc/sipdialog.qdoc (renamed from doc/src/examples/sipdialog.qdoc)0
-rw-r--r--examples/widgets/doc/sliders.qdoc (renamed from doc/src/examples/sliders.qdoc)52
-rw-r--r--examples/widgets/doc/spinboxdelegate.qdoc (renamed from doc/src/examples/spinboxdelegate.qdoc)20
-rw-r--r--examples/widgets/doc/spinboxes.qdoc (renamed from doc/src/examples/spinboxes.qdoc)40
-rw-r--r--examples/widgets/doc/spreadsheet.qdoc (renamed from doc/src/examples/spreadsheet.qdoc)0
-rw-r--r--examples/widgets/doc/standarddialogs.qdoc (renamed from doc/src/examples/standarddialogs.qdoc)0
-rw-r--r--examples/widgets/doc/stardelegate.qdoc (renamed from doc/src/examples/stardelegate.qdoc)48
-rw-r--r--examples/widgets/doc/states.qdoc (renamed from doc/src/examples/states.qdoc)0
-rw-r--r--examples/widgets/doc/stickman.qdoc (renamed from doc/src/examples/stickman.qdoc)12
-rw-r--r--examples/widgets/doc/styles.qdoc (renamed from doc/src/examples/styles.qdoc)104
-rw-r--r--examples/widgets/doc/stylesheet.qdoc (renamed from doc/src/examples/stylesheet.qdoc)0
-rw-r--r--examples/widgets/doc/sub-attaq.qdoc (renamed from doc/src/examples/sub-attaq.qdoc)0
-rw-r--r--examples/widgets/doc/syntaxhighlighter.qdoc (renamed from doc/src/examples/syntaxhighlighter.qdoc)32
-rw-r--r--examples/widgets/doc/tabdialog.qdoc (renamed from doc/src/examples/tabdialog.qdoc)24
-rw-r--r--examples/widgets/doc/tablet.qdoc (renamed from doc/src/examples/tablet.qdoc)58
-rw-r--r--examples/widgets/doc/tetrix.qdoc (renamed from doc/src/examples/tetrix.qdoc)116
-rw-r--r--examples/widgets/doc/textedit.qdoc (renamed from doc/src/examples/textedit.qdoc)0
-rw-r--r--examples/widgets/doc/tooltips.qdoc (renamed from doc/src/examples/tooltips.qdoc)78
-rw-r--r--examples/widgets/doc/trafficlight.qdoc (renamed from doc/src/examples/trafficlight.qdoc)10
-rw-r--r--examples/widgets/doc/transformations.qdoc (renamed from doc/src/examples/transformations.qdoc)56
-rw-r--r--examples/widgets/doc/trivialwizard.qdoc (renamed from doc/src/examples/trivialwizard.qdoc)8
-rw-r--r--examples/widgets/doc/twowaybutton.qdoc (renamed from doc/src/examples/twowaybutton.qdoc)12
-rw-r--r--examples/widgets/doc/wiggly.qdoc (renamed from doc/src/examples/wiggly.qdoc)20
-rw-r--r--examples/widgets/doc/windowflags.qdoc (renamed from doc/src/examples/windowflags.qdoc)26
-rw-r--r--examples/widgets/draganddrop/README (renamed from examples/draganddrop/README)0
-rw-r--r--examples/widgets/draganddrop/delayedencoding/delayedencoding.desktop (renamed from examples/draganddrop/delayedencoding/delayedencoding.desktop)0
-rw-r--r--examples/widgets/draganddrop/draganddrop.pro (renamed from examples/draganddrop/draganddrop.pro)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/draggableicons.desktop (renamed from examples/draganddrop/draggableicons/draggableicons.desktop)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/draggableicons.pro (renamed from examples/draganddrop/draggableicons/draggableicons.pro)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/draggableicons.qrc (renamed from examples/draganddrop/draggableicons/draggableicons.qrc)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/dragwidget.cpp (renamed from examples/draganddrop/draggableicons/dragwidget.cpp)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/dragwidget.h (renamed from examples/draganddrop/draggableicons/dragwidget.h)0
-rw-r--r--examples/widgets/draganddrop/draggableicons/images/boat.png (renamed from examples/draganddrop/draggableicons/images/boat.png)bin2772 -> 2772 bytes
-rw-r--r--examples/widgets/draganddrop/draggableicons/images/car.png (renamed from examples/draganddrop/draggableicons/images/car.png)bin2963 -> 2963 bytes
-rw-r--r--examples/widgets/draganddrop/draggableicons/images/house.png (renamed from examples/draganddrop/draggableicons/images/house.png)bin3292 -> 3292 bytes
-rw-r--r--examples/widgets/draganddrop/draggableicons/main.cpp (renamed from examples/draganddrop/draggableicons/main.cpp)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.desktop (renamed from examples/draganddrop/draggabletext/draggabletext.desktop)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.pro (renamed from examples/draganddrop/draggabletext/draggabletext.pro)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.qrc (renamed from examples/draganddrop/draggabletext/draggabletext.qrc)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/draglabel.cpp (renamed from examples/draganddrop/draggabletext/draglabel.cpp)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/draglabel.h (renamed from examples/draganddrop/draggabletext/draglabel.h)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/dragwidget.cpp (renamed from examples/draganddrop/draggabletext/dragwidget.cpp)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/dragwidget.h (renamed from examples/draganddrop/draggabletext/dragwidget.h)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/main.cpp (renamed from examples/draganddrop/draggabletext/main.cpp)0
-rw-r--r--examples/widgets/draganddrop/draggabletext/words.txt (renamed from examples/draganddrop/draggabletext/words.txt)0
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.cpp (renamed from examples/draganddrop/dropsite/droparea.cpp)0
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.h (renamed from examples/draganddrop/dropsite/droparea.h)0
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsite.desktop (renamed from examples/draganddrop/dropsite/dropsite.desktop)0
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsite.pro (renamed from examples/draganddrop/dropsite/dropsite.pro)0
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsitewindow.cpp (renamed from examples/draganddrop/dropsite/dropsitewindow.cpp)0
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsitewindow.h (renamed from examples/draganddrop/dropsite/dropsitewindow.h)0
-rw-r--r--examples/widgets/draganddrop/dropsite/main.cpp (renamed from examples/draganddrop/dropsite/main.cpp)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/draglabel.cpp (renamed from examples/draganddrop/fridgemagnets/draglabel.cpp)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/draglabel.h (renamed from examples/draganddrop/fridgemagnets/draglabel.h)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp (renamed from examples/draganddrop/fridgemagnets/dragwidget.cpp)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/dragwidget.h (renamed from examples/draganddrop/fridgemagnets/dragwidget.h)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/fridgemagnets.desktop (renamed from examples/draganddrop/fridgemagnets/fridgemagnets.desktop)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro (renamed from examples/draganddrop/fridgemagnets/fridgemagnets.pro)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/fridgemagnets.qrc (renamed from examples/draganddrop/fridgemagnets/fridgemagnets.qrc)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/main.cpp (renamed from examples/draganddrop/fridgemagnets/main.cpp)0
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/words.txt (renamed from examples/draganddrop/fridgemagnets/words.txt)0
-rw-r--r--examples/widgets/draganddrop/puzzle/example.jpg (renamed from examples/draganddrop/puzzle/example.jpg)bin42654 -> 42654 bytes
-rw-r--r--examples/widgets/draganddrop/puzzle/main.cpp (renamed from examples/draganddrop/puzzle/main.cpp)0
-rw-r--r--examples/widgets/draganddrop/puzzle/mainwindow.cpp (renamed from examples/draganddrop/puzzle/mainwindow.cpp)0
-rw-r--r--examples/widgets/draganddrop/puzzle/mainwindow.h (renamed from examples/draganddrop/puzzle/mainwindow.h)0
-rw-r--r--examples/widgets/draganddrop/puzzle/pieceslist.cpp (renamed from examples/draganddrop/puzzle/pieceslist.cpp)0
-rw-r--r--examples/widgets/draganddrop/puzzle/pieceslist.h (renamed from examples/draganddrop/puzzle/pieceslist.h)0
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzle.desktop (renamed from examples/draganddrop/puzzle/puzzle.desktop)0
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzle.pro (renamed from examples/draganddrop/puzzle/puzzle.pro)0
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzle.qrc (renamed from examples/draganddrop/puzzle/puzzle.qrc)0
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzlewidget.cpp (renamed from examples/draganddrop/puzzle/puzzlewidget.cpp)0
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzlewidget.h (renamed from examples/draganddrop/puzzle/puzzlewidget.h)0
-rw-r--r--examples/widgets/effects/blurpicker/blureffect.cpp (renamed from examples/effects/blurpicker/blureffect.cpp)0
-rw-r--r--examples/widgets/effects/blurpicker/blureffect.h (renamed from examples/effects/blurpicker/blureffect.h)0
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.cpp (renamed from examples/effects/blurpicker/blurpicker.cpp)0
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.desktop (renamed from examples/effects/blurpicker/blurpicker.desktop)0
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.h (renamed from examples/effects/blurpicker/blurpicker.h)0
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.pro (renamed from examples/effects/blurpicker/blurpicker.pro)0
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.qrc (renamed from examples/effects/blurpicker/blurpicker.qrc)0
-rw-r--r--examples/widgets/effects/blurpicker/images/README.txt (renamed from examples/effects/blurpicker/images/README.txt)0
-rw-r--r--examples/widgets/effects/blurpicker/images/accessories-calculator.png (renamed from examples/effects/blurpicker/images/accessories-calculator.png)bin3760 -> 3760 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/accessories-text-editor.png (renamed from examples/effects/blurpicker/images/accessories-text-editor.png)bin4746 -> 4746 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/background.jpg (renamed from examples/effects/blurpicker/images/background.jpg)bin16259 -> 16259 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/help-browser.png (renamed from examples/effects/blurpicker/images/help-browser.png)bin5392 -> 5392 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-group-chat.png (renamed from examples/effects/blurpicker/images/internet-group-chat.png)bin2809 -> 2809 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-mail.png (renamed from examples/effects/blurpicker/images/internet-mail.png)bin3899 -> 3899 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-web-browser.png (renamed from examples/effects/blurpicker/images/internet-web-browser.png)bin6376 -> 6376 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/office-calendar.png (renamed from examples/effects/blurpicker/images/office-calendar.png)bin4010 -> 4010 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/system-users.png (renamed from examples/effects/blurpicker/images/system-users.png)bin5353 -> 5353 bytes
-rw-r--r--examples/widgets/effects/blurpicker/main.cpp (renamed from examples/effects/blurpicker/main.cpp)0
-rw-r--r--examples/widgets/effects/effects.pro (renamed from examples/effects/effects.pro)0
-rw-r--r--examples/widgets/effects/fademessage/README.txt (renamed from examples/effects/fademessage/README.txt)0
-rw-r--r--examples/widgets/effects/fademessage/background.jpg (renamed from examples/effects/fademessage/background.jpg)bin159108 -> 159108 bytes
-rw-r--r--examples/widgets/effects/fademessage/fademessage.cpp (renamed from examples/effects/fademessage/fademessage.cpp)0
-rw-r--r--examples/widgets/effects/fademessage/fademessage.desktop (renamed from examples/effects/fademessage/fademessage.desktop)0
-rw-r--r--examples/widgets/effects/fademessage/fademessage.h (renamed from examples/effects/fademessage/fademessage.h)0
-rw-r--r--examples/widgets/effects/fademessage/fademessage.pro (renamed from examples/effects/fademessage/fademessage.pro)0
-rw-r--r--examples/widgets/effects/fademessage/fademessage.qrc (renamed from examples/effects/fademessage/fademessage.qrc)0
-rw-r--r--examples/widgets/effects/fademessage/main.cpp (renamed from examples/effects/fademessage/main.cpp)0
-rw-r--r--examples/widgets/effects/lighting/lighting.cpp (renamed from examples/effects/lighting/lighting.cpp)0
-rw-r--r--examples/widgets/effects/lighting/lighting.desktop (renamed from examples/effects/lighting/lighting.desktop)0
-rw-r--r--examples/widgets/effects/lighting/lighting.h (renamed from examples/effects/lighting/lighting.h)0
-rw-r--r--examples/widgets/effects/lighting/lighting.pro (renamed from examples/effects/lighting/lighting.pro)0
-rw-r--r--examples/widgets/effects/lighting/main.cpp (renamed from examples/effects/lighting/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/README (renamed from examples/graphicsview/README)0
-rw-r--r--examples/widgets/graphicsview/anchorlayout/anchorlayout.desktop (renamed from examples/graphicsview/anchorlayout/anchorlayout.desktop)0
-rw-r--r--examples/widgets/graphicsview/anchorlayout/anchorlayout.pro (renamed from examples/graphicsview/anchorlayout/anchorlayout.pro)0
-rw-r--r--examples/widgets/graphicsview/anchorlayout/main.cpp (renamed from examples/graphicsview/anchorlayout/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop (renamed from examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro (renamed from examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc (renamed from examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/images/block.png (renamed from examples/graphicsview/basicgraphicslayouts/images/block.png)bin2146 -> 2146 bytes
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.cpp (renamed from examples/graphicsview/basicgraphicslayouts/layoutitem.cpp)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.h (renamed from examples/graphicsview/basicgraphicslayouts/layoutitem.h)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/main.cpp (renamed from examples/graphicsview/basicgraphicslayouts/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/window.cpp (renamed from examples/graphicsview/basicgraphicslayouts/window.cpp)0
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/window.h (renamed from examples/graphicsview/basicgraphicslayouts/window.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/3rdparty/fbm.c (renamed from examples/graphicsview/boxes/3rdparty/fbm.c)0
-rw-r--r--examples/widgets/graphicsview/boxes/3rdparty/fbm.h (renamed from examples/graphicsview/boxes/3rdparty/fbm.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/basic.fsh (renamed from examples/graphicsview/boxes/basic.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/basic.vsh (renamed from examples/graphicsview/boxes/basic.vsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/boxes.pro (renamed from examples/graphicsview/boxes/boxes.pro)0
-rw-r--r--examples/widgets/graphicsview/boxes/boxes.qrc (renamed from examples/graphicsview/boxes/boxes.qrc)0
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_negx.jpg (renamed from examples/graphicsview/boxes/cubemap_negx.jpg)bin41060 -> 41060 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_negy.jpg (renamed from examples/graphicsview/boxes/cubemap_negy.jpg)bin15520 -> 15520 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_negz.jpg (renamed from examples/graphicsview/boxes/cubemap_negz.jpg)bin68911 -> 68911 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_posx.jpg (renamed from examples/graphicsview/boxes/cubemap_posx.jpg)bin74915 -> 74915 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_posy.jpg (renamed from examples/graphicsview/boxes/cubemap_posy.jpg)bin24193 -> 24193 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/cubemap_posz.jpg (renamed from examples/graphicsview/boxes/cubemap_posz.jpg)bin57881 -> 57881 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/dotted.fsh (renamed from examples/graphicsview/boxes/dotted.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/fresnel.fsh (renamed from examples/graphicsview/boxes/fresnel.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/glass.fsh (renamed from examples/graphicsview/boxes/glass.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/glbuffers.cpp (renamed from examples/graphicsview/boxes/glbuffers.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/glbuffers.h (renamed from examples/graphicsview/boxes/glbuffers.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/glextensions.cpp (renamed from examples/graphicsview/boxes/glextensions.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/glextensions.h (renamed from examples/graphicsview/boxes/glextensions.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/gltrianglemesh.h (renamed from examples/graphicsview/boxes/gltrianglemesh.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/granite.fsh (renamed from examples/graphicsview/boxes/granite.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/main.cpp (renamed from examples/graphicsview/boxes/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/marble.fsh (renamed from examples/graphicsview/boxes/marble.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/parameters.par (renamed from examples/graphicsview/boxes/parameters.par)0
-rw-r--r--examples/widgets/graphicsview/boxes/qt-logo.jpg (renamed from examples/graphicsview/boxes/qt-logo.jpg)bin40886 -> 40886 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/qt-logo.png (renamed from examples/graphicsview/boxes/qt-logo.png)bin13923 -> 13923 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/qtbox.cpp (renamed from examples/graphicsview/boxes/qtbox.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/qtbox.h (renamed from examples/graphicsview/boxes/qtbox.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/reflection.fsh (renamed from examples/graphicsview/boxes/reflection.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/refraction.fsh (renamed from examples/graphicsview/boxes/refraction.fsh)0
-rw-r--r--examples/widgets/graphicsview/boxes/roundedbox.cpp (renamed from examples/graphicsview/boxes/roundedbox.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/roundedbox.h (renamed from examples/graphicsview/boxes/roundedbox.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/scene.cpp (renamed from examples/graphicsview/boxes/scene.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/scene.h (renamed from examples/graphicsview/boxes/scene.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/smiley.png (renamed from examples/graphicsview/boxes/smiley.png)bin14508 -> 14508 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/square.jpg (renamed from examples/graphicsview/boxes/square.jpg)bin14542 -> 14542 bytes
-rw-r--r--examples/widgets/graphicsview/boxes/trackball.cpp (renamed from examples/graphicsview/boxes/trackball.cpp)0
-rw-r--r--examples/widgets/graphicsview/boxes/trackball.h (renamed from examples/graphicsview/boxes/trackball.h)0
-rw-r--r--examples/widgets/graphicsview/boxes/wood.fsh (renamed from examples/graphicsview/boxes/wood.fsh)0
-rw-r--r--examples/widgets/graphicsview/chip/chip.cpp (renamed from examples/graphicsview/chip/chip.cpp)0
-rw-r--r--examples/widgets/graphicsview/chip/chip.h (renamed from examples/graphicsview/chip/chip.h)0
-rw-r--r--examples/widgets/graphicsview/chip/chip.pro (renamed from examples/graphicsview/chip/chip.pro)0
-rw-r--r--examples/widgets/graphicsview/chip/fileprint.png (renamed from examples/graphicsview/chip/fileprint.png)bin1456 -> 1456 bytes
-rw-r--r--examples/widgets/graphicsview/chip/images.qrc (renamed from examples/graphicsview/chip/images.qrc)0
-rw-r--r--examples/widgets/graphicsview/chip/main.cpp (renamed from examples/graphicsview/chip/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/chip/mainwindow.cpp (renamed from examples/graphicsview/chip/mainwindow.cpp)0
-rw-r--r--examples/widgets/graphicsview/chip/mainwindow.h (renamed from examples/graphicsview/chip/mainwindow.h)0
-rw-r--r--examples/widgets/graphicsview/chip/qt4logo.png (renamed from examples/graphicsview/chip/qt4logo.png)bin48333 -> 48333 bytes
-rw-r--r--examples/widgets/graphicsview/chip/rotateleft.png (renamed from examples/graphicsview/chip/rotateleft.png)bin1754 -> 1754 bytes
-rw-r--r--examples/widgets/graphicsview/chip/rotateright.png (renamed from examples/graphicsview/chip/rotateright.png)bin1732 -> 1732 bytes
-rw-r--r--examples/widgets/graphicsview/chip/view.cpp (renamed from examples/graphicsview/chip/view.cpp)0
-rw-r--r--examples/widgets/graphicsview/chip/view.h (renamed from examples/graphicsview/chip/view.h)0
-rw-r--r--examples/widgets/graphicsview/chip/zoomin.png (renamed from examples/graphicsview/chip/zoomin.png)bin1622 -> 1622 bytes
-rw-r--r--examples/widgets/graphicsview/chip/zoomout.png (renamed from examples/graphicsview/chip/zoomout.png)bin1601 -> 1601 bytes
-rw-r--r--examples/widgets/graphicsview/collidingmice/collidingmice.desktop (renamed from examples/graphicsview/collidingmice/collidingmice.desktop)0
-rw-r--r--examples/widgets/graphicsview/collidingmice/collidingmice.pro (renamed from examples/graphicsview/collidingmice/collidingmice.pro)0
-rw-r--r--examples/widgets/graphicsview/collidingmice/images/cheese.jpg (renamed from examples/graphicsview/collidingmice/images/cheese.jpg)bin3029 -> 3029 bytes
-rw-r--r--examples/widgets/graphicsview/collidingmice/main.cpp (renamed from examples/graphicsview/collidingmice/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/collidingmice/mice.qrc (renamed from examples/graphicsview/collidingmice/mice.qrc)0
-rw-r--r--examples/widgets/graphicsview/collidingmice/mouse.cpp (renamed from examples/graphicsview/collidingmice/mouse.cpp)0
-rw-r--r--examples/widgets/graphicsview/collidingmice/mouse.h (renamed from examples/graphicsview/collidingmice/mouse.h)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/arrow.cpp (renamed from examples/graphicsview/diagramscene/arrow.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/arrow.h (renamed from examples/graphicsview/diagramscene/arrow.h)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramitem.cpp (renamed from examples/graphicsview/diagramscene/diagramitem.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramitem.h (renamed from examples/graphicsview/diagramscene/diagramitem.h)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.cpp (renamed from examples/graphicsview/diagramscene/diagramscene.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.desktop (renamed from examples/graphicsview/diagramscene/diagramscene.desktop)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.h (renamed from examples/graphicsview/diagramscene/diagramscene.h)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.pro (renamed from examples/graphicsview/diagramscene/diagramscene.pro)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.qrc (renamed from examples/graphicsview/diagramscene/diagramscene.qrc)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramtextitem.cpp (renamed from examples/graphicsview/diagramscene/diagramtextitem.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramtextitem.h (renamed from examples/graphicsview/diagramscene/diagramtextitem.h)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/background1.png (renamed from examples/graphicsview/diagramscene/images/background1.png)bin112 -> 112 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/background2.png (renamed from examples/graphicsview/diagramscene/images/background2.png)bin114 -> 114 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/background3.png (renamed from examples/graphicsview/diagramscene/images/background3.png)bin116 -> 116 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/background4.png (renamed from examples/graphicsview/diagramscene/images/background4.png)bin96 -> 96 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/bold.png (renamed from examples/graphicsview/diagramscene/images/bold.png)bin274 -> 274 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/bringtofront.png (renamed from examples/graphicsview/diagramscene/images/bringtofront.png)bin293 -> 293 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/delete.png (renamed from examples/graphicsview/diagramscene/images/delete.png)bin831 -> 831 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/floodfill.png (renamed from examples/graphicsview/diagramscene/images/floodfill.png)bin282 -> 282 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/italic.png (renamed from examples/graphicsview/diagramscene/images/italic.png)bin247 -> 247 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/linecolor.png (renamed from examples/graphicsview/diagramscene/images/linecolor.png)bin145 -> 145 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/linepointer.png (renamed from examples/graphicsview/diagramscene/images/linepointer.png)bin141 -> 141 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/pointer.png (renamed from examples/graphicsview/diagramscene/images/pointer.png)bin173 -> 173 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/sendtoback.png (renamed from examples/graphicsview/diagramscene/images/sendtoback.png)bin318 -> 318 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/textpointer.png (renamed from examples/graphicsview/diagramscene/images/textpointer.png)bin753 -> 753 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/images/underline.png (renamed from examples/graphicsview/diagramscene/images/underline.png)bin250 -> 250 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/main.cpp (renamed from examples/graphicsview/diagramscene/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/mainwindow.cpp (renamed from examples/graphicsview/diagramscene/mainwindow.cpp)0
-rw-r--r--examples/widgets/graphicsview/diagramscene/mainwindow.h (renamed from examples/graphicsview/diagramscene/mainwindow.h)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/coloritem.cpp (renamed from examples/graphicsview/dragdroprobot/coloritem.cpp)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/coloritem.h (renamed from examples/graphicsview/dragdroprobot/coloritem.h)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/dragdroprobot.desktop (renamed from examples/graphicsview/dragdroprobot/dragdroprobot.desktop)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro (renamed from examples/graphicsview/dragdroprobot/dragdroprobot.pro)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/images/head.png (renamed from examples/graphicsview/dragdroprobot/images/head.png)bin14972 -> 14972 bytes
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/main.cpp (renamed from examples/graphicsview/dragdroprobot/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/robot.cpp (renamed from examples/graphicsview/dragdroprobot/robot.cpp)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/robot.h (renamed from examples/graphicsview/dragdroprobot/robot.h)0
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/robot.qrc (renamed from examples/graphicsview/dragdroprobot/robot.qrc)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/edge.cpp (renamed from examples/graphicsview/elasticnodes/edge.cpp)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/edge.h (renamed from examples/graphicsview/elasticnodes/edge.h)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/elasticnodes.desktop (renamed from examples/graphicsview/elasticnodes/elasticnodes.desktop)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/elasticnodes.pro (renamed from examples/graphicsview/elasticnodes/elasticnodes.pro)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/graphwidget.cpp (renamed from examples/graphicsview/elasticnodes/graphwidget.cpp)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/graphwidget.h (renamed from examples/graphicsview/elasticnodes/graphwidget.h)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/main.cpp (renamed from examples/graphicsview/elasticnodes/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/node.cpp (renamed from examples/graphicsview/elasticnodes/node.cpp)0
-rw-r--r--examples/widgets/graphicsview/elasticnodes/node.h (renamed from examples/graphicsview/elasticnodes/node.h)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg (renamed from examples/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg)bin30730 -> 30730 bytes
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/customproxy.cpp (renamed from examples/graphicsview/embeddeddialogs/customproxy.cpp)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/customproxy.h (renamed from examples/graphicsview/embeddeddialogs/customproxy.h)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp (renamed from examples/graphicsview/embeddeddialogs/embeddeddialog.cpp)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.h (renamed from examples/graphicsview/embeddeddialogs/embeddeddialog.h)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.ui (renamed from examples/graphicsview/embeddeddialogs/embeddeddialog.ui)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro (renamed from examples/graphicsview/embeddeddialogs/embeddeddialogs.pro)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.qrc (renamed from examples/graphicsview/embeddeddialogs/embeddeddialogs.qrc)0
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/main.cpp (renamed from examples/graphicsview/embeddeddialogs/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.cpp (renamed from examples/graphicsview/flowlayout/flowlayout.cpp)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.desktop (renamed from examples/graphicsview/flowlayout/flowlayout.desktop)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.h (renamed from examples/graphicsview/flowlayout/flowlayout.h)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.pro (renamed from examples/graphicsview/flowlayout/flowlayout.pro)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/main.cpp (renamed from examples/graphicsview/flowlayout/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/window.cpp (renamed from examples/graphicsview/flowlayout/window.cpp)0
-rw-r--r--examples/widgets/graphicsview/flowlayout/window.h (renamed from examples/graphicsview/flowlayout/window.h)0
-rw-r--r--examples/widgets/graphicsview/graphicsview.pro (renamed from examples/graphicsview/graphicsview.pro)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/flippablepad.cpp (renamed from examples/graphicsview/padnavigator/flippablepad.cpp)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/flippablepad.h (renamed from examples/graphicsview/padnavigator/flippablepad.h)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/form.ui (renamed from examples/graphicsview/padnavigator/form.ui)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/artsfftscope.png (renamed from examples/graphicsview/padnavigator/images/artsfftscope.png)bin1291 -> 1291 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/blue_angle_swirl.jpg (renamed from examples/graphicsview/padnavigator/images/blue_angle_swirl.jpg)bin11826 -> 11826 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/kontact_contacts.png (renamed from examples/graphicsview/padnavigator/images/kontact_contacts.png)bin4382 -> 4382 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/kontact_journal.png (renamed from examples/graphicsview/padnavigator/images/kontact_journal.png)bin3261 -> 3261 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/kontact_mail.png (renamed from examples/graphicsview/padnavigator/images/kontact_mail.png)bin3202 -> 3202 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/kontact_notes.png (renamed from examples/graphicsview/padnavigator/images/kontact_notes.png)bin3893 -> 3893 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/kopeteavailable.png (renamed from examples/graphicsview/padnavigator/images/kopeteavailable.png)bin2380 -> 2380 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/metacontact_online.png (renamed from examples/graphicsview/padnavigator/images/metacontact_online.png)bin2545 -> 2545 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/images/minitools.png (renamed from examples/graphicsview/padnavigator/images/minitools.png)bin2087 -> 2087 bytes
-rw-r--r--examples/widgets/graphicsview/padnavigator/main.cpp (renamed from examples/graphicsview/padnavigator/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/padnavigator.cpp (renamed from examples/graphicsview/padnavigator/padnavigator.cpp)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/padnavigator.desktop (renamed from examples/graphicsview/padnavigator/padnavigator.desktop)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/padnavigator.h (renamed from examples/graphicsview/padnavigator/padnavigator.h)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/padnavigator.pro (renamed from examples/graphicsview/padnavigator/padnavigator.pro)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/padnavigator.qrc (renamed from examples/graphicsview/padnavigator/padnavigator.qrc)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/roundrectitem.cpp (renamed from examples/graphicsview/padnavigator/roundrectitem.cpp)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/roundrectitem.h (renamed from examples/graphicsview/padnavigator/roundrectitem.h)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/splashitem.cpp (renamed from examples/graphicsview/padnavigator/splashitem.cpp)0
-rw-r--r--examples/widgets/graphicsview/padnavigator/splashitem.h (renamed from examples/graphicsview/padnavigator/splashitem.h)0
-rw-r--r--examples/widgets/graphicsview/portedasteroids/portedasteroids.desktop (renamed from examples/graphicsview/portedasteroids/portedasteroids.desktop)0
-rw-r--r--examples/widgets/graphicsview/portedcanvas/portedcanvas.desktop (renamed from examples/graphicsview/portedcanvas/portedcanvas.desktop)0
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/main.cpp (renamed from examples/graphicsview/simpleanchorlayout/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop (renamed from examples/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop)0
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro (renamed from examples/graphicsview/simpleanchorlayout/simpleanchorlayout.pro)0
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/5days.jpg (renamed from examples/graphicsview/weatheranchorlayout/images/5days.jpg)bin5748 -> 5748 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/details.jpg (renamed from examples/graphicsview/weatheranchorlayout/images/details.jpg)bin5323 -> 5323 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/place.jpg (renamed from examples/graphicsview/weatheranchorlayout/images/place.jpg)bin62438 -> 62438 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/tabbar.jpg (renamed from examples/graphicsview/weatheranchorlayout/images/tabbar.jpg)bin849 -> 849 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/title.jpg (renamed from examples/graphicsview/weatheranchorlayout/images/title.jpg)bin3472 -> 3472 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/weather-few-clouds.png (renamed from examples/graphicsview/weatheranchorlayout/images/weather-few-clouds.png)bin18976 -> 18976 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/main.cpp (renamed from examples/graphicsview/weatheranchorlayout/main.cpp)0
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop (renamed from examples/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop)0
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.pro (renamed from examples/graphicsview/weatheranchorlayout/weatheranchorlayout.pro)0
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc (renamed from examples/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc)0
-rw-r--r--examples/widgets/itemviews/README (renamed from examples/itemviews/README)0
-rw-r--r--examples/widgets/itemviews/addressbook/adddialog.cpp (renamed from examples/itemviews/addressbook/adddialog.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/adddialog.h (renamed from examples/itemviews/addressbook/adddialog.h)0
-rw-r--r--examples/widgets/itemviews/addressbook/addressbook.desktop (renamed from examples/itemviews/addressbook/addressbook.desktop)0
-rw-r--r--examples/widgets/itemviews/addressbook/addressbook.pro (renamed from examples/itemviews/addressbook/addressbook.pro)0
-rw-r--r--examples/widgets/itemviews/addressbook/addresswidget.cpp (renamed from examples/itemviews/addressbook/addresswidget.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/addresswidget.h (renamed from examples/itemviews/addressbook/addresswidget.h)0
-rw-r--r--examples/widgets/itemviews/addressbook/main.cpp (renamed from examples/itemviews/addressbook/main.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/mainwindow.cpp (renamed from examples/itemviews/addressbook/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/mainwindow.h (renamed from examples/itemviews/addressbook/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/addressbook/newaddresstab.cpp (renamed from examples/itemviews/addressbook/newaddresstab.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/newaddresstab.h (renamed from examples/itemviews/addressbook/newaddresstab.h)0
-rw-r--r--examples/widgets/itemviews/addressbook/tablemodel.cpp (renamed from examples/itemviews/addressbook/tablemodel.cpp)0
-rw-r--r--examples/widgets/itemviews/addressbook/tablemodel.h (renamed from examples/itemviews/addressbook/tablemodel.h)0
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop (renamed from examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop)0
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro (renamed from examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro)0
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/main.cpp (renamed from examples/itemviews/basicsortfiltermodel/main.cpp)0
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/window.cpp (renamed from examples/itemviews/basicsortfiltermodel/window.cpp)0
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/window.h (renamed from examples/itemviews/basicsortfiltermodel/window.h)0
-rw-r--r--examples/widgets/itemviews/chart/chart.desktop (renamed from examples/itemviews/chart/chart.desktop)0
-rw-r--r--examples/widgets/itemviews/chart/chart.pro (renamed from examples/itemviews/chart/chart.pro)0
-rw-r--r--examples/widgets/itemviews/chart/chart.qrc (renamed from examples/itemviews/chart/chart.qrc)0
-rw-r--r--examples/widgets/itemviews/chart/main.cpp (renamed from examples/itemviews/chart/main.cpp)0
-rw-r--r--examples/widgets/itemviews/chart/mainwindow.cpp (renamed from examples/itemviews/chart/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/chart/mainwindow.h (renamed from examples/itemviews/chart/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/chart/mydata.cht (renamed from examples/itemviews/chart/mydata.cht)0
-rw-r--r--examples/widgets/itemviews/chart/pieview.cpp (renamed from examples/itemviews/chart/pieview.cpp)0
-rw-r--r--examples/widgets/itemviews/chart/pieview.h (renamed from examples/itemviews/chart/pieview.h)0
-rw-r--r--examples/widgets/itemviews/chart/qtdata.cht (renamed from examples/itemviews/chart/qtdata.cht)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.desktop (renamed from examples/itemviews/coloreditorfactory/coloreditorfactory.desktop)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro (renamed from examples/itemviews/coloreditorfactory/coloreditorfactory.pro)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/colorlisteditor.cpp (renamed from examples/itemviews/coloreditorfactory/colorlisteditor.cpp)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/colorlisteditor.h (renamed from examples/itemviews/coloreditorfactory/colorlisteditor.h)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/main.cpp (renamed from examples/itemviews/coloreditorfactory/main.cpp)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/window.cpp (renamed from examples/itemviews/coloreditorfactory/window.cpp)0
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/window.h (renamed from examples/itemviews/coloreditorfactory/window.h)0
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.desktop (renamed from examples/itemviews/combowidgetmapper/combowidgetmapper.desktop)0
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro (renamed from examples/itemviews/combowidgetmapper/combowidgetmapper.pro)0
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/main.cpp (renamed from examples/itemviews/combowidgetmapper/main.cpp)0
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/window.cpp (renamed from examples/itemviews/combowidgetmapper/window.cpp)0
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/window.h (renamed from examples/itemviews/combowidgetmapper/window.h)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.desktop (renamed from examples/itemviews/customsortfiltermodel/customsortfiltermodel.desktop)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro (renamed from examples/itemviews/customsortfiltermodel/customsortfiltermodel.pro)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/main.cpp (renamed from examples/itemviews/customsortfiltermodel/main.cpp)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp (renamed from examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h (renamed from examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.h)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.cpp (renamed from examples/itemviews/customsortfiltermodel/window.cpp)0
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.h (renamed from examples/itemviews/customsortfiltermodel/window.h)0
-rw-r--r--examples/widgets/itemviews/dirview/dirview.desktop (renamed from examples/itemviews/dirview/dirview.desktop)0
-rw-r--r--examples/widgets/itemviews/dirview/dirview.pro (renamed from examples/itemviews/dirview/dirview.pro)0
-rw-r--r--examples/widgets/itemviews/dirview/main.cpp (renamed from examples/itemviews/dirview/main.cpp)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/default.txt (renamed from examples/itemviews/editabletreemodel/default.txt)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/editabletreemodel.desktop (renamed from examples/itemviews/editabletreemodel/editabletreemodel.desktop)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro (renamed from examples/itemviews/editabletreemodel/editabletreemodel.pro)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/editabletreemodel.qrc (renamed from examples/itemviews/editabletreemodel/editabletreemodel.qrc)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/main.cpp (renamed from examples/itemviews/editabletreemodel/main.cpp)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/mainwindow.cpp (renamed from examples/itemviews/editabletreemodel/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/mainwindow.h (renamed from examples/itemviews/editabletreemodel/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/mainwindow.ui (renamed from examples/itemviews/editabletreemodel/mainwindow.ui)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treeitem.cpp (renamed from examples/itemviews/editabletreemodel/treeitem.cpp)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treeitem.h (renamed from examples/itemviews/editabletreemodel/treeitem.h)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treemodel.cpp (renamed from examples/itemviews/editabletreemodel/treemodel.cpp)0
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treemodel.h (renamed from examples/itemviews/editabletreemodel/treemodel.h)0
-rw-r--r--examples/widgets/itemviews/fetchmore/fetchmore.desktop (renamed from examples/itemviews/fetchmore/fetchmore.desktop)0
-rw-r--r--examples/widgets/itemviews/fetchmore/fetchmore.pro (renamed from examples/itemviews/fetchmore/fetchmore.pro)0
-rw-r--r--examples/widgets/itemviews/fetchmore/filelistmodel.cpp (renamed from examples/itemviews/fetchmore/filelistmodel.cpp)0
-rw-r--r--examples/widgets/itemviews/fetchmore/filelistmodel.h (renamed from examples/itemviews/fetchmore/filelistmodel.h)0
-rw-r--r--examples/widgets/itemviews/fetchmore/main.cpp (renamed from examples/itemviews/fetchmore/main.cpp)0
-rw-r--r--examples/widgets/itemviews/fetchmore/window.cpp (renamed from examples/itemviews/fetchmore/window.cpp)0
-rw-r--r--examples/widgets/itemviews/fetchmore/window.h (renamed from examples/itemviews/fetchmore/window.h)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/freezetablewidget.cpp (renamed from examples/itemviews/frozencolumn/freezetablewidget.cpp)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/freezetablewidget.h (renamed from examples/itemviews/frozencolumn/freezetablewidget.h)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/frozencolumn.desktop (renamed from examples/itemviews/frozencolumn/frozencolumn.desktop)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/frozencolumn.pro (renamed from examples/itemviews/frozencolumn/frozencolumn.pro)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/grades.qrc (renamed from examples/itemviews/frozencolumn/grades.qrc)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/grades.txt (renamed from examples/itemviews/frozencolumn/grades.txt)0
-rw-r--r--examples/widgets/itemviews/frozencolumn/main.cpp (renamed from examples/itemviews/frozencolumn/main.cpp)0
-rw-r--r--examples/widgets/itemviews/interview/README (renamed from examples/itemviews/interview/README)0
-rw-r--r--examples/widgets/itemviews/interview/images/folder.png (renamed from examples/itemviews/interview/images/folder.png)bin3910 -> 3910 bytes
-rw-r--r--examples/widgets/itemviews/interview/images/interview.png (renamed from examples/itemviews/interview/images/interview.png)bin174 -> 174 bytes
-rw-r--r--examples/widgets/itemviews/interview/images/services.png (renamed from examples/itemviews/interview/images/services.png)bin3749 -> 3749 bytes
-rw-r--r--examples/widgets/itemviews/interview/interview.pro (renamed from examples/itemviews/interview/interview.pro)0
-rw-r--r--examples/widgets/itemviews/interview/interview.qrc (renamed from examples/itemviews/interview/interview.qrc)0
-rw-r--r--examples/widgets/itemviews/interview/main.cpp (renamed from examples/itemviews/interview/main.cpp)0
-rw-r--r--examples/widgets/itemviews/interview/model.cpp (renamed from examples/itemviews/interview/model.cpp)0
-rw-r--r--examples/widgets/itemviews/interview/model.h (renamed from examples/itemviews/interview/model.h)0
-rw-r--r--examples/widgets/itemviews/itemviews.pro (renamed from examples/itemviews/itemviews.pro)0
-rw-r--r--examples/widgets/itemviews/pixelator/imagemodel.cpp (renamed from examples/itemviews/pixelator/imagemodel.cpp)0
-rw-r--r--examples/widgets/itemviews/pixelator/imagemodel.h (renamed from examples/itemviews/pixelator/imagemodel.h)0
-rw-r--r--examples/widgets/itemviews/pixelator/images.qrc (renamed from examples/itemviews/pixelator/images.qrc)0
-rw-r--r--examples/widgets/itemviews/pixelator/images/qt.png (renamed from examples/itemviews/pixelator/images/qt.png)bin656 -> 656 bytes
-rw-r--r--examples/widgets/itemviews/pixelator/main.cpp (renamed from examples/itemviews/pixelator/main.cpp)0
-rw-r--r--examples/widgets/itemviews/pixelator/mainwindow.cpp (renamed from examples/itemviews/pixelator/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/pixelator/mainwindow.h (renamed from examples/itemviews/pixelator/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/pixelator/pixelator.desktop (renamed from examples/itemviews/pixelator/pixelator.desktop)0
-rw-r--r--examples/widgets/itemviews/pixelator/pixelator.pro (renamed from examples/itemviews/pixelator/pixelator.pro)0
-rw-r--r--examples/widgets/itemviews/pixelator/pixeldelegate.cpp (renamed from examples/itemviews/pixelator/pixeldelegate.cpp)0
-rw-r--r--examples/widgets/itemviews/pixelator/pixeldelegate.h (renamed from examples/itemviews/pixelator/pixeldelegate.h)0
-rw-r--r--examples/widgets/itemviews/puzzle/example.jpg (renamed from examples/itemviews/puzzle/example.jpg)bin42654 -> 42654 bytes
-rw-r--r--examples/widgets/itemviews/puzzle/main.cpp (renamed from examples/itemviews/puzzle/main.cpp)0
-rw-r--r--examples/widgets/itemviews/puzzle/mainwindow.cpp (renamed from examples/itemviews/puzzle/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/puzzle/mainwindow.h (renamed from examples/itemviews/puzzle/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/puzzle/piecesmodel.cpp (renamed from examples/itemviews/puzzle/piecesmodel.cpp)0
-rw-r--r--examples/widgets/itemviews/puzzle/piecesmodel.h (renamed from examples/itemviews/puzzle/piecesmodel.h)0
-rw-r--r--examples/widgets/itemviews/puzzle/puzzle.desktop (renamed from examples/itemviews/puzzle/puzzle.desktop)0
-rw-r--r--examples/widgets/itemviews/puzzle/puzzle.pro (renamed from examples/itemviews/puzzle/puzzle.pro)0
-rw-r--r--examples/widgets/itemviews/puzzle/puzzle.qrc (renamed from examples/itemviews/puzzle/puzzle.qrc)0
-rw-r--r--examples/widgets/itemviews/puzzle/puzzlewidget.cpp (renamed from examples/itemviews/puzzle/puzzlewidget.cpp)0
-rw-r--r--examples/widgets/itemviews/puzzle/puzzlewidget.h (renamed from examples/itemviews/puzzle/puzzlewidget.h)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/domitem.cpp (renamed from examples/itemviews/simpledommodel/domitem.cpp)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/domitem.h (renamed from examples/itemviews/simpledommodel/domitem.h)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/dommodel.cpp (renamed from examples/itemviews/simpledommodel/dommodel.cpp)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/dommodel.h (renamed from examples/itemviews/simpledommodel/dommodel.h)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/main.cpp (renamed from examples/itemviews/simpledommodel/main.cpp)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/mainwindow.cpp (renamed from examples/itemviews/simpledommodel/mainwindow.cpp)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/mainwindow.h (renamed from examples/itemviews/simpledommodel/mainwindow.h)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/simpledommodel.desktop (renamed from examples/itemviews/simpledommodel/simpledommodel.desktop)0
-rw-r--r--examples/widgets/itemviews/simpledommodel/simpledommodel.pro (renamed from examples/itemviews/simpledommodel/simpledommodel.pro)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/default.txt (renamed from examples/itemviews/simpletreemodel/default.txt)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/main.cpp (renamed from examples/itemviews/simpletreemodel/main.cpp)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/simpletreemodel.desktop (renamed from examples/itemviews/simpletreemodel/simpletreemodel.desktop)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro (renamed from examples/itemviews/simpletreemodel/simpletreemodel.pro)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/simpletreemodel.qrc (renamed from examples/itemviews/simpletreemodel/simpletreemodel.qrc)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treeitem.cpp (renamed from examples/itemviews/simpletreemodel/treeitem.cpp)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treeitem.h (renamed from examples/itemviews/simpletreemodel/treeitem.h)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treemodel.cpp (renamed from examples/itemviews/simpletreemodel/treemodel.cpp)0
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treemodel.h (renamed from examples/itemviews/simpletreemodel/treemodel.h)0
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/main.cpp (renamed from examples/itemviews/simplewidgetmapper/main.cpp)0
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.desktop (renamed from examples/itemviews/simplewidgetmapper/simplewidgetmapper.desktop)0
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro (renamed from examples/itemviews/simplewidgetmapper/simplewidgetmapper.pro)0
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/window.cpp (renamed from examples/itemviews/simplewidgetmapper/window.cpp)0
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/window.h (renamed from examples/itemviews/simplewidgetmapper/window.h)0
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/delegate.cpp (renamed from examples/itemviews/spinboxdelegate/delegate.cpp)0
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/delegate.h (renamed from examples/itemviews/spinboxdelegate/delegate.h)0
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/main.cpp (renamed from examples/itemviews/spinboxdelegate/main.cpp)0
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.desktop (renamed from examples/itemviews/spinboxdelegate/spinboxdelegate.desktop)0
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro (renamed from examples/itemviews/spinboxdelegate/spinboxdelegate.pro)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/images/interview.png (renamed from examples/itemviews/spreadsheet/images/interview.png)bin174 -> 174 bytes
-rw-r--r--examples/widgets/itemviews/spreadsheet/main.cpp (renamed from examples/itemviews/spreadsheet/main.cpp)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/printview.cpp (renamed from examples/itemviews/spreadsheet/printview.cpp)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/printview.h (renamed from examples/itemviews/spreadsheet/printview.h)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.cpp (renamed from examples/itemviews/spreadsheet/spreadsheet.cpp)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.h (renamed from examples/itemviews/spreadsheet/spreadsheet.h)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.pro (renamed from examples/itemviews/spreadsheet/spreadsheet.pro)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.qrc (renamed from examples/itemviews/spreadsheet/spreadsheet.qrc)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.cpp (renamed from examples/itemviews/spreadsheet/spreadsheetdelegate.cpp)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.h (renamed from examples/itemviews/spreadsheet/spreadsheetdelegate.h)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetitem.cpp (renamed from examples/itemviews/spreadsheet/spreadsheetitem.cpp)0
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetitem.h (renamed from examples/itemviews/spreadsheet/spreadsheetitem.h)0
-rw-r--r--examples/widgets/itemviews/stardelegate/main.cpp (renamed from examples/itemviews/stardelegate/main.cpp)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.cpp (renamed from examples/itemviews/stardelegate/stardelegate.cpp)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.desktop (renamed from examples/itemviews/stardelegate/stardelegate.desktop)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.h (renamed from examples/itemviews/stardelegate/stardelegate.h)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.pro (renamed from examples/itemviews/stardelegate/stardelegate.pro)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stareditor.cpp (renamed from examples/itemviews/stardelegate/stareditor.cpp)0
-rw-r--r--examples/widgets/itemviews/stardelegate/stareditor.h (renamed from examples/itemviews/stardelegate/stareditor.h)0
-rw-r--r--examples/widgets/itemviews/stardelegate/starrating.cpp (renamed from examples/itemviews/stardelegate/starrating.cpp)0
-rw-r--r--examples/widgets/itemviews/stardelegate/starrating.h (renamed from examples/itemviews/stardelegate/starrating.h)0
-rw-r--r--examples/widgets/layouts/README (renamed from examples/layouts/README)0
-rw-r--r--examples/widgets/layouts/basiclayouts/basiclayouts.desktop (renamed from examples/layouts/basiclayouts/basiclayouts.desktop)0
-rw-r--r--examples/widgets/layouts/basiclayouts/basiclayouts.pro (renamed from examples/layouts/basiclayouts/basiclayouts.pro)0
-rw-r--r--examples/widgets/layouts/basiclayouts/dialog.cpp (renamed from examples/layouts/basiclayouts/dialog.cpp)0
-rw-r--r--examples/widgets/layouts/basiclayouts/dialog.h (renamed from examples/layouts/basiclayouts/dialog.h)0
-rw-r--r--examples/widgets/layouts/basiclayouts/main.cpp (renamed from examples/layouts/basiclayouts/main.cpp)0
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.cpp (renamed from examples/layouts/borderlayout/borderlayout.cpp)0
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.desktop (renamed from examples/layouts/borderlayout/borderlayout.desktop)0
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.h (renamed from examples/layouts/borderlayout/borderlayout.h)0
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.pro (renamed from examples/layouts/borderlayout/borderlayout.pro)0
-rw-r--r--examples/widgets/layouts/borderlayout/main.cpp (renamed from examples/layouts/borderlayout/main.cpp)0
-rw-r--r--examples/widgets/layouts/borderlayout/window.cpp (renamed from examples/layouts/borderlayout/window.cpp)0
-rw-r--r--examples/widgets/layouts/borderlayout/window.h (renamed from examples/layouts/borderlayout/window.h)0
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dialog.cpp (renamed from examples/layouts/dynamiclayouts/dialog.cpp)0
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dialog.h (renamed from examples/layouts/dynamiclayouts/dialog.h)0
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dynamiclayouts.desktop (renamed from examples/layouts/dynamiclayouts/dynamiclayouts.desktop)0
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro (renamed from examples/layouts/dynamiclayouts/dynamiclayouts.pro)0
-rw-r--r--examples/widgets/layouts/dynamiclayouts/main.cpp (renamed from examples/layouts/dynamiclayouts/main.cpp)0
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.cpp (renamed from examples/layouts/flowlayout/flowlayout.cpp)0
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.desktop (renamed from examples/layouts/flowlayout/flowlayout.desktop)0
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.h (renamed from examples/layouts/flowlayout/flowlayout.h)0
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.pro (renamed from examples/layouts/flowlayout/flowlayout.pro)0
-rw-r--r--examples/widgets/layouts/flowlayout/main.cpp (renamed from examples/layouts/flowlayout/main.cpp)0
-rw-r--r--examples/widgets/layouts/flowlayout/window.cpp (renamed from examples/layouts/flowlayout/window.cpp)0
-rw-r--r--examples/widgets/layouts/flowlayout/window.h (renamed from examples/layouts/flowlayout/window.h)0
-rw-r--r--examples/widgets/layouts/layouts.pro (renamed from examples/layouts/layouts.pro)0
-rw-r--r--examples/widgets/mainwindows/README (renamed from examples/mainwindows/README)0
-rw-r--r--examples/widgets/mainwindows/application/application.desktop (renamed from examples/mainwindows/application/application.desktop)0
-rw-r--r--examples/widgets/mainwindows/application/application.pro (renamed from examples/mainwindows/application/application.pro)0
-rw-r--r--examples/widgets/mainwindows/application/application.qrc (renamed from examples/mainwindows/application/application.qrc)0
-rw-r--r--examples/widgets/mainwindows/application/images/copy.png (renamed from examples/mainwindows/application/images/copy.png)bin1338 -> 1338 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/cut.png (renamed from examples/mainwindows/application/images/cut.png)bin1323 -> 1323 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/new.png (renamed from examples/mainwindows/application/images/new.png)bin852 -> 852 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/open.png (renamed from examples/mainwindows/application/images/open.png)bin2073 -> 2073 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/paste.png (renamed from examples/mainwindows/application/images/paste.png)bin1645 -> 1645 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/save.png (renamed from examples/mainwindows/application/images/save.png)bin1187 -> 1187 bytes
-rw-r--r--examples/widgets/mainwindows/application/main.cpp (renamed from examples/mainwindows/application/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/application/mainwindow.cpp (renamed from examples/mainwindows/application/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/application/mainwindow.h (renamed from examples/mainwindows/application/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/dockwidgets.desktop (renamed from examples/mainwindows/dockwidgets/dockwidgets.desktop)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/dockwidgets.pro (renamed from examples/mainwindows/dockwidgets/dockwidgets.pro)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/dockwidgets.qrc (renamed from examples/mainwindows/dockwidgets/dockwidgets.qrc)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/images/new.png (renamed from examples/mainwindows/dockwidgets/images/new.png)bin977 -> 977 bytes
-rw-r--r--examples/widgets/mainwindows/dockwidgets/images/print.png (renamed from examples/mainwindows/dockwidgets/images/print.png)bin1732 -> 1732 bytes
-rw-r--r--examples/widgets/mainwindows/dockwidgets/images/save.png (renamed from examples/mainwindows/dockwidgets/images/save.png)bin1894 -> 1894 bytes
-rw-r--r--examples/widgets/mainwindows/dockwidgets/images/undo.png (renamed from examples/mainwindows/dockwidgets/images/undo.png)bin1768 -> 1768 bytes
-rw-r--r--examples/widgets/mainwindows/dockwidgets/main.cpp (renamed from examples/mainwindows/dockwidgets/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/mainwindow.cpp (renamed from examples/mainwindows/dockwidgets/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/dockwidgets/mainwindow.h (renamed from examples/mainwindows/dockwidgets/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/colorswatch.cpp (renamed from examples/mainwindows/mainwindow/colorswatch.cpp)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/colorswatch.h (renamed from examples/mainwindows/mainwindow/colorswatch.h)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/main.cpp (renamed from examples/mainwindows/mainwindow/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.cpp (renamed from examples/mainwindows/mainwindow/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.h (renamed from examples/mainwindows/mainwindow/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.pro (renamed from examples/mainwindows/mainwindow/mainwindow.pro)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.qrc (renamed from examples/mainwindows/mainwindow/mainwindow.qrc)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/qt.png (renamed from examples/mainwindows/mainwindow/qt.png)bin2037 -> 2037 bytes
-rw-r--r--examples/widgets/mainwindows/mainwindow/titlebarCenter.png (renamed from examples/mainwindows/mainwindow/titlebarCenter.png)bin146 -> 146 bytes
-rw-r--r--examples/widgets/mainwindows/mainwindow/titlebarLeft.png (renamed from examples/mainwindows/mainwindow/titlebarLeft.png)bin5148 -> 5148 bytes
-rw-r--r--examples/widgets/mainwindows/mainwindow/titlebarRight.png (renamed from examples/mainwindows/mainwindow/titlebarRight.png)bin2704 -> 2704 bytes
-rw-r--r--examples/widgets/mainwindows/mainwindow/toolbar.cpp (renamed from examples/mainwindows/mainwindow/toolbar.cpp)0
-rw-r--r--examples/widgets/mainwindows/mainwindow/toolbar.h (renamed from examples/mainwindows/mainwindow/toolbar.h)0
-rw-r--r--examples/widgets/mainwindows/mainwindows.pro (renamed from examples/mainwindows/mainwindows.pro)0
-rw-r--r--examples/widgets/mainwindows/mdi/images/copy.png (renamed from examples/mainwindows/mdi/images/copy.png)bin1338 -> 1338 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/images/cut.png (renamed from examples/mainwindows/mdi/images/cut.png)bin1323 -> 1323 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/images/new.png (renamed from examples/mainwindows/mdi/images/new.png)bin852 -> 852 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/images/open.png (renamed from examples/mainwindows/mdi/images/open.png)bin2073 -> 2073 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/images/paste.png (renamed from examples/mainwindows/mdi/images/paste.png)bin1645 -> 1645 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/images/save.png (renamed from examples/mainwindows/mdi/images/save.png)bin1187 -> 1187 bytes
-rw-r--r--examples/widgets/mainwindows/mdi/main.cpp (renamed from examples/mainwindows/mdi/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/mdi/mainwindow.cpp (renamed from examples/mainwindows/mdi/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/mdi/mainwindow.h (renamed from examples/mainwindows/mdi/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/mdi/mdi.desktop (renamed from examples/mainwindows/mdi/mdi.desktop)0
-rw-r--r--examples/widgets/mainwindows/mdi/mdi.pro (renamed from examples/mainwindows/mdi/mdi.pro)0
-rw-r--r--examples/widgets/mainwindows/mdi/mdi.qrc (renamed from examples/mainwindows/mdi/mdi.qrc)0
-rw-r--r--examples/widgets/mainwindows/mdi/mdichild.cpp (renamed from examples/mainwindows/mdi/mdichild.cpp)0
-rw-r--r--examples/widgets/mainwindows/mdi/mdichild.h (renamed from examples/mainwindows/mdi/mdichild.h)0
-rw-r--r--examples/widgets/mainwindows/menus/main.cpp (renamed from examples/mainwindows/menus/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/menus/mainwindow.cpp (renamed from examples/mainwindows/menus/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/menus/mainwindow.h (renamed from examples/mainwindows/menus/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/menus/menus.desktop (renamed from examples/mainwindows/menus/menus.desktop)0
-rw-r--r--examples/widgets/mainwindows/menus/menus.pro (renamed from examples/mainwindows/menus/menus.pro)0
-rw-r--r--examples/widgets/mainwindows/recentfiles/main.cpp (renamed from examples/mainwindows/recentfiles/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/recentfiles/mainwindow.cpp (renamed from examples/mainwindows/recentfiles/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/recentfiles/mainwindow.h (renamed from examples/mainwindows/recentfiles/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/recentfiles/recentfiles.desktop (renamed from examples/mainwindows/recentfiles/recentfiles.desktop)0
-rw-r--r--examples/widgets/mainwindows/recentfiles/recentfiles.pro (renamed from examples/mainwindows/recentfiles/recentfiles.pro)0
-rw-r--r--examples/widgets/mainwindows/sdi/images/copy.png (renamed from examples/mainwindows/sdi/images/copy.png)bin1338 -> 1338 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/cut.png (renamed from examples/mainwindows/sdi/images/cut.png)bin1323 -> 1323 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/new.png (renamed from examples/mainwindows/sdi/images/new.png)bin852 -> 852 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/open.png (renamed from examples/mainwindows/sdi/images/open.png)bin2073 -> 2073 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/paste.png (renamed from examples/mainwindows/sdi/images/paste.png)bin1645 -> 1645 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/save.png (renamed from examples/mainwindows/sdi/images/save.png)bin1187 -> 1187 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/main.cpp (renamed from examples/mainwindows/sdi/main.cpp)0
-rw-r--r--examples/widgets/mainwindows/sdi/mainwindow.cpp (renamed from examples/mainwindows/sdi/mainwindow.cpp)0
-rw-r--r--examples/widgets/mainwindows/sdi/mainwindow.h (renamed from examples/mainwindows/sdi/mainwindow.h)0
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.desktop (renamed from examples/mainwindows/sdi/sdi.desktop)0
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.pro (renamed from examples/mainwindows/sdi/sdi.pro)0
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.qrc (renamed from examples/mainwindows/sdi/sdi.qrc)0
-rw-r--r--examples/widgets/painting/README (renamed from examples/painting/README)0
-rw-r--r--examples/widgets/painting/affine/affine.pro (renamed from examples/painting/affine/affine.pro)0
-rw-r--r--examples/widgets/painting/affine/affine.qrc (renamed from examples/painting/affine/affine.qrc)0
-rw-r--r--examples/widgets/painting/affine/bg1.jpg (renamed from examples/painting/affine/bg1.jpg)bin23771 -> 23771 bytes
-rw-r--r--examples/widgets/painting/affine/main.cpp (renamed from examples/painting/affine/main.cpp)0
-rw-r--r--examples/widgets/painting/affine/xform.cpp (renamed from examples/painting/affine/xform.cpp)0
-rw-r--r--examples/widgets/painting/affine/xform.h (renamed from examples/painting/affine/xform.h)0
-rw-r--r--examples/widgets/painting/affine/xform.html (renamed from examples/painting/affine/xform.html)0
-rw-r--r--examples/widgets/painting/basicdrawing/basicdrawing.desktop (renamed from examples/painting/basicdrawing/basicdrawing.desktop)0
-rw-r--r--examples/widgets/painting/basicdrawing/basicdrawing.pro (renamed from examples/painting/basicdrawing/basicdrawing.pro)0
-rw-r--r--examples/widgets/painting/basicdrawing/basicdrawing.qrc (renamed from examples/painting/basicdrawing/basicdrawing.qrc)0
-rw-r--r--examples/widgets/painting/basicdrawing/images/brick.png (renamed from examples/painting/basicdrawing/images/brick.png)bin767 -> 767 bytes
-rw-r--r--examples/widgets/painting/basicdrawing/images/qt-logo.png (renamed from examples/painting/basicdrawing/images/qt-logo.png)bin3696 -> 3696 bytes
-rw-r--r--examples/widgets/painting/basicdrawing/main.cpp (renamed from examples/painting/basicdrawing/main.cpp)0
-rw-r--r--examples/widgets/painting/basicdrawing/renderarea.cpp (renamed from examples/painting/basicdrawing/renderarea.cpp)0
-rw-r--r--examples/widgets/painting/basicdrawing/renderarea.h (renamed from examples/painting/basicdrawing/renderarea.h)0
-rw-r--r--examples/widgets/painting/basicdrawing/window.cpp (renamed from examples/painting/basicdrawing/window.cpp)0
-rw-r--r--examples/widgets/painting/basicdrawing/window.h (renamed from examples/painting/basicdrawing/window.h)0
-rw-r--r--examples/widgets/painting/composition/composition.cpp (renamed from examples/painting/composition/composition.cpp)0
-rw-r--r--examples/widgets/painting/composition/composition.h (renamed from examples/painting/composition/composition.h)0
-rw-r--r--examples/widgets/painting/composition/composition.html (renamed from examples/painting/composition/composition.html)0
-rw-r--r--examples/widgets/painting/composition/composition.pro (renamed from examples/painting/composition/composition.pro)0
-rw-r--r--examples/widgets/painting/composition/composition.qrc (renamed from examples/painting/composition/composition.qrc)0
-rw-r--r--examples/widgets/painting/composition/flower.jpg (renamed from examples/painting/composition/flower.jpg)bin49616 -> 49616 bytes
-rw-r--r--examples/widgets/painting/composition/flower_alpha.jpg (renamed from examples/painting/composition/flower_alpha.jpg)bin67326 -> 67326 bytes
-rw-r--r--examples/widgets/painting/composition/main.cpp (renamed from examples/painting/composition/main.cpp)0
-rw-r--r--examples/widgets/painting/concentriccircles/circlewidget.cpp (renamed from examples/painting/concentriccircles/circlewidget.cpp)0
-rw-r--r--examples/widgets/painting/concentriccircles/circlewidget.h (renamed from examples/painting/concentriccircles/circlewidget.h)0
-rw-r--r--examples/widgets/painting/concentriccircles/concentriccircles.desktop (renamed from examples/painting/concentriccircles/concentriccircles.desktop)0
-rw-r--r--examples/widgets/painting/concentriccircles/concentriccircles.pro (renamed from examples/painting/concentriccircles/concentriccircles.pro)0
-rw-r--r--examples/widgets/painting/concentriccircles/main.cpp (renamed from examples/painting/concentriccircles/main.cpp)0
-rw-r--r--examples/widgets/painting/concentriccircles/window.cpp (renamed from examples/painting/concentriccircles/window.cpp)0
-rw-r--r--examples/widgets/painting/concentriccircles/window.h (renamed from examples/painting/concentriccircles/window.h)0
-rw-r--r--examples/widgets/painting/deform/deform.pro (renamed from examples/painting/deform/deform.pro)0
-rw-r--r--examples/widgets/painting/deform/deform.qrc (renamed from examples/painting/deform/deform.qrc)0
-rw-r--r--examples/widgets/painting/deform/main.cpp (renamed from examples/painting/deform/main.cpp)0
-rw-r--r--examples/widgets/painting/deform/pathdeform.cpp (renamed from examples/painting/deform/pathdeform.cpp)0
-rw-r--r--examples/widgets/painting/deform/pathdeform.h (renamed from examples/painting/deform/pathdeform.h)0
-rw-r--r--examples/widgets/painting/deform/pathdeform.html (renamed from examples/painting/deform/pathdeform.html)0
-rw-r--r--examples/widgets/painting/fontsampler/fontsampler.desktop (renamed from examples/painting/fontsampler/fontsampler.desktop)0
-rw-r--r--examples/widgets/painting/fontsampler/fontsampler.pro (renamed from examples/painting/fontsampler/fontsampler.pro)0
-rw-r--r--examples/widgets/painting/fontsampler/main.cpp (renamed from examples/painting/fontsampler/main.cpp)0
-rw-r--r--examples/widgets/painting/fontsampler/mainwindow.cpp (renamed from examples/painting/fontsampler/mainwindow.cpp)0
-rw-r--r--examples/widgets/painting/fontsampler/mainwindow.h (renamed from examples/painting/fontsampler/mainwindow.h)0
-rw-r--r--examples/widgets/painting/fontsampler/mainwindowbase.ui (renamed from examples/painting/fontsampler/mainwindowbase.ui)0
-rw-r--r--examples/widgets/painting/gradients/gradients.cpp (renamed from examples/painting/gradients/gradients.cpp)0
-rw-r--r--examples/widgets/painting/gradients/gradients.h (renamed from examples/painting/gradients/gradients.h)0
-rw-r--r--examples/widgets/painting/gradients/gradients.html (renamed from examples/painting/gradients/gradients.html)0
-rw-r--r--examples/widgets/painting/gradients/gradients.pro (renamed from examples/painting/gradients/gradients.pro)0
-rw-r--r--examples/widgets/painting/gradients/gradients.qrc (renamed from examples/painting/gradients/gradients.qrc)0
-rw-r--r--examples/widgets/painting/gradients/main.cpp (renamed from examples/painting/gradients/main.cpp)0
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposer.cpp (renamed from examples/painting/imagecomposition/imagecomposer.cpp)0
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposer.h (renamed from examples/painting/imagecomposition/imagecomposer.h)0
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposition.desktop (renamed from examples/painting/imagecomposition/imagecomposition.desktop)0
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposition.pro (renamed from examples/painting/imagecomposition/imagecomposition.pro)0
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposition.qrc (renamed from examples/painting/imagecomposition/imagecomposition.qrc)0
-rw-r--r--examples/widgets/painting/imagecomposition/images/background.png (renamed from examples/painting/imagecomposition/images/background.png)bin18579 -> 18579 bytes
-rw-r--r--examples/widgets/painting/imagecomposition/images/blackrectangle.png (renamed from examples/painting/imagecomposition/images/blackrectangle.png)bin90 -> 90 bytes
-rw-r--r--examples/widgets/painting/imagecomposition/images/butterfly.png (renamed from examples/painting/imagecomposition/images/butterfly.png)bin36868 -> 36868 bytes
-rw-r--r--examples/widgets/painting/imagecomposition/images/checker.png (renamed from examples/painting/imagecomposition/images/checker.png)bin10384 -> 10384 bytes
-rw-r--r--examples/widgets/painting/imagecomposition/main.cpp (renamed from examples/painting/imagecomposition/main.cpp)0
-rw-r--r--examples/widgets/painting/painterpaths/main.cpp (renamed from examples/painting/painterpaths/main.cpp)0
-rw-r--r--examples/widgets/painting/painterpaths/painterpaths.desktop (renamed from examples/painting/painterpaths/painterpaths.desktop)0
-rw-r--r--examples/widgets/painting/painterpaths/painterpaths.pro (renamed from examples/painting/painterpaths/painterpaths.pro)0
-rw-r--r--examples/widgets/painting/painterpaths/renderarea.cpp (renamed from examples/painting/painterpaths/renderarea.cpp)0
-rw-r--r--examples/widgets/painting/painterpaths/renderarea.h (renamed from examples/painting/painterpaths/renderarea.h)0
-rw-r--r--examples/widgets/painting/painterpaths/window.cpp (renamed from examples/painting/painterpaths/window.cpp)0
-rw-r--r--examples/widgets/painting/painterpaths/window.h (renamed from examples/painting/painterpaths/window.h)0
-rw-r--r--examples/widgets/painting/painting.pro (renamed from examples/painting/painting.pro)0
-rw-r--r--examples/widgets/painting/pathstroke/main.cpp (renamed from examples/painting/pathstroke/main.cpp)0
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.cpp (renamed from examples/painting/pathstroke/pathstroke.cpp)0
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.h (renamed from examples/painting/pathstroke/pathstroke.h)0
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.html (renamed from examples/painting/pathstroke/pathstroke.html)0
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.pro (renamed from examples/painting/pathstroke/pathstroke.pro)0
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.qrc (renamed from examples/painting/pathstroke/pathstroke.qrc)0
-rw-r--r--examples/widgets/painting/shared/arthurstyle.cpp (renamed from examples/painting/shared/arthurstyle.cpp)0
-rw-r--r--examples/widgets/painting/shared/arthurstyle.h (renamed from examples/painting/shared/arthurstyle.h)0
-rw-r--r--examples/widgets/painting/shared/arthurwidgets.cpp (renamed from examples/painting/shared/arthurwidgets.cpp)0
-rw-r--r--examples/widgets/painting/shared/arthurwidgets.h (renamed from examples/painting/shared/arthurwidgets.h)0
-rw-r--r--examples/widgets/painting/shared/hoverpoints.cpp (renamed from examples/painting/shared/hoverpoints.cpp)0
-rw-r--r--examples/widgets/painting/shared/hoverpoints.h (renamed from examples/painting/shared/hoverpoints.h)0
-rw-r--r--examples/widgets/painting/shared/images/bg_pattern.png (renamed from examples/painting/shared/images/bg_pattern.png)bin104 -> 104 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_normal_cap_left.png (renamed from examples/painting/shared/images/button_normal_cap_left.png)bin654 -> 654 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_normal_cap_right.png (renamed from examples/painting/shared/images/button_normal_cap_right.png)bin674 -> 674 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_normal_stretch.png (renamed from examples/painting/shared/images/button_normal_stretch.png)bin185 -> 185 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_pressed_cap_left.png (renamed from examples/painting/shared/images/button_pressed_cap_left.png)bin710 -> 710 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_pressed_cap_right.png (renamed from examples/painting/shared/images/button_pressed_cap_right.png)bin785 -> 785 bytes
-rw-r--r--examples/widgets/painting/shared/images/button_pressed_stretch.png (renamed from examples/painting/shared/images/button_pressed_stretch.png)bin217 -> 217 bytes
-rw-r--r--examples/widgets/painting/shared/images/curve_thing_edit-6.png (renamed from examples/painting/shared/images/curve_thing_edit-6.png)bin58097 -> 58097 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_bottom.png (renamed from examples/painting/shared/images/frame_bottom.png)bin166 -> 166 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_bottomleft.png (renamed from examples/painting/shared/images/frame_bottomleft.png)bin602 -> 602 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_bottomright.png (renamed from examples/painting/shared/images/frame_bottomright.png)bin553 -> 553 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_left.png (renamed from examples/painting/shared/images/frame_left.png)bin182 -> 182 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_right.png (renamed from examples/painting/shared/images/frame_right.png)bin175 -> 175 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_top.png (renamed from examples/painting/shared/images/frame_top.png)bin188 -> 188 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_topleft.png (renamed from examples/painting/shared/images/frame_topleft.png)bin801 -> 801 bytes
-rw-r--r--examples/widgets/painting/shared/images/frame_topright.png (renamed from examples/painting/shared/images/frame_topright.png)bin851 -> 851 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_bottom_left.png (renamed from examples/painting/shared/images/groupframe_bottom_left.png)bin397 -> 397 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_bottom_right.png (renamed from examples/painting/shared/images/groupframe_bottom_right.png)bin383 -> 383 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_bottom_stretch.png (renamed from examples/painting/shared/images/groupframe_bottom_stretch.png)bin141 -> 141 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_left_stretch.png (renamed from examples/painting/shared/images/groupframe_left_stretch.png)bin132 -> 132 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_right_stretch.png (renamed from examples/painting/shared/images/groupframe_right_stretch.png)bin113 -> 113 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_top_stretch.png (renamed from examples/painting/shared/images/groupframe_top_stretch.png)bin115 -> 115 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_topleft.png (renamed from examples/painting/shared/images/groupframe_topleft.png)bin412 -> 412 bytes
-rw-r--r--examples/widgets/painting/shared/images/groupframe_topright.png (renamed from examples/painting/shared/images/groupframe_topright.png)bin449 -> 449 bytes
-rw-r--r--examples/widgets/painting/shared/images/line_dash_dot.png (renamed from examples/painting/shared/images/line_dash_dot.png)bin151 -> 151 bytes
-rw-r--r--examples/widgets/painting/shared/images/line_dash_dot_dot.png (renamed from examples/painting/shared/images/line_dash_dot_dot.png)bin155 -> 155 bytes
-rw-r--r--examples/widgets/painting/shared/images/line_dashed.png (renamed from examples/painting/shared/images/line_dashed.png)bin121 -> 121 bytes
-rw-r--r--examples/widgets/painting/shared/images/line_dotted.png (renamed from examples/painting/shared/images/line_dotted.png)bin116 -> 116 bytes
-rw-r--r--examples/widgets/painting/shared/images/line_solid.png (renamed from examples/painting/shared/images/line_solid.png)bin110 -> 110 bytes
-rw-r--r--examples/widgets/painting/shared/images/radiobutton-off.png (renamed from examples/painting/shared/images/radiobutton-off.png)bin442 -> 442 bytes
-rw-r--r--examples/widgets/painting/shared/images/radiobutton-on.png (renamed from examples/painting/shared/images/radiobutton-on.png)bin474 -> 474 bytes
-rw-r--r--examples/widgets/painting/shared/images/radiobutton_off.png (renamed from examples/painting/shared/images/radiobutton_off.png)bin442 -> 442 bytes
-rw-r--r--examples/widgets/painting/shared/images/radiobutton_on.png (renamed from examples/painting/shared/images/radiobutton_on.png)bin499 -> 499 bytes
-rw-r--r--examples/widgets/painting/shared/images/slider_bar.png (renamed from examples/painting/shared/images/slider_bar.png)bin748 -> 748 bytes
-rw-r--r--examples/widgets/painting/shared/images/slider_thumb_off.png (renamed from examples/painting/shared/images/slider_thumb_off.png)bin823 -> 823 bytes
-rw-r--r--examples/widgets/painting/shared/images/slider_thumb_on.png (renamed from examples/painting/shared/images/slider_thumb_on.png)bin798 -> 798 bytes
-rw-r--r--examples/widgets/painting/shared/images/title_cap_left.png (renamed from examples/painting/shared/images/title_cap_left.png)bin179 -> 179 bytes
-rw-r--r--examples/widgets/painting/shared/images/title_cap_right.png (renamed from examples/painting/shared/images/title_cap_right.png)bin184 -> 184 bytes
-rw-r--r--examples/widgets/painting/shared/images/title_stretch.png (renamed from examples/painting/shared/images/title_stretch.png)bin106 -> 106 bytes
-rw-r--r--examples/widgets/painting/shared/shared.pri (renamed from examples/painting/shared/shared.pri)0
-rw-r--r--examples/widgets/painting/shared/shared.pro (renamed from examples/painting/shared/shared.pro)0
-rw-r--r--examples/widgets/painting/shared/shared.qrc (renamed from examples/painting/shared/shared.qrc)0
-rw-r--r--examples/widgets/painting/svggenerator/svggenerator.desktop (renamed from examples/painting/svggenerator/svggenerator.desktop)0
-rw-r--r--examples/widgets/painting/svgviewer/svgviewer.desktop (renamed from examples/painting/svgviewer/svgviewer.desktop)0
-rw-r--r--examples/widgets/painting/transformations/main.cpp (renamed from examples/painting/transformations/main.cpp)0
-rw-r--r--examples/widgets/painting/transformations/renderarea.cpp (renamed from examples/painting/transformations/renderarea.cpp)0
-rw-r--r--examples/widgets/painting/transformations/renderarea.h (renamed from examples/painting/transformations/renderarea.h)0
-rw-r--r--examples/widgets/painting/transformations/transformations.desktop (renamed from examples/painting/transformations/transformations.desktop)0
-rw-r--r--examples/widgets/painting/transformations/transformations.pro (renamed from examples/painting/transformations/transformations.pro)0
-rw-r--r--examples/widgets/painting/transformations/window.cpp (renamed from examples/painting/transformations/window.cpp)0
-rw-r--r--examples/widgets/painting/transformations/window.h (renamed from examples/painting/transformations/window.h)0
-rw-r--r--examples/widgets/richtext/README (renamed from examples/richtext/README)0
-rw-r--r--examples/widgets/richtext/calendar/calendar.desktop (renamed from examples/richtext/calendar/calendar.desktop)0
-rw-r--r--examples/widgets/richtext/calendar/calendar.pro (renamed from examples/richtext/calendar/calendar.pro)0
-rw-r--r--examples/widgets/richtext/calendar/main.cpp (renamed from examples/richtext/calendar/main.cpp)0
-rw-r--r--examples/widgets/richtext/calendar/mainwindow.cpp (renamed from examples/richtext/calendar/mainwindow.cpp)0
-rw-r--r--examples/widgets/richtext/calendar/mainwindow.h (renamed from examples/richtext/calendar/mainwindow.h)0
-rw-r--r--examples/widgets/richtext/orderform/detailsdialog.cpp (renamed from examples/richtext/orderform/detailsdialog.cpp)0
-rw-r--r--examples/widgets/richtext/orderform/detailsdialog.h (renamed from examples/richtext/orderform/detailsdialog.h)0
-rw-r--r--examples/widgets/richtext/orderform/main.cpp (renamed from examples/richtext/orderform/main.cpp)0
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.cpp (renamed from examples/richtext/orderform/mainwindow.cpp)0
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.h (renamed from examples/richtext/orderform/mainwindow.h)0
-rw-r--r--examples/widgets/richtext/orderform/orderform.desktop (renamed from examples/richtext/orderform/orderform.desktop)0
-rw-r--r--examples/widgets/richtext/orderform/orderform.pro (renamed from examples/richtext/orderform/orderform.pro)0
-rw-r--r--examples/widgets/richtext/richtext.pro (renamed from examples/richtext/richtext.pro)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/highlighter.cpp (renamed from examples/richtext/syntaxhighlighter/highlighter.cpp)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/highlighter.h (renamed from examples/richtext/syntaxhighlighter/highlighter.h)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/main.cpp (renamed from examples/richtext/syntaxhighlighter/main.cpp)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp (renamed from examples/richtext/syntaxhighlighter/mainwindow.cpp)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.h (renamed from examples/richtext/syntaxhighlighter/mainwindow.h)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.desktop (renamed from examples/richtext/syntaxhighlighter/syntaxhighlighter.desktop)0
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro (renamed from examples/richtext/syntaxhighlighter/syntaxhighlighter.pro)0
-rw-r--r--examples/widgets/richtext/textedit/example.html (renamed from examples/richtext/textedit/example.html)0
-rw-r--r--examples/widgets/richtext/textedit/images/logo32.png (renamed from examples/richtext/textedit/images/logo32.png)bin1410 -> 1410 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/editcopy.png (renamed from examples/richtext/textedit/images/mac/editcopy.png)bin1468 -> 1468 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/editcut.png (renamed from examples/richtext/textedit/images/mac/editcut.png)bin1512 -> 1512 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/editpaste.png (renamed from examples/richtext/textedit/images/mac/editpaste.png)bin1906 -> 1906 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/editredo.png (renamed from examples/richtext/textedit/images/mac/editredo.png)bin1752 -> 1752 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/editundo.png (renamed from examples/richtext/textedit/images/mac/editundo.png)bin1746 -> 1746 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/exportpdf.png (renamed from examples/richtext/textedit/images/mac/exportpdf.png)bin1215 -> 1215 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/filenew.png (renamed from examples/richtext/textedit/images/mac/filenew.png)bin1172 -> 1172 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/fileopen.png (renamed from examples/richtext/textedit/images/mac/fileopen.png)bin2168 -> 2168 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/fileprint.png (renamed from examples/richtext/textedit/images/mac/fileprint.png)bin2087 -> 2087 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/filesave.png (renamed from examples/richtext/textedit/images/mac/filesave.png)bin1206 -> 1206 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textbold.png (renamed from examples/richtext/textedit/images/mac/textbold.png)bin1611 -> 1611 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textcenter.png (renamed from examples/richtext/textedit/images/mac/textcenter.png)bin1404 -> 1404 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textitalic.png (renamed from examples/richtext/textedit/images/mac/textitalic.png)bin1164 -> 1164 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textjustify.png (renamed from examples/richtext/textedit/images/mac/textjustify.png)bin1257 -> 1257 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textleft.png (renamed from examples/richtext/textedit/images/mac/textleft.png)bin1235 -> 1235 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textright.png (renamed from examples/richtext/textedit/images/mac/textright.png)bin1406 -> 1406 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/textunder.png (renamed from examples/richtext/textedit/images/mac/textunder.png)bin1183 -> 1183 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/zoomin.png (renamed from examples/richtext/textedit/images/mac/zoomin.png)bin1696 -> 1696 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/mac/zoomout.png (renamed from examples/richtext/textedit/images/mac/zoomout.png)bin1662 -> 1662 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/editcopy.png (renamed from examples/richtext/textedit/images/win/editcopy.png)bin1325 -> 1325 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/editcut.png (renamed from examples/richtext/textedit/images/win/editcut.png)bin1896 -> 1896 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/editpaste.png (renamed from examples/richtext/textedit/images/win/editpaste.png)bin1482 -> 1482 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/editredo.png (renamed from examples/richtext/textedit/images/win/editredo.png)bin1787 -> 1787 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/editundo.png (renamed from examples/richtext/textedit/images/win/editundo.png)bin1768 -> 1768 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/exportpdf.png (renamed from examples/richtext/textedit/images/win/exportpdf.png)bin1059 -> 1059 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/filenew.png (renamed from examples/richtext/textedit/images/win/filenew.png)bin768 -> 768 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/fileopen.png (renamed from examples/richtext/textedit/images/win/fileopen.png)bin1662 -> 1662 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/fileprint.png (renamed from examples/richtext/textedit/images/win/fileprint.png)bin1456 -> 1456 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/filesave.png (renamed from examples/richtext/textedit/images/win/filesave.png)bin1205 -> 1205 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textbold.png (renamed from examples/richtext/textedit/images/win/textbold.png)bin1134 -> 1134 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textcenter.png (renamed from examples/richtext/textedit/images/win/textcenter.png)bin627 -> 627 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textitalic.png (renamed from examples/richtext/textedit/images/win/textitalic.png)bin829 -> 829 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textjustify.png (renamed from examples/richtext/textedit/images/win/textjustify.png)bin695 -> 695 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textleft.png (renamed from examples/richtext/textedit/images/win/textleft.png)bin673 -> 673 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textright.png (renamed from examples/richtext/textedit/images/win/textright.png)bin677 -> 677 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/textunder.png (renamed from examples/richtext/textedit/images/win/textunder.png)bin971 -> 971 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/zoomin.png (renamed from examples/richtext/textedit/images/win/zoomin.png)bin1208 -> 1208 bytes
-rw-r--r--examples/widgets/richtext/textedit/images/win/zoomout.png (renamed from examples/richtext/textedit/images/win/zoomout.png)bin1226 -> 1226 bytes
-rw-r--r--examples/widgets/richtext/textedit/main.cpp (renamed from examples/richtext/textedit/main.cpp)0
-rw-r--r--examples/widgets/richtext/textedit/textedit.cpp (renamed from examples/richtext/textedit/textedit.cpp)0
-rw-r--r--examples/widgets/richtext/textedit/textedit.h (renamed from examples/richtext/textedit/textedit.h)0
-rw-r--r--examples/widgets/richtext/textedit/textedit.pro (renamed from examples/richtext/textedit/textedit.pro)0
-rw-r--r--examples/widgets/richtext/textedit/textedit.qdoc (renamed from examples/richtext/textedit/textedit.qdoc)0
-rw-r--r--examples/widgets/richtext/textedit/textedit.qrc (renamed from examples/richtext/textedit/textedit.qrc)0
-rw-r--r--examples/widgets/scroller/graphicsview/graphicsview.pro (renamed from examples/scroller/graphicsview/graphicsview.pro)0
-rw-r--r--examples/widgets/scroller/graphicsview/main.cpp (renamed from examples/scroller/graphicsview/main.cpp)0
-rw-r--r--examples/widgets/scroller/scroller.pro (renamed from examples/scroller/scroller.pro)0
-rw-r--r--examples/widgets/statemachine/README (renamed from examples/statemachine/README)0
-rw-r--r--examples/widgets/statemachine/eventtransitions/eventtransitions.desktop (renamed from examples/statemachine/eventtransitions/eventtransitions.desktop)0
-rw-r--r--examples/widgets/statemachine/eventtransitions/eventtransitions.pro (renamed from examples/statemachine/eventtransitions/eventtransitions.pro)0
-rw-r--r--examples/widgets/statemachine/eventtransitions/main.cpp (renamed from examples/statemachine/eventtransitions/main.cpp)0
-rw-r--r--examples/widgets/statemachine/factorial/factorial.desktop (renamed from examples/statemachine/factorial/factorial.desktop)0
-rw-r--r--examples/widgets/statemachine/factorial/factorial.pro (renamed from examples/statemachine/factorial/factorial.pro)0
-rw-r--r--examples/widgets/statemachine/factorial/main.cpp (renamed from examples/statemachine/factorial/main.cpp)0
-rw-r--r--examples/widgets/statemachine/pingpong/main.cpp (renamed from examples/statemachine/pingpong/main.cpp)0
-rw-r--r--examples/widgets/statemachine/pingpong/pingpong.desktop (renamed from examples/statemachine/pingpong/pingpong.desktop)0
-rw-r--r--examples/widgets/statemachine/pingpong/pingpong.pro (renamed from examples/statemachine/pingpong/pingpong.pro)0
-rw-r--r--examples/widgets/statemachine/rogue/main.cpp (renamed from examples/statemachine/rogue/main.cpp)0
-rw-r--r--examples/widgets/statemachine/rogue/movementtransition.h (renamed from examples/statemachine/rogue/movementtransition.h)0
-rw-r--r--examples/widgets/statemachine/rogue/rogue.desktop (renamed from examples/statemachine/rogue/rogue.desktop)0
-rw-r--r--examples/widgets/statemachine/rogue/rogue.pro (renamed from examples/statemachine/rogue/rogue.pro)0
-rw-r--r--examples/widgets/statemachine/rogue/window.cpp (renamed from examples/statemachine/rogue/window.cpp)0
-rw-r--r--examples/widgets/statemachine/rogue/window.h (renamed from examples/statemachine/rogue/window.h)0
-rw-r--r--examples/widgets/statemachine/statemachine.pro (renamed from examples/statemachine/statemachine.pro)0
-rw-r--r--examples/widgets/statemachine/trafficlight/main.cpp (renamed from examples/statemachine/trafficlight/main.cpp)0
-rw-r--r--examples/widgets/statemachine/trafficlight/trafficlight.desktop (renamed from examples/statemachine/trafficlight/trafficlight.desktop)0
-rw-r--r--examples/widgets/statemachine/trafficlight/trafficlight.pro (renamed from examples/statemachine/trafficlight/trafficlight.pro)0
-rw-r--r--examples/widgets/statemachine/twowaybutton/main.cpp (renamed from examples/statemachine/twowaybutton/main.cpp)0
-rw-r--r--examples/widgets/statemachine/twowaybutton/twowaybutton.desktop (renamed from examples/statemachine/twowaybutton/twowaybutton.desktop)0
-rw-r--r--examples/widgets/statemachine/twowaybutton/twowaybutton.pro (renamed from examples/statemachine/twowaybutton/twowaybutton.pro)0
-rw-r--r--examples/widgets/widgets.pro52
-rw-r--r--examples/widgets/widgets/README (renamed from examples/widgets/README)0
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.cpp (renamed from examples/widgets/analogclock/analogclock.cpp)0
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.desktop (renamed from examples/widgets/analogclock/analogclock.desktop)0
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.h (renamed from examples/widgets/analogclock/analogclock.h)0
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.pro (renamed from examples/widgets/analogclock/analogclock.pro)0
-rw-r--r--examples/widgets/widgets/analogclock/main.cpp (renamed from examples/widgets/analogclock/main.cpp)0
-rw-r--r--examples/widgets/widgets/applicationicon/applicationicon.desktop (renamed from examples/widgets/applicationicon/applicationicon.desktop)0
-rw-r--r--examples/widgets/widgets/applicationicon/applicationicon.png (renamed from examples/widgets/applicationicon/applicationicon.png)bin4023 -> 4023 bytes
-rw-r--r--examples/widgets/widgets/applicationicon/applicationicon.pro (renamed from examples/widgets/applicationicon/applicationicon.pro)0
-rw-r--r--examples/widgets/widgets/applicationicon/applicationicon.svg (renamed from examples/widgets/applicationicon/applicationicon.svg)0
-rw-r--r--examples/widgets/widgets/applicationicon/main.cpp (renamed from examples/widgets/applicationicon/main.cpp)0
-rw-r--r--examples/widgets/widgets/calculator/button.cpp (renamed from examples/widgets/calculator/button.cpp)0
-rw-r--r--examples/widgets/widgets/calculator/button.h (renamed from examples/widgets/calculator/button.h)0
-rw-r--r--examples/widgets/widgets/calculator/calculator.cpp (renamed from examples/widgets/calculator/calculator.cpp)0
-rw-r--r--examples/widgets/widgets/calculator/calculator.desktop (renamed from examples/widgets/calculator/calculator.desktop)0
-rw-r--r--examples/widgets/widgets/calculator/calculator.h (renamed from examples/widgets/calculator/calculator.h)0
-rw-r--r--examples/widgets/widgets/calculator/calculator.pro (renamed from examples/widgets/calculator/calculator.pro)0
-rw-r--r--examples/widgets/widgets/calculator/main.cpp (renamed from examples/widgets/calculator/main.cpp)0
-rw-r--r--examples/widgets/widgets/calculator/releasenotes.txt (renamed from examples/widgets/calculator/releasenotes.txt)0
-rw-r--r--examples/widgets/widgets/calendarwidget/calendarwidget.desktop (renamed from examples/widgets/calendarwidget/calendarwidget.desktop)0
-rw-r--r--examples/widgets/widgets/calendarwidget/calendarwidget.pro (renamed from examples/widgets/calendarwidget/calendarwidget.pro)0
-rw-r--r--examples/widgets/widgets/calendarwidget/main.cpp (renamed from examples/widgets/calendarwidget/main.cpp)0
-rw-r--r--examples/widgets/widgets/calendarwidget/window.cpp (renamed from examples/widgets/calendarwidget/window.cpp)0
-rw-r--r--examples/widgets/widgets/calendarwidget/window.h (renamed from examples/widgets/calendarwidget/window.h)0
-rw-r--r--examples/widgets/widgets/charactermap/charactermap.desktop (renamed from examples/widgets/charactermap/charactermap.desktop)0
-rw-r--r--examples/widgets/widgets/charactermap/charactermap.pro (renamed from examples/widgets/charactermap/charactermap.pro)0
-rw-r--r--examples/widgets/widgets/charactermap/characterwidget.cpp (renamed from examples/widgets/charactermap/characterwidget.cpp)0
-rw-r--r--examples/widgets/widgets/charactermap/characterwidget.h (renamed from examples/widgets/charactermap/characterwidget.h)0
-rw-r--r--examples/widgets/widgets/charactermap/main.cpp (renamed from examples/widgets/charactermap/main.cpp)0
-rw-r--r--examples/widgets/widgets/charactermap/mainwindow.cpp (renamed from examples/widgets/charactermap/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/charactermap/mainwindow.h (renamed from examples/widgets/charactermap/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.cpp (renamed from examples/widgets/codeeditor/codeeditor.cpp)0
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.desktop (renamed from examples/widgets/codeeditor/codeeditor.desktop)0
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.h (renamed from examples/widgets/codeeditor/codeeditor.h)0
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.pro (renamed from examples/widgets/codeeditor/codeeditor.pro)0
-rw-r--r--examples/widgets/widgets/codeeditor/main.cpp (renamed from examples/widgets/codeeditor/main.cpp)0
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.cpp (renamed from examples/widgets/digitalclock/digitalclock.cpp)0
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.desktop (renamed from examples/widgets/digitalclock/digitalclock.desktop)0
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.h (renamed from examples/widgets/digitalclock/digitalclock.h)0
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.pro (renamed from examples/widgets/digitalclock/digitalclock.pro)0
-rw-r--r--examples/widgets/widgets/digitalclock/main.cpp (renamed from examples/widgets/digitalclock/main.cpp)0
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.cpp (renamed from examples/widgets/elidedlabel/elidedlabel.cpp)0
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.desktop (renamed from examples/widgets/elidedlabel/elidedlabel.desktop)0
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.h (renamed from examples/widgets/elidedlabel/elidedlabel.h)0
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.pro (renamed from examples/widgets/elidedlabel/elidedlabel.pro)0
-rw-r--r--examples/widgets/widgets/elidedlabel/main.cpp (renamed from examples/widgets/elidedlabel/main.cpp)0
-rw-r--r--examples/widgets/widgets/elidedlabel/testwidget.cpp (renamed from examples/widgets/elidedlabel/testwidget.cpp)0
-rw-r--r--examples/widgets/widgets/elidedlabel/testwidget.h (renamed from examples/widgets/elidedlabel/testwidget.h)0
-rw-r--r--examples/widgets/widgets/groupbox/groupbox.desktop (renamed from examples/widgets/groupbox/groupbox.desktop)0
-rw-r--r--examples/widgets/widgets/groupbox/groupbox.pro (renamed from examples/widgets/groupbox/groupbox.pro)0
-rw-r--r--examples/widgets/widgets/groupbox/main.cpp (renamed from examples/widgets/groupbox/main.cpp)0
-rw-r--r--examples/widgets/widgets/groupbox/window.cpp (renamed from examples/widgets/groupbox/window.cpp)0
-rw-r--r--examples/widgets/widgets/groupbox/window.h (renamed from examples/widgets/groupbox/window.h)0
-rw-r--r--examples/widgets/widgets/icons/iconpreviewarea.cpp (renamed from examples/widgets/icons/iconpreviewarea.cpp)0
-rw-r--r--examples/widgets/widgets/icons/iconpreviewarea.h (renamed from examples/widgets/icons/iconpreviewarea.h)0
-rw-r--r--examples/widgets/widgets/icons/icons.desktop (renamed from examples/widgets/icons/icons.desktop)0
-rw-r--r--examples/widgets/widgets/icons/icons.pro (renamed from examples/widgets/icons/icons.pro)0
-rw-r--r--examples/widgets/widgets/icons/iconsizespinbox.cpp (renamed from examples/widgets/icons/iconsizespinbox.cpp)0
-rw-r--r--examples/widgets/widgets/icons/iconsizespinbox.h (renamed from examples/widgets/icons/iconsizespinbox.h)0
-rw-r--r--examples/widgets/widgets/icons/imagedelegate.cpp (renamed from examples/widgets/icons/imagedelegate.cpp)0
-rw-r--r--examples/widgets/widgets/icons/imagedelegate.h (renamed from examples/widgets/icons/imagedelegate.h)0
-rw-r--r--examples/widgets/widgets/icons/images/designer.png (renamed from examples/widgets/icons/images/designer.png)bin4205 -> 4205 bytes
-rw-r--r--examples/widgets/widgets/icons/images/find_disabled.png (renamed from examples/widgets/icons/images/find_disabled.png)bin501 -> 501 bytes
-rw-r--r--examples/widgets/widgets/icons/images/find_normal.png (renamed from examples/widgets/icons/images/find_normal.png)bin838 -> 838 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_off_128x128.png (renamed from examples/widgets/icons/images/monkey_off_128x128.png)bin7045 -> 7045 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_off_16x16.png (renamed from examples/widgets/icons/images/monkey_off_16x16.png)bin683 -> 683 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_off_32x32.png (renamed from examples/widgets/icons/images/monkey_off_32x32.png)bin1609 -> 1609 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_off_64x64.png (renamed from examples/widgets/icons/images/monkey_off_64x64.png)bin3533 -> 3533 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_on_128x128.png (renamed from examples/widgets/icons/images/monkey_on_128x128.png)bin6909 -> 6909 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_on_16x16.png (renamed from examples/widgets/icons/images/monkey_on_16x16.png)bin681 -> 681 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_on_32x32.png (renamed from examples/widgets/icons/images/monkey_on_32x32.png)bin1577 -> 1577 bytes
-rw-r--r--examples/widgets/widgets/icons/images/monkey_on_64x64.png (renamed from examples/widgets/icons/images/monkey_on_64x64.png)bin3479 -> 3479 bytes
-rw-r--r--examples/widgets/widgets/icons/images/qt_extended_16x16.png (renamed from examples/widgets/icons/images/qt_extended_16x16.png)bin834 -> 834 bytes
-rw-r--r--examples/widgets/widgets/icons/images/qt_extended_32x32.png (renamed from examples/widgets/icons/images/qt_extended_32x32.png)bin1892 -> 1892 bytes
-rw-r--r--examples/widgets/widgets/icons/images/qt_extended_48x48.png (renamed from examples/widgets/icons/images/qt_extended_48x48.png)bin3672 -> 3672 bytes
-rw-r--r--examples/widgets/widgets/icons/main.cpp (renamed from examples/widgets/icons/main.cpp)0
-rw-r--r--examples/widgets/widgets/icons/mainwindow.cpp (renamed from examples/widgets/icons/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/icons/mainwindow.h (renamed from examples/widgets/icons/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.cpp (renamed from examples/widgets/imageviewer/imageviewer.cpp)0
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.desktop (renamed from examples/widgets/imageviewer/imageviewer.desktop)0
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.h (renamed from examples/widgets/imageviewer/imageviewer.h)0
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.pro (renamed from examples/widgets/imageviewer/imageviewer.pro)0
-rw-r--r--examples/widgets/widgets/imageviewer/main.cpp (renamed from examples/widgets/imageviewer/main.cpp)0
-rw-r--r--examples/widgets/widgets/lineedits/lineedits.desktop (renamed from examples/widgets/lineedits/lineedits.desktop)0
-rw-r--r--examples/widgets/widgets/lineedits/lineedits.pro (renamed from examples/widgets/lineedits/lineedits.pro)0
-rw-r--r--examples/widgets/widgets/lineedits/main.cpp (renamed from examples/widgets/lineedits/main.cpp)0
-rw-r--r--examples/widgets/widgets/lineedits/window.cpp (renamed from examples/widgets/lineedits/window.cpp)0
-rw-r--r--examples/widgets/widgets/lineedits/window.h (renamed from examples/widgets/lineedits/window.h)0
-rw-r--r--examples/widgets/widgets/mousebuttons/buttontester.cpp (renamed from examples/widgets/mousebuttons/buttontester.cpp)0
-rw-r--r--examples/widgets/widgets/mousebuttons/buttontester.h (renamed from examples/widgets/mousebuttons/buttontester.h)0
-rw-r--r--examples/widgets/widgets/mousebuttons/main.cpp (renamed from examples/widgets/mousebuttons/main.cpp)0
-rw-r--r--examples/widgets/widgets/mousebuttons/mousebuttons.pro (renamed from examples/widgets/mousebuttons/mousebuttons.pro)0
-rw-r--r--examples/widgets/widgets/movie/animation.gif (renamed from examples/widgets/movie/animation.gif)bin42629 -> 42629 bytes
-rw-r--r--examples/widgets/widgets/movie/main.cpp (renamed from examples/widgets/movie/main.cpp)0
-rw-r--r--examples/widgets/widgets/movie/movie.desktop (renamed from examples/widgets/movie/movie.desktop)0
-rw-r--r--examples/widgets/widgets/movie/movie.pro (renamed from examples/widgets/movie/movie.pro)0
-rw-r--r--examples/widgets/widgets/movie/movieplayer.cpp (renamed from examples/widgets/movie/movieplayer.cpp)0
-rw-r--r--examples/widgets/widgets/movie/movieplayer.h (renamed from examples/widgets/movie/movieplayer.h)0
-rw-r--r--examples/widgets/widgets/orientation/image_a.png (renamed from examples/widgets/orientation/image_a.png)bin1075 -> 1075 bytes
-rw-r--r--examples/widgets/widgets/orientation/image_b.png (renamed from examples/widgets/orientation/image_b.png)bin1020 -> 1020 bytes
-rw-r--r--examples/widgets/widgets/orientation/image_c.png (renamed from examples/widgets/orientation/image_c.png)bin1163 -> 1163 bytes
-rw-r--r--examples/widgets/widgets/orientation/images.qrc (renamed from examples/widgets/orientation/images.qrc)0
-rw-r--r--examples/widgets/widgets/orientation/landscape.ui (renamed from examples/widgets/orientation/landscape.ui)0
-rw-r--r--examples/widgets/widgets/orientation/main.cpp (renamed from examples/widgets/orientation/main.cpp)0
-rw-r--r--examples/widgets/widgets/orientation/mainwindow.cpp (renamed from examples/widgets/orientation/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/orientation/mainwindow.h (renamed from examples/widgets/orientation/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/orientation/orientation.desktop (renamed from examples/widgets/orientation/orientation.desktop)0
-rw-r--r--examples/widgets/widgets/orientation/orientation.pro (renamed from examples/widgets/orientation/orientation.pro)0
-rw-r--r--examples/widgets/widgets/orientation/portrait.ui (renamed from examples/widgets/orientation/portrait.ui)0
-rw-r--r--examples/widgets/widgets/scribble/main.cpp (renamed from examples/widgets/scribble/main.cpp)0
-rw-r--r--examples/widgets/widgets/scribble/mainwindow.cpp (renamed from examples/widgets/scribble/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/scribble/mainwindow.h (renamed from examples/widgets/scribble/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/scribble/scribble.desktop (renamed from examples/widgets/scribble/scribble.desktop)0
-rw-r--r--examples/widgets/widgets/scribble/scribble.pro (renamed from examples/widgets/scribble/scribble.pro)0
-rw-r--r--examples/widgets/widgets/scribble/scribblearea.cpp (renamed from examples/widgets/scribble/scribblearea.cpp)0
-rw-r--r--examples/widgets/widgets/scribble/scribblearea.h (renamed from examples/widgets/scribble/scribblearea.h)0
-rw-r--r--examples/widgets/widgets/shapedclock/main.cpp (renamed from examples/widgets/shapedclock/main.cpp)0
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.cpp (renamed from examples/widgets/shapedclock/shapedclock.cpp)0
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.desktop (renamed from examples/widgets/shapedclock/shapedclock.desktop)0
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.h (renamed from examples/widgets/shapedclock/shapedclock.h)0
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.pro (renamed from examples/widgets/shapedclock/shapedclock.pro)0
-rw-r--r--examples/widgets/widgets/sliders/main.cpp (renamed from examples/widgets/sliders/main.cpp)0
-rw-r--r--examples/widgets/widgets/sliders/sliders.desktop (renamed from examples/widgets/sliders/sliders.desktop)0
-rw-r--r--examples/widgets/widgets/sliders/sliders.pro (renamed from examples/widgets/sliders/sliders.pro)0
-rw-r--r--examples/widgets/widgets/sliders/slidersgroup.cpp (renamed from examples/widgets/sliders/slidersgroup.cpp)0
-rw-r--r--examples/widgets/widgets/sliders/slidersgroup.h (renamed from examples/widgets/sliders/slidersgroup.h)0
-rw-r--r--examples/widgets/widgets/sliders/window.cpp (renamed from examples/widgets/sliders/window.cpp)0
-rw-r--r--examples/widgets/widgets/sliders/window.h (renamed from examples/widgets/sliders/window.h)0
-rw-r--r--examples/widgets/widgets/softkeys/main.cpp (renamed from examples/widgets/softkeys/main.cpp)0
-rw-r--r--examples/widgets/widgets/softkeys/softkeys.cpp (renamed from examples/widgets/softkeys/softkeys.cpp)0
-rw-r--r--examples/widgets/widgets/softkeys/softkeys.desktop (renamed from examples/widgets/softkeys/softkeys.desktop)0
-rw-r--r--examples/widgets/widgets/softkeys/softkeys.h (renamed from examples/widgets/softkeys/softkeys.h)0
-rw-r--r--examples/widgets/widgets/softkeys/softkeys.pro (renamed from examples/widgets/softkeys/softkeys.pro)0
-rw-r--r--examples/widgets/widgets/spinboxes/main.cpp (renamed from examples/widgets/spinboxes/main.cpp)0
-rw-r--r--examples/widgets/widgets/spinboxes/spinboxes.desktop (renamed from examples/widgets/spinboxes/spinboxes.desktop)0
-rw-r--r--examples/widgets/widgets/spinboxes/spinboxes.pro (renamed from examples/widgets/spinboxes/spinboxes.pro)0
-rw-r--r--examples/widgets/widgets/spinboxes/window.cpp (renamed from examples/widgets/spinboxes/window.cpp)0
-rw-r--r--examples/widgets/widgets/spinboxes/window.h (renamed from examples/widgets/spinboxes/window.h)0
-rw-r--r--examples/widgets/widgets/styles/images/woodbackground.png (renamed from examples/widgets/styles/images/woodbackground.png)bin7691 -> 7691 bytes
-rw-r--r--examples/widgets/widgets/styles/images/woodbutton.png (renamed from examples/widgets/styles/images/woodbutton.png)bin7689 -> 7689 bytes
-rw-r--r--examples/widgets/widgets/styles/main.cpp (renamed from examples/widgets/styles/main.cpp)0
-rw-r--r--examples/widgets/widgets/styles/norwegianwoodstyle.cpp (renamed from examples/widgets/styles/norwegianwoodstyle.cpp)0
-rw-r--r--examples/widgets/widgets/styles/norwegianwoodstyle.h (renamed from examples/widgets/styles/norwegianwoodstyle.h)0
-rw-r--r--examples/widgets/widgets/styles/styles.desktop (renamed from examples/widgets/styles/styles.desktop)0
-rw-r--r--examples/widgets/widgets/styles/styles.pro (renamed from examples/widgets/styles/styles.pro)0
-rw-r--r--examples/widgets/widgets/styles/styles.qrc (renamed from examples/widgets/styles/styles.qrc)0
-rw-r--r--examples/widgets/widgets/styles/widgetgallery.cpp (renamed from examples/widgets/styles/widgetgallery.cpp)0
-rw-r--r--examples/widgets/widgets/styles/widgetgallery.h (renamed from examples/widgets/styles/widgetgallery.h)0
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_checked.png (renamed from examples/widgets/stylesheet/images/checkbox_checked.png)bin263 -> 263 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_checked_hover.png (renamed from examples/widgets/stylesheet/images/checkbox_checked_hover.png)bin266 -> 266 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_checked_pressed.png (renamed from examples/widgets/stylesheet/images/checkbox_checked_pressed.png)bin425 -> 425 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_unchecked.png (renamed from examples/widgets/stylesheet/images/checkbox_unchecked.png)bin159 -> 159 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_unchecked_hover.png (renamed from examples/widgets/stylesheet/images/checkbox_unchecked_hover.png)bin159 -> 159 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/checkbox_unchecked_pressed.png (renamed from examples/widgets/stylesheet/images/checkbox_unchecked_pressed.png)bin320 -> 320 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/down_arrow.png (renamed from examples/widgets/stylesheet/images/down_arrow.png)bin175 -> 175 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/down_arrow_disabled.png (renamed from examples/widgets/stylesheet/images/down_arrow_disabled.png)bin174 -> 174 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/frame.png (renamed from examples/widgets/stylesheet/images/frame.png)bin253 -> 253 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/pagefold.png (renamed from examples/widgets/stylesheet/images/pagefold.png)bin1545 -> 1545 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/pushbutton.png (renamed from examples/widgets/stylesheet/images/pushbutton.png)bin533 -> 533 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/pushbutton_hover.png (renamed from examples/widgets/stylesheet/images/pushbutton_hover.png)bin525 -> 525 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/pushbutton_pressed.png (renamed from examples/widgets/stylesheet/images/pushbutton_pressed.png)bin513 -> 513 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_checked.png (renamed from examples/widgets/stylesheet/images/radiobutton_checked.png)bin355 -> 355 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_checked_hover.png (renamed from examples/widgets/stylesheet/images/radiobutton_checked_hover.png)bin532 -> 532 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_checked_pressed.png (renamed from examples/widgets/stylesheet/images/radiobutton_checked_pressed.png)bin599 -> 599 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_unchecked.png (renamed from examples/widgets/stylesheet/images/radiobutton_unchecked.png)bin240 -> 240 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_hover.png (renamed from examples/widgets/stylesheet/images/radiobutton_unchecked_hover.png)bin492 -> 492 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_pressed.png (renamed from examples/widgets/stylesheet/images/radiobutton_unchecked_pressed.png)bin556 -> 556 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/sizegrip.png (renamed from examples/widgets/stylesheet/images/sizegrip.png)bin129 -> 129 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spindown.png (renamed from examples/widgets/stylesheet/images/spindown.png)bin276 -> 276 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spindown_hover.png (renamed from examples/widgets/stylesheet/images/spindown_hover.png)bin268 -> 268 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spindown_off.png (renamed from examples/widgets/stylesheet/images/spindown_off.png)bin249 -> 249 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spindown_pressed.png (renamed from examples/widgets/stylesheet/images/spindown_pressed.png)bin264 -> 264 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spinup.png (renamed from examples/widgets/stylesheet/images/spinup.png)bin283 -> 283 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spinup_hover.png (renamed from examples/widgets/stylesheet/images/spinup_hover.png)bin277 -> 277 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spinup_off.png (renamed from examples/widgets/stylesheet/images/spinup_off.png)bin274 -> 274 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/spinup_pressed.png (renamed from examples/widgets/stylesheet/images/spinup_pressed.png)bin277 -> 277 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/up_arrow.png (renamed from examples/widgets/stylesheet/images/up_arrow.png)bin197 -> 197 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/images/up_arrow_disabled.png (renamed from examples/widgets/stylesheet/images/up_arrow_disabled.png)bin172 -> 172 bytes
-rw-r--r--examples/widgets/widgets/stylesheet/layouts/default.ui (renamed from examples/widgets/stylesheet/layouts/default.ui)0
-rw-r--r--examples/widgets/widgets/stylesheet/layouts/pagefold.ui (renamed from examples/widgets/stylesheet/layouts/pagefold.ui)0
-rw-r--r--examples/widgets/widgets/stylesheet/main.cpp (renamed from examples/widgets/stylesheet/main.cpp)0
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.cpp (renamed from examples/widgets/stylesheet/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.h (renamed from examples/widgets/stylesheet/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.ui (renamed from examples/widgets/stylesheet/mainwindow.ui)0
-rw-r--r--examples/widgets/widgets/stylesheet/qss/coffee.qss (renamed from examples/widgets/stylesheet/qss/coffee.qss)0
-rw-r--r--examples/widgets/widgets/stylesheet/qss/default.qss (renamed from examples/widgets/stylesheet/qss/default.qss)0
-rw-r--r--examples/widgets/widgets/stylesheet/qss/pagefold.qss (renamed from examples/widgets/stylesheet/qss/pagefold.qss)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheet.desktop (renamed from examples/widgets/stylesheet/stylesheet.desktop)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheet.pro (renamed from examples/widgets/stylesheet/stylesheet.pro)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheet.qrc (renamed from examples/widgets/stylesheet/stylesheet.qrc)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheeteditor.cpp (renamed from examples/widgets/stylesheet/stylesheeteditor.cpp)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheeteditor.h (renamed from examples/widgets/stylesheet/stylesheeteditor.h)0
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheeteditor.ui (renamed from examples/widgets/stylesheet/stylesheeteditor.ui)0
-rw-r--r--examples/widgets/widgets/tablet/main.cpp (renamed from examples/widgets/tablet/main.cpp)0
-rw-r--r--examples/widgets/widgets/tablet/mainwindow.cpp (renamed from examples/widgets/tablet/mainwindow.cpp)0
-rw-r--r--examples/widgets/widgets/tablet/mainwindow.h (renamed from examples/widgets/tablet/mainwindow.h)0
-rw-r--r--examples/widgets/widgets/tablet/tablet.desktop (renamed from examples/widgets/tablet/tablet.desktop)0
-rw-r--r--examples/widgets/widgets/tablet/tablet.pro (renamed from examples/widgets/tablet/tablet.pro)0
-rw-r--r--examples/widgets/widgets/tablet/tabletapplication.cpp (renamed from examples/widgets/tablet/tabletapplication.cpp)0
-rw-r--r--examples/widgets/widgets/tablet/tabletapplication.h (renamed from examples/widgets/tablet/tabletapplication.h)0
-rw-r--r--examples/widgets/widgets/tablet/tabletcanvas.cpp (renamed from examples/widgets/tablet/tabletcanvas.cpp)0
-rw-r--r--examples/widgets/widgets/tablet/tabletcanvas.h (renamed from examples/widgets/tablet/tabletcanvas.h)0
-rw-r--r--examples/widgets/widgets/tetrix/main.cpp (renamed from examples/widgets/tetrix/main.cpp)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrix.desktop (renamed from examples/widgets/tetrix/tetrix.desktop)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrix.pro (renamed from examples/widgets/tetrix/tetrix.pro)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixboard.cpp (renamed from examples/widgets/tetrix/tetrixboard.cpp)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixboard.h (renamed from examples/widgets/tetrix/tetrixboard.h)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixpiece.cpp (renamed from examples/widgets/tetrix/tetrixpiece.cpp)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixpiece.h (renamed from examples/widgets/tetrix/tetrixpiece.h)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixwindow.cpp (renamed from examples/widgets/tetrix/tetrixwindow.cpp)0
-rw-r--r--examples/widgets/widgets/tetrix/tetrixwindow.h (renamed from examples/widgets/tetrix/tetrixwindow.h)0
-rw-r--r--examples/widgets/widgets/tooltips/images/circle.png (renamed from examples/widgets/tooltips/images/circle.png)bin165 -> 165 bytes
-rw-r--r--examples/widgets/widgets/tooltips/images/square.png (renamed from examples/widgets/tooltips/images/square.png)bin94 -> 94 bytes
-rw-r--r--examples/widgets/widgets/tooltips/images/triangle.png (renamed from examples/widgets/tooltips/images/triangle.png)bin170 -> 170 bytes
-rw-r--r--examples/widgets/widgets/tooltips/main.cpp (renamed from examples/widgets/tooltips/main.cpp)0
-rw-r--r--examples/widgets/widgets/tooltips/shapeitem.cpp (renamed from examples/widgets/tooltips/shapeitem.cpp)0
-rw-r--r--examples/widgets/widgets/tooltips/shapeitem.h (renamed from examples/widgets/tooltips/shapeitem.h)0
-rw-r--r--examples/widgets/widgets/tooltips/sortingbox.cpp (renamed from examples/widgets/tooltips/sortingbox.cpp)0
-rw-r--r--examples/widgets/widgets/tooltips/sortingbox.h (renamed from examples/widgets/tooltips/sortingbox.h)0
-rw-r--r--examples/widgets/widgets/tooltips/tooltips.desktop (renamed from examples/widgets/tooltips/tooltips.desktop)0
-rw-r--r--examples/widgets/widgets/tooltips/tooltips.pro (renamed from examples/widgets/tooltips/tooltips.pro)0
-rw-r--r--examples/widgets/widgets/tooltips/tooltips.qrc (renamed from examples/widgets/tooltips/tooltips.qrc)0
-rw-r--r--examples/widgets/widgets/validators/ledoff.png (renamed from examples/widgets/validators/ledoff.png)bin562 -> 562 bytes
-rw-r--r--examples/widgets/widgets/validators/ledon.png (renamed from examples/widgets/validators/ledon.png)bin486 -> 486 bytes
-rw-r--r--examples/widgets/widgets/validators/ledwidget.cpp (renamed from examples/widgets/validators/ledwidget.cpp)0
-rw-r--r--examples/widgets/widgets/validators/ledwidget.h (renamed from examples/widgets/validators/ledwidget.h)0
-rw-r--r--examples/widgets/widgets/validators/localeselector.cpp (renamed from examples/widgets/validators/localeselector.cpp)0
-rw-r--r--examples/widgets/widgets/validators/localeselector.h (renamed from examples/widgets/validators/localeselector.h)0
-rw-r--r--examples/widgets/widgets/validators/main.cpp (renamed from examples/widgets/validators/main.cpp)0
-rw-r--r--examples/widgets/widgets/validators/validators.desktop (renamed from examples/widgets/validators/validators.desktop)0
-rw-r--r--examples/widgets/widgets/validators/validators.pro (renamed from examples/widgets/validators/validators.pro)0
-rw-r--r--examples/widgets/widgets/validators/validators.qrc (renamed from examples/widgets/validators/validators.qrc)0
-rw-r--r--examples/widgets/widgets/validators/validators.ui (renamed from examples/widgets/validators/validators.ui)0
-rw-r--r--examples/widgets/widgets/widgets.pro34
-rw-r--r--examples/widgets/widgets/wiggly/dialog.cpp (renamed from examples/widgets/wiggly/dialog.cpp)0
-rw-r--r--examples/widgets/widgets/wiggly/dialog.h (renamed from examples/widgets/wiggly/dialog.h)0
-rw-r--r--examples/widgets/widgets/wiggly/main.cpp (renamed from examples/widgets/wiggly/main.cpp)0
-rw-r--r--examples/widgets/widgets/wiggly/wiggly.desktop (renamed from examples/widgets/wiggly/wiggly.desktop)0
-rw-r--r--examples/widgets/widgets/wiggly/wiggly.pro (renamed from examples/widgets/wiggly/wiggly.pro)0
-rw-r--r--examples/widgets/widgets/wiggly/wigglywidget.cpp (renamed from examples/widgets/wiggly/wigglywidget.cpp)0
-rw-r--r--examples/widgets/widgets/wiggly/wigglywidget.h (renamed from examples/widgets/wiggly/wigglywidget.h)0
-rw-r--r--examples/widgets/widgets/windowflags/controllerwindow.cpp (renamed from examples/widgets/windowflags/controllerwindow.cpp)0
-rw-r--r--examples/widgets/widgets/windowflags/controllerwindow.h (renamed from examples/widgets/windowflags/controllerwindow.h)0
-rw-r--r--examples/widgets/widgets/windowflags/main.cpp (renamed from examples/widgets/windowflags/main.cpp)0
-rw-r--r--examples/widgets/widgets/windowflags/previewwindow.cpp (renamed from examples/widgets/windowflags/previewwindow.cpp)0
-rw-r--r--examples/widgets/widgets/windowflags/previewwindow.h (renamed from examples/widgets/windowflags/previewwindow.h)0
-rw-r--r--examples/widgets/widgets/windowflags/windowflags.desktop (renamed from examples/widgets/windowflags/windowflags.desktop)0
-rw-r--r--examples/widgets/widgets/windowflags/windowflags.pro (renamed from examples/widgets/windowflags/windowflags.pro)0
-rw-r--r--src/widgets/doc/qtwidgets.qdocconf9
1302 files changed, 1413 insertions, 1567 deletions
diff --git a/doc/src/examples/maemovibration.qdoc b/doc/src/examples/maemovibration.qdoc
deleted file mode 100644
index 78bb7f53344..00000000000
--- a/doc/src/examples/maemovibration.qdoc
+++ /dev/null
@@ -1,164 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** GNU Free Documentation License
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms
-** and conditions contained in a signed written agreement between you
-** and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example widgets/maemovibration
- \group all-examples
- \title Maemo Vibration Example
-
- The Maemo Vibration example shows how to tell the Maemo Mode Control Entity
- (MCE) to vibrate a maemo device.
-
- The MCE is a system service on Maemo that, among other things, provides an
- D-Bus interface to trigger vibrations. The vibrations are specified as
- patterns and are defined in a system configuration file.
-
- The example program reads the configuration file to look for possible
- vibration patterns and display a button for each. Pressing a button will
- make the device vibrate accordingly, until the application closes, or
- another pattern is started.
-
- \image maemovibration-example.png Screenshot of the Maemo Vibration Example
-
- The code makes use of two classes:
-
- \list
- \li \c MceVibrator connects to the MCE service and can start a certain
- vibrator pattern. It also is responsible to parse the configuration
- file.
-
- \li \c ButtonWidget provides a button for each pattern. Pressing the button
- activates the pattern in question.
- \endlist
-
-
- \section1 MceVibrator Class Definition
-
- \snippet examples/widgets/maemovibration/mcevibrator.h 0
-
- The \c MceVibrator class inherits from QObject and provides a specialized
- and Qt friendly interface to the MCE vibration facilty. The slot \c vibrate()
- can be called to make the device vibrate according to a specific pattern
- name. We will connect it to a signal of a \c ButtonWidget object later. The
- static method \c ParsePatternNames() can be called to find out which patterns
- are available to us.
-
- \list
- \li \c mceInterface is our D-Bus handle to the MCE service. We use it to
- invoke methods on the MCE request object.
-
- \li \c lastPatternName contains the pattern that was activated last time. We
- have to keep track of this, because the last pattern has to be
- deactivated before activating a new pattern.
- \endlist
-
-
- \section1 MceVibrator Class Implementation
-
- To connect to the service, we initialize the D-Bus interface handle. The
- system header \c "mce/dbus-names.h" contains definitions of the D-Bus
- service name and request object path and interface. These are passed to the
- constructor of the handle, and Qt will automatically establish a connection
- to it, if it is possible.
-
- The MCE expects us to first enable the vibrator before we can use it. This
- is done with the call to the \c MCE_ENABLE_VIBRATOR D-Bus method.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 0
-
- From now on we can activate vibration patterns. Each time a vibration
- pattern is activated, the last pattern has to be deactivated first. In the
- vibrate slot we use the MCE interface to call the activation method.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 1
-
- The calls to the private method deactivate simply makes sure to deactivate
- the last pattern used, if there was one.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 2
-
- Calling either the activate or deactivate MCE D-Bus method with invalid
- pattern names are ignored.
-
- Finally, the destructor disables the vibrator. When the destructor of the
- MCE interface handle is called, the connection is also closed.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 3
-
- The MCE configuration file contains options for many different things. We
- are only interested in one line that contains the vibration patterns. It
- has the following format:
-
-
- \code
- VibratorPatterns=semicolon;separated;list;of;values
- \endcode
-
- The static method \c ParsePatternNames looks for this line and returns a
- QStringList containing the values, which are the pattern names we can use.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 4
-
- The helper function \c checkError() saves us some code duplication. None of the
- called methods return anything of use to us, so we're only interested in
- getting error messages for debugging.
-
- \snippet examples/widgets/maemovibration/mcevibrator.cpp 5
-
-
- \section1 ButtonWidget Class Definition
-
- \snippet examples/widgets/maemovibration/buttonwidget.h 0
-
- The \c ButtonWidget class inherits from QWidget and provides the main user
- interface for the application. It creates a grid of buttons, one for each
- string in the stringlist passed to the constructor. Pressing a button emits
- the \c clicked() signal, where the string is the text of the button that
- was pressed.
-
- This class is taken from the QSignalMapper documentation. The only change
- is the number of columns in the grid from three to two, to make the button
- labels fit.
-
-
- \section1 ButtonWidget Class Implementation
-
- \snippet examples/widgets/maemovibration/buttonwidget.cpp 0
-
-
- \section1 \c main() Function
-
- The main function begins with looking up the patterns available to us.
-
- \snippet examples/widgets/maemovibration/main.cpp 0
-
- Then we create one instance of both classes, and connects the
- \c ButtonWidget's clicked signal to the \c MceVibrator's \c vibrate() slot.
- This works, since the button texts are the same as the pattern names.
-
- \snippet examples/widgets/maemovibration/main.cpp 1
-*/
diff --git a/examples/examples.pro b/examples/examples.pro
index 9cf603da474..29eda7dff50 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -3,43 +3,26 @@ CONFIG += no_docs_target
SUBDIRS = \
network \
- statemachine \
threads \
xml \
qpa
!contains(QT_CONFIG, no-widgets) {
- SUBDIRS += \
- animation \
- desktop \
- dialogs \
- draganddrop \
- effects \
- graphicsview \
- ipc \
- layouts \
- linguist \
- mainwindows \
- painting \
- richtext \
- scroller \
- sql \
- tools \
- tutorials \
- touch \
- gestures
-
- !contains(QT_CONFIG, no-widgets) {
- SUBDIRS += widgets \
- itemviews
- }
+ SUBDIRS += widgets \
+ ipc \
+ linguist \
+ sql \
+ tools \
+ tutorials \
+ touch \
+ gestures
}
+
wince*|embedded|x11:!contains(QT_CONFIG, no-gui): SUBDIRS += embedded
contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):!contains(QT_CONFIG, no-widgets):SUBDIRS += qtestlib
contains(QT_CONFIG, opengl):!contains(QT_CONFIG, no-widgets):SUBDIRS += opengl
contains(QT_CONFIG, dbus): SUBDIRS += dbus
-contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
contains(QT_CONFIG, concurrent): SUBDIRS += qtconcurrent
# install
diff --git a/examples/animation/README b/examples/widgets/animation/README
index e723a287229..e723a287229 100644
--- a/examples/animation/README
+++ b/examples/widgets/animation/README
diff --git a/examples/animation/animatedtiles/animatedtiles.desktop b/examples/widgets/animation/animatedtiles/animatedtiles.desktop
index 97e646fdf89..97e646fdf89 100644
--- a/examples/animation/animatedtiles/animatedtiles.desktop
+++ b/examples/widgets/animation/animatedtiles/animatedtiles.desktop
diff --git a/examples/animation/animatedtiles/animatedtiles.pro b/examples/widgets/animation/animatedtiles/animatedtiles.pro
index 1bba99449cb..1bba99449cb 100644
--- a/examples/animation/animatedtiles/animatedtiles.pro
+++ b/examples/widgets/animation/animatedtiles/animatedtiles.pro
diff --git a/examples/animation/animatedtiles/animatedtiles.qrc b/examples/widgets/animation/animatedtiles/animatedtiles.qrc
index c43a9797239..c43a9797239 100644
--- a/examples/animation/animatedtiles/animatedtiles.qrc
+++ b/examples/widgets/animation/animatedtiles/animatedtiles.qrc
diff --git a/examples/animation/animatedtiles/images/Time-For-Lunch-2.jpg b/examples/widgets/animation/animatedtiles/images/Time-For-Lunch-2.jpg
index c57a555490f..c57a555490f 100644
--- a/examples/animation/animatedtiles/images/Time-For-Lunch-2.jpg
+++ b/examples/widgets/animation/animatedtiles/images/Time-For-Lunch-2.jpg
Binary files differ
diff --git a/examples/animation/animatedtiles/images/centered.png b/examples/widgets/animation/animatedtiles/images/centered.png
index e416156a0ed..e416156a0ed 100644
--- a/examples/animation/animatedtiles/images/centered.png
+++ b/examples/widgets/animation/animatedtiles/images/centered.png
Binary files differ
diff --git a/examples/animation/animatedtiles/images/ellipse.png b/examples/widgets/animation/animatedtiles/images/ellipse.png
index 2c3ba881c5b..2c3ba881c5b 100644
--- a/examples/animation/animatedtiles/images/ellipse.png
+++ b/examples/widgets/animation/animatedtiles/images/ellipse.png
Binary files differ
diff --git a/examples/animation/animatedtiles/images/figure8.png b/examples/widgets/animation/animatedtiles/images/figure8.png
index 6b058041c4b..6b058041c4b 100644
--- a/examples/animation/animatedtiles/images/figure8.png
+++ b/examples/widgets/animation/animatedtiles/images/figure8.png
Binary files differ
diff --git a/examples/animation/animatedtiles/images/kinetic.png b/examples/widgets/animation/animatedtiles/images/kinetic.png
index 55cfa5515f5..55cfa5515f5 100644
--- a/examples/animation/animatedtiles/images/kinetic.png
+++ b/examples/widgets/animation/animatedtiles/images/kinetic.png
Binary files differ
diff --git a/examples/animation/animatedtiles/images/random.png b/examples/widgets/animation/animatedtiles/images/random.png
index 415d96f8561..415d96f8561 100644
--- a/examples/animation/animatedtiles/images/random.png
+++ b/examples/widgets/animation/animatedtiles/images/random.png
Binary files differ
diff --git a/examples/animation/animatedtiles/images/tile.png b/examples/widgets/animation/animatedtiles/images/tile.png
index c8f39d8d409..c8f39d8d409 100644
--- a/examples/animation/animatedtiles/images/tile.png
+++ b/examples/widgets/animation/animatedtiles/images/tile.png
Binary files differ
diff --git a/examples/animation/animatedtiles/main.cpp b/examples/widgets/animation/animatedtiles/main.cpp
index 50bd33860ed..50bd33860ed 100644
--- a/examples/animation/animatedtiles/main.cpp
+++ b/examples/widgets/animation/animatedtiles/main.cpp
diff --git a/examples/animation/animation.pro b/examples/widgets/animation/animation.pro
index b17aa0e0fe5..b17aa0e0fe5 100644
--- a/examples/animation/animation.pro
+++ b/examples/widgets/animation/animation.pro
diff --git a/examples/animation/appchooser/accessories-dictionary.png b/examples/widgets/animation/appchooser/accessories-dictionary.png
index e9bd55d9181..e9bd55d9181 100644
--- a/examples/animation/appchooser/accessories-dictionary.png
+++ b/examples/widgets/animation/appchooser/accessories-dictionary.png
Binary files differ
diff --git a/examples/animation/appchooser/akregator.png b/examples/widgets/animation/appchooser/akregator.png
index a086f45ab67..a086f45ab67 100644
--- a/examples/animation/appchooser/akregator.png
+++ b/examples/widgets/animation/appchooser/akregator.png
Binary files differ
diff --git a/examples/animation/appchooser/appchooser.desktop b/examples/widgets/animation/appchooser/appchooser.desktop
index 8e413e96c20..8e413e96c20 100644
--- a/examples/animation/appchooser/appchooser.desktop
+++ b/examples/widgets/animation/appchooser/appchooser.desktop
diff --git a/examples/animation/appchooser/appchooser.pro b/examples/widgets/animation/appchooser/appchooser.pro
index 158a0eca9f4..158a0eca9f4 100644
--- a/examples/animation/appchooser/appchooser.pro
+++ b/examples/widgets/animation/appchooser/appchooser.pro
diff --git a/examples/animation/appchooser/appchooser.qrc b/examples/widgets/animation/appchooser/appchooser.qrc
index 28a3e1c4c1a..28a3e1c4c1a 100644
--- a/examples/animation/appchooser/appchooser.qrc
+++ b/examples/widgets/animation/appchooser/appchooser.qrc
diff --git a/examples/animation/appchooser/digikam.png b/examples/widgets/animation/appchooser/digikam.png
index 9de9fb2f803..9de9fb2f803 100644
--- a/examples/animation/appchooser/digikam.png
+++ b/examples/widgets/animation/appchooser/digikam.png
Binary files differ
diff --git a/examples/animation/appchooser/k3b.png b/examples/widgets/animation/appchooser/k3b.png
index bbcafcfba1f..bbcafcfba1f 100644
--- a/examples/animation/appchooser/k3b.png
+++ b/examples/widgets/animation/appchooser/k3b.png
Binary files differ
diff --git a/examples/animation/appchooser/main.cpp b/examples/widgets/animation/appchooser/main.cpp
index c8e60c06413..c8e60c06413 100644
--- a/examples/animation/appchooser/main.cpp
+++ b/examples/widgets/animation/appchooser/main.cpp
diff --git a/examples/animation/easing/animation.h b/examples/widgets/animation/easing/animation.h
index 35cbed4555e..35cbed4555e 100644
--- a/examples/animation/easing/animation.h
+++ b/examples/widgets/animation/easing/animation.h
diff --git a/examples/animation/easing/easing.desktop b/examples/widgets/animation/easing/easing.desktop
index 56d122217a2..56d122217a2 100644
--- a/examples/animation/easing/easing.desktop
+++ b/examples/widgets/animation/easing/easing.desktop
diff --git a/examples/animation/easing/easing.pro b/examples/widgets/animation/easing/easing.pro
index 155d17d9b97..155d17d9b97 100644
--- a/examples/animation/easing/easing.pro
+++ b/examples/widgets/animation/easing/easing.pro
diff --git a/examples/animation/easing/easing.qrc b/examples/widgets/animation/easing/easing.qrc
index 7e112d3a9d6..7e112d3a9d6 100644
--- a/examples/animation/easing/easing.qrc
+++ b/examples/widgets/animation/easing/easing.qrc
diff --git a/examples/animation/easing/form.ui b/examples/widgets/animation/easing/form.ui
index 364aebeda64..364aebeda64 100644
--- a/examples/animation/easing/form.ui
+++ b/examples/widgets/animation/easing/form.ui
diff --git a/examples/animation/easing/images/qt-logo.png b/examples/widgets/animation/easing/images/qt-logo.png
index 14ddf2a0289..14ddf2a0289 100644
--- a/examples/animation/easing/images/qt-logo.png
+++ b/examples/widgets/animation/easing/images/qt-logo.png
Binary files differ
diff --git a/examples/animation/easing/main.cpp b/examples/widgets/animation/easing/main.cpp
index 05d4014fc26..05d4014fc26 100644
--- a/examples/animation/easing/main.cpp
+++ b/examples/widgets/animation/easing/main.cpp
diff --git a/examples/animation/easing/window.cpp b/examples/widgets/animation/easing/window.cpp
index 33468db59ca..33468db59ca 100644
--- a/examples/animation/easing/window.cpp
+++ b/examples/widgets/animation/easing/window.cpp
diff --git a/examples/animation/easing/window.h b/examples/widgets/animation/easing/window.h
index bf5014c0ccf..bf5014c0ccf 100644
--- a/examples/animation/easing/window.h
+++ b/examples/widgets/animation/easing/window.h
diff --git a/examples/animation/moveblocks/main.cpp b/examples/widgets/animation/moveblocks/main.cpp
index d807bb63d91..d807bb63d91 100644
--- a/examples/animation/moveblocks/main.cpp
+++ b/examples/widgets/animation/moveblocks/main.cpp
diff --git a/examples/animation/moveblocks/moveblocks.desktop b/examples/widgets/animation/moveblocks/moveblocks.desktop
index 4100f448dfb..4100f448dfb 100644
--- a/examples/animation/moveblocks/moveblocks.desktop
+++ b/examples/widgets/animation/moveblocks/moveblocks.desktop
diff --git a/examples/animation/moveblocks/moveblocks.pro b/examples/widgets/animation/moveblocks/moveblocks.pro
index 7c242e31e6d..7c242e31e6d 100644
--- a/examples/animation/moveblocks/moveblocks.pro
+++ b/examples/widgets/animation/moveblocks/moveblocks.pro
diff --git a/examples/animation/states/accessories-dictionary.png b/examples/widgets/animation/states/accessories-dictionary.png
index e9bd55d9181..e9bd55d9181 100644
--- a/examples/animation/states/accessories-dictionary.png
+++ b/examples/widgets/animation/states/accessories-dictionary.png
Binary files differ
diff --git a/examples/animation/states/akregator.png b/examples/widgets/animation/states/akregator.png
index a086f45ab67..a086f45ab67 100644
--- a/examples/animation/states/akregator.png
+++ b/examples/widgets/animation/states/akregator.png
Binary files differ
diff --git a/examples/animation/states/digikam.png b/examples/widgets/animation/states/digikam.png
index 9de9fb2f803..9de9fb2f803 100644
--- a/examples/animation/states/digikam.png
+++ b/examples/widgets/animation/states/digikam.png
Binary files differ
diff --git a/examples/animation/states/help-browser.png b/examples/widgets/animation/states/help-browser.png
index db92faa4e76..db92faa4e76 100644
--- a/examples/animation/states/help-browser.png
+++ b/examples/widgets/animation/states/help-browser.png
Binary files differ
diff --git a/examples/animation/states/k3b.png b/examples/widgets/animation/states/k3b.png
index bbcafcfba1f..bbcafcfba1f 100644
--- a/examples/animation/states/k3b.png
+++ b/examples/widgets/animation/states/k3b.png
Binary files differ
diff --git a/examples/animation/states/kchart.png b/examples/widgets/animation/states/kchart.png
index 1dd115be874..1dd115be874 100644
--- a/examples/animation/states/kchart.png
+++ b/examples/widgets/animation/states/kchart.png
Binary files differ
diff --git a/examples/animation/states/main.cpp b/examples/widgets/animation/states/main.cpp
index faa97ccbd01..faa97ccbd01 100644
--- a/examples/animation/states/main.cpp
+++ b/examples/widgets/animation/states/main.cpp
diff --git a/examples/animation/states/states.desktop b/examples/widgets/animation/states/states.desktop
index 8429979f23b..8429979f23b 100644
--- a/examples/animation/states/states.desktop
+++ b/examples/widgets/animation/states/states.desktop
diff --git a/examples/animation/states/states.pro b/examples/widgets/animation/states/states.pro
index adf0e8d58c6..adf0e8d58c6 100644
--- a/examples/animation/states/states.pro
+++ b/examples/widgets/animation/states/states.pro
diff --git a/examples/animation/states/states.qrc b/examples/widgets/animation/states/states.qrc
index 60ab3f7a605..60ab3f7a605 100644
--- a/examples/animation/states/states.qrc
+++ b/examples/widgets/animation/states/states.qrc
diff --git a/examples/animation/stickman/animation.cpp b/examples/widgets/animation/stickman/animation.cpp
index afdfae6eca7..afdfae6eca7 100644
--- a/examples/animation/stickman/animation.cpp
+++ b/examples/widgets/animation/stickman/animation.cpp
diff --git a/examples/animation/stickman/animation.h b/examples/widgets/animation/stickman/animation.h
index d5dab530e6f..d5dab530e6f 100644
--- a/examples/animation/stickman/animation.h
+++ b/examples/widgets/animation/stickman/animation.h
diff --git a/examples/animation/stickman/animations/chilling.bin b/examples/widgets/animation/stickman/animations/chilling.bin
index a81fc7a18c7..a81fc7a18c7 100644
--- a/examples/animation/stickman/animations/chilling.bin
+++ b/examples/widgets/animation/stickman/animations/chilling.bin
Binary files differ
diff --git a/examples/animation/stickman/animations/dancing.bin b/examples/widgets/animation/stickman/animations/dancing.bin
index 462f66f89bf..462f66f89bf 100644
--- a/examples/animation/stickman/animations/dancing.bin
+++ b/examples/widgets/animation/stickman/animations/dancing.bin
Binary files differ
diff --git a/examples/animation/stickman/animations/dead.bin b/examples/widgets/animation/stickman/animations/dead.bin
index 9859b4b4cd8..9859b4b4cd8 100644
--- a/examples/animation/stickman/animations/dead.bin
+++ b/examples/widgets/animation/stickman/animations/dead.bin
Binary files differ
diff --git a/examples/animation/stickman/animations/jumping.bin b/examples/widgets/animation/stickman/animations/jumping.bin
index 12661a15f80..12661a15f80 100644
--- a/examples/animation/stickman/animations/jumping.bin
+++ b/examples/widgets/animation/stickman/animations/jumping.bin
Binary files differ
diff --git a/examples/animation/stickman/graphicsview.cpp b/examples/widgets/animation/stickman/graphicsview.cpp
index 134fb8acf19..134fb8acf19 100644
--- a/examples/animation/stickman/graphicsview.cpp
+++ b/examples/widgets/animation/stickman/graphicsview.cpp
diff --git a/examples/animation/stickman/graphicsview.h b/examples/widgets/animation/stickman/graphicsview.h
index 38bf6e1eb61..38bf6e1eb61 100644
--- a/examples/animation/stickman/graphicsview.h
+++ b/examples/widgets/animation/stickman/graphicsview.h
diff --git a/examples/animation/stickman/lifecycle.cpp b/examples/widgets/animation/stickman/lifecycle.cpp
index 53249ccd6f5..53249ccd6f5 100644
--- a/examples/animation/stickman/lifecycle.cpp
+++ b/examples/widgets/animation/stickman/lifecycle.cpp
diff --git a/examples/animation/stickman/lifecycle.h b/examples/widgets/animation/stickman/lifecycle.h
index 8e8bb50659c..8e8bb50659c 100644
--- a/examples/animation/stickman/lifecycle.h
+++ b/examples/widgets/animation/stickman/lifecycle.h
diff --git a/examples/animation/stickman/main.cpp b/examples/widgets/animation/stickman/main.cpp
index 3e49da8de33..3e49da8de33 100644
--- a/examples/animation/stickman/main.cpp
+++ b/examples/widgets/animation/stickman/main.cpp
diff --git a/examples/animation/stickman/node.cpp b/examples/widgets/animation/stickman/node.cpp
index 2de34b379cd..2de34b379cd 100644
--- a/examples/animation/stickman/node.cpp
+++ b/examples/widgets/animation/stickman/node.cpp
diff --git a/examples/animation/stickman/node.h b/examples/widgets/animation/stickman/node.h
index ae6e2a3ed07..ae6e2a3ed07 100644
--- a/examples/animation/stickman/node.h
+++ b/examples/widgets/animation/stickman/node.h
diff --git a/examples/animation/stickman/rectbutton.cpp b/examples/widgets/animation/stickman/rectbutton.cpp
index 8b17600ef5e..8b17600ef5e 100644
--- a/examples/animation/stickman/rectbutton.cpp
+++ b/examples/widgets/animation/stickman/rectbutton.cpp
diff --git a/examples/animation/stickman/rectbutton.h b/examples/widgets/animation/stickman/rectbutton.h
index ead8f21420e..ead8f21420e 100644
--- a/examples/animation/stickman/rectbutton.h
+++ b/examples/widgets/animation/stickman/rectbutton.h
diff --git a/examples/animation/stickman/stickman.cpp b/examples/widgets/animation/stickman/stickman.cpp
index 667ed7d1418..667ed7d1418 100644
--- a/examples/animation/stickman/stickman.cpp
+++ b/examples/widgets/animation/stickman/stickman.cpp
diff --git a/examples/animation/stickman/stickman.desktop b/examples/widgets/animation/stickman/stickman.desktop
index 1722d4db3ef..1722d4db3ef 100644
--- a/examples/animation/stickman/stickman.desktop
+++ b/examples/widgets/animation/stickman/stickman.desktop
diff --git a/examples/animation/stickman/stickman.h b/examples/widgets/animation/stickman/stickman.h
index f50ed1a6c2f..f50ed1a6c2f 100644
--- a/examples/animation/stickman/stickman.h
+++ b/examples/widgets/animation/stickman/stickman.h
diff --git a/examples/animation/stickman/stickman.pro b/examples/widgets/animation/stickman/stickman.pro
index 43aaec113dd..43aaec113dd 100644
--- a/examples/animation/stickman/stickman.pro
+++ b/examples/widgets/animation/stickman/stickman.pro
diff --git a/examples/animation/stickman/stickman.qrc b/examples/widgets/animation/stickman/stickman.qrc
index 4cf3ba3828f..4cf3ba3828f 100644
--- a/examples/animation/stickman/stickman.qrc
+++ b/examples/widgets/animation/stickman/stickman.qrc
diff --git a/examples/animation/sub-attaq/animationmanager.cpp b/examples/widgets/animation/sub-attaq/animationmanager.cpp
index 7dcb9dfb509..7dcb9dfb509 100644
--- a/examples/animation/sub-attaq/animationmanager.cpp
+++ b/examples/widgets/animation/sub-attaq/animationmanager.cpp
diff --git a/examples/animation/sub-attaq/animationmanager.h b/examples/widgets/animation/sub-attaq/animationmanager.h
index 6587e39b14e..6587e39b14e 100644
--- a/examples/animation/sub-attaq/animationmanager.h
+++ b/examples/widgets/animation/sub-attaq/animationmanager.h
diff --git a/examples/animation/sub-attaq/boat.cpp b/examples/widgets/animation/sub-attaq/boat.cpp
index 88332dbfe7b..88332dbfe7b 100644
--- a/examples/animation/sub-attaq/boat.cpp
+++ b/examples/widgets/animation/sub-attaq/boat.cpp
diff --git a/examples/animation/sub-attaq/boat.h b/examples/widgets/animation/sub-attaq/boat.h
index 0b2fe5c8eb4..0b2fe5c8eb4 100644
--- a/examples/animation/sub-attaq/boat.h
+++ b/examples/widgets/animation/sub-attaq/boat.h
diff --git a/examples/animation/sub-attaq/boat_p.h b/examples/widgets/animation/sub-attaq/boat_p.h
index 38be9857776..38be9857776 100644
--- a/examples/animation/sub-attaq/boat_p.h
+++ b/examples/widgets/animation/sub-attaq/boat_p.h
diff --git a/examples/animation/sub-attaq/bomb.cpp b/examples/widgets/animation/sub-attaq/bomb.cpp
index e47e9423a91..e47e9423a91 100644
--- a/examples/animation/sub-attaq/bomb.cpp
+++ b/examples/widgets/animation/sub-attaq/bomb.cpp
diff --git a/examples/animation/sub-attaq/bomb.h b/examples/widgets/animation/sub-attaq/bomb.h
index 74ed734caf2..74ed734caf2 100644
--- a/examples/animation/sub-attaq/bomb.h
+++ b/examples/widgets/animation/sub-attaq/bomb.h
diff --git a/examples/animation/sub-attaq/data.xml b/examples/widgets/animation/sub-attaq/data.xml
index 0f30515ddfc..0f30515ddfc 100644
--- a/examples/animation/sub-attaq/data.xml
+++ b/examples/widgets/animation/sub-attaq/data.xml
diff --git a/examples/animation/sub-attaq/graphicsscene.cpp b/examples/widgets/animation/sub-attaq/graphicsscene.cpp
index a2b3e2f101d..a2b3e2f101d 100644
--- a/examples/animation/sub-attaq/graphicsscene.cpp
+++ b/examples/widgets/animation/sub-attaq/graphicsscene.cpp
diff --git a/examples/animation/sub-attaq/graphicsscene.h b/examples/widgets/animation/sub-attaq/graphicsscene.h
index 3e571a878ca..3e571a878ca 100644
--- a/examples/animation/sub-attaq/graphicsscene.h
+++ b/examples/widgets/animation/sub-attaq/graphicsscene.h
diff --git a/examples/animation/sub-attaq/main.cpp b/examples/widgets/animation/sub-attaq/main.cpp
index df18c834357..df18c834357 100644
--- a/examples/animation/sub-attaq/main.cpp
+++ b/examples/widgets/animation/sub-attaq/main.cpp
diff --git a/examples/animation/sub-attaq/mainwindow.cpp b/examples/widgets/animation/sub-attaq/mainwindow.cpp
index 70f03031773..70f03031773 100644
--- a/examples/animation/sub-attaq/mainwindow.cpp
+++ b/examples/widgets/animation/sub-attaq/mainwindow.cpp
diff --git a/examples/animation/sub-attaq/mainwindow.h b/examples/widgets/animation/sub-attaq/mainwindow.h
index 596157d38f5..596157d38f5 100644
--- a/examples/animation/sub-attaq/mainwindow.h
+++ b/examples/widgets/animation/sub-attaq/mainwindow.h
diff --git a/examples/animation/sub-attaq/pics/big/background.png b/examples/widgets/animation/sub-attaq/pics/big/background.png
index 9f581571fad..9f581571fad 100644
--- a/examples/animation/sub-attaq/pics/big/background.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/background.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/boat.png b/examples/widgets/animation/sub-attaq/pics/big/boat.png
index be82dff62ae..be82dff62ae 100644
--- a/examples/animation/sub-attaq/pics/big/boat.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/boat.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/bomb.png b/examples/widgets/animation/sub-attaq/pics/big/bomb.png
index 3af5f2f29cc..3af5f2f29cc 100644
--- a/examples/animation/sub-attaq/pics/big/bomb.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/bomb.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/boat/step1.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step1.png
index c9fd8b09843..c9fd8b09843 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/boat/step1.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step1.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/boat/step2.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step2.png
index 7528f2d2daf..7528f2d2daf 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/boat/step2.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step2.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/boat/step3.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step3.png
index aae9c9c184a..aae9c9c184a 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/boat/step3.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step3.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/boat/step4.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step4.png
index d697c1bae80..d697c1bae80 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/boat/step4.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/boat/step4.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/submarine/step1.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step1.png
index 88ca5144b7e..88ca5144b7e 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/submarine/step1.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step1.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/submarine/step2.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step2.png
index 524f5890ee4..524f5890ee4 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/submarine/step2.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step2.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/submarine/step3.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step3.png
index 2cca1e80feb..2cca1e80feb 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/submarine/step3.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step3.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/explosion/submarine/step4.png b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step4.png
index 82100a8260a..82100a8260a 100644
--- a/examples/animation/sub-attaq/pics/big/explosion/submarine/step4.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/explosion/submarine/step4.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/submarine.png b/examples/widgets/animation/sub-attaq/pics/big/submarine.png
index df435dc47d6..df435dc47d6 100644
--- a/examples/animation/sub-attaq/pics/big/submarine.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/submarine.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/surface.png b/examples/widgets/animation/sub-attaq/pics/big/surface.png
index 4eba29e9cd1..4eba29e9cd1 100644
--- a/examples/animation/sub-attaq/pics/big/surface.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/surface.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/big/torpedo.png b/examples/widgets/animation/sub-attaq/pics/big/torpedo.png
index f9c26873f18..f9c26873f18 100644
--- a/examples/animation/sub-attaq/pics/big/torpedo.png
+++ b/examples/widgets/animation/sub-attaq/pics/big/torpedo.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/scalable/background-n810.svg b/examples/widgets/animation/sub-attaq/pics/scalable/background-n810.svg
index ece9f7aaf14..ece9f7aaf14 100644
--- a/examples/animation/sub-attaq/pics/scalable/background-n810.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/background-n810.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/background.svg b/examples/widgets/animation/sub-attaq/pics/scalable/background.svg
index 0be268010e4..0be268010e4 100644
--- a/examples/animation/sub-attaq/pics/scalable/background.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/background.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/boat.svg b/examples/widgets/animation/sub-attaq/pics/scalable/boat.svg
index 5298821ba8d..5298821ba8d 100644
--- a/examples/animation/sub-attaq/pics/scalable/boat.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/boat.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/bomb.svg b/examples/widgets/animation/sub-attaq/pics/scalable/bomb.svg
index 294771a6ddd..294771a6ddd 100644
--- a/examples/animation/sub-attaq/pics/scalable/bomb.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/bomb.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/sand.svg b/examples/widgets/animation/sub-attaq/pics/scalable/sand.svg
index 8af11b7a666..8af11b7a666 100644
--- a/examples/animation/sub-attaq/pics/scalable/sand.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/sand.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/see.svg b/examples/widgets/animation/sub-attaq/pics/scalable/see.svg
index 0666691215c..0666691215c 100644
--- a/examples/animation/sub-attaq/pics/scalable/see.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/see.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/sky.svg b/examples/widgets/animation/sub-attaq/pics/scalable/sky.svg
index 1546c087a7e..1546c087a7e 100644
--- a/examples/animation/sub-attaq/pics/scalable/sky.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/sky.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/sub-attaq.svg b/examples/widgets/animation/sub-attaq/pics/scalable/sub-attaq.svg
index b075179b461..b075179b461 100644
--- a/examples/animation/sub-attaq/pics/scalable/sub-attaq.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/sub-attaq.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/submarine.svg b/examples/widgets/animation/sub-attaq/pics/scalable/submarine.svg
index 8a0ffddbcad..8a0ffddbcad 100644
--- a/examples/animation/sub-attaq/pics/scalable/submarine.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/submarine.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/surface.svg b/examples/widgets/animation/sub-attaq/pics/scalable/surface.svg
index 40ed239638e..40ed239638e 100644
--- a/examples/animation/sub-attaq/pics/scalable/surface.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/surface.svg
diff --git a/examples/animation/sub-attaq/pics/scalable/torpedo.svg b/examples/widgets/animation/sub-attaq/pics/scalable/torpedo.svg
index 48e429d2bfb..48e429d2bfb 100644
--- a/examples/animation/sub-attaq/pics/scalable/torpedo.svg
+++ b/examples/widgets/animation/sub-attaq/pics/scalable/torpedo.svg
diff --git a/examples/animation/sub-attaq/pics/small/background.png b/examples/widgets/animation/sub-attaq/pics/small/background.png
index 5ad3db660a9..5ad3db660a9 100644
--- a/examples/animation/sub-attaq/pics/small/background.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/background.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/small/boat.png b/examples/widgets/animation/sub-attaq/pics/small/boat.png
index 114ccc310e5..114ccc310e5 100644
--- a/examples/animation/sub-attaq/pics/small/boat.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/boat.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/small/bomb.png b/examples/widgets/animation/sub-attaq/pics/small/bomb.png
index 3af5f2f29cc..3af5f2f29cc 100644
--- a/examples/animation/sub-attaq/pics/small/bomb.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/bomb.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/small/submarine.png b/examples/widgets/animation/sub-attaq/pics/small/submarine.png
index 0c0c350600c..0c0c350600c 100644
--- a/examples/animation/sub-attaq/pics/small/submarine.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/submarine.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/small/surface.png b/examples/widgets/animation/sub-attaq/pics/small/surface.png
index 06d0e47a5c1..06d0e47a5c1 100644
--- a/examples/animation/sub-attaq/pics/small/surface.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/surface.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/small/torpedo.png b/examples/widgets/animation/sub-attaq/pics/small/torpedo.png
index f9c26873f18..f9c26873f18 100644
--- a/examples/animation/sub-attaq/pics/small/torpedo.png
+++ b/examples/widgets/animation/sub-attaq/pics/small/torpedo.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-a.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-a.png
index 67dd76dac0a..67dd76dac0a 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-a.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-a.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-a2.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-a2.png
index 17668b07de0..17668b07de0 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-a2.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-a2.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-b.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-b.png
index cf6c04560b9..cf6c04560b9 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-b.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-b.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-dash.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-dash.png
index 219233ce6ba..219233ce6ba 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-dash.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-dash.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-excl.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-excl.png
index 8dd0a2eb867..8dd0a2eb867 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-excl.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-excl.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-q.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-q.png
index 86e588d4d83..86e588d4d83 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-q.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-q.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-s.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-s.png
index 7b6a36e93a5..7b6a36e93a5 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-s.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-s.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-t.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-t.png
index b2e3526beae..b2e3526beae 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-t.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-t.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-t2.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-t2.png
index b11a77886ec..b11a77886ec 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-t2.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-t2.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pics/welcome/logo-u.png b/examples/widgets/animation/sub-attaq/pics/welcome/logo-u.png
index 24eede887a2..24eede887a2 100644
--- a/examples/animation/sub-attaq/pics/welcome/logo-u.png
+++ b/examples/widgets/animation/sub-attaq/pics/welcome/logo-u.png
Binary files differ
diff --git a/examples/animation/sub-attaq/pixmapitem.cpp b/examples/widgets/animation/sub-attaq/pixmapitem.cpp
index 077151d7086..077151d7086 100644
--- a/examples/animation/sub-attaq/pixmapitem.cpp
+++ b/examples/widgets/animation/sub-attaq/pixmapitem.cpp
diff --git a/examples/animation/sub-attaq/pixmapitem.h b/examples/widgets/animation/sub-attaq/pixmapitem.h
index 0a3b1287c79..0a3b1287c79 100644
--- a/examples/animation/sub-attaq/pixmapitem.h
+++ b/examples/widgets/animation/sub-attaq/pixmapitem.h
diff --git a/examples/animation/sub-attaq/progressitem.cpp b/examples/widgets/animation/sub-attaq/progressitem.cpp
index bad9ceb4715..bad9ceb4715 100644
--- a/examples/animation/sub-attaq/progressitem.cpp
+++ b/examples/widgets/animation/sub-attaq/progressitem.cpp
diff --git a/examples/animation/sub-attaq/progressitem.h b/examples/widgets/animation/sub-attaq/progressitem.h
index dc6d7ba6bc0..dc6d7ba6bc0 100644
--- a/examples/animation/sub-attaq/progressitem.h
+++ b/examples/widgets/animation/sub-attaq/progressitem.h
diff --git a/examples/animation/sub-attaq/qanimationstate.cpp b/examples/widgets/animation/sub-attaq/qanimationstate.cpp
index b122acc8586..b122acc8586 100644
--- a/examples/animation/sub-attaq/qanimationstate.cpp
+++ b/examples/widgets/animation/sub-attaq/qanimationstate.cpp
diff --git a/examples/animation/sub-attaq/qanimationstate.h b/examples/widgets/animation/sub-attaq/qanimationstate.h
index 2672f640e43..2672f640e43 100644
--- a/examples/animation/sub-attaq/qanimationstate.h
+++ b/examples/widgets/animation/sub-attaq/qanimationstate.h
diff --git a/examples/animation/sub-attaq/states.cpp b/examples/widgets/animation/sub-attaq/states.cpp
index 32ad218693e..32ad218693e 100644
--- a/examples/animation/sub-attaq/states.cpp
+++ b/examples/widgets/animation/sub-attaq/states.cpp
diff --git a/examples/animation/sub-attaq/states.h b/examples/widgets/animation/sub-attaq/states.h
index e43370302c9..e43370302c9 100644
--- a/examples/animation/sub-attaq/states.h
+++ b/examples/widgets/animation/sub-attaq/states.h
diff --git a/examples/animation/sub-attaq/sub-attaq.pro b/examples/widgets/animation/sub-attaq/sub-attaq.pro
index 6d9b3195ac3..6d9b3195ac3 100644
--- a/examples/animation/sub-attaq/sub-attaq.pro
+++ b/examples/widgets/animation/sub-attaq/sub-attaq.pro
diff --git a/examples/animation/sub-attaq/subattaq.qrc b/examples/widgets/animation/sub-attaq/subattaq.qrc
index 80a3af11ccc..80a3af11ccc 100644
--- a/examples/animation/sub-attaq/subattaq.qrc
+++ b/examples/widgets/animation/sub-attaq/subattaq.qrc
diff --git a/examples/animation/sub-attaq/submarine.cpp b/examples/widgets/animation/sub-attaq/submarine.cpp
index 68eaf7ef384..68eaf7ef384 100644
--- a/examples/animation/sub-attaq/submarine.cpp
+++ b/examples/widgets/animation/sub-attaq/submarine.cpp
diff --git a/examples/animation/sub-attaq/submarine.h b/examples/widgets/animation/sub-attaq/submarine.h
index b113bc87970..b113bc87970 100644
--- a/examples/animation/sub-attaq/submarine.h
+++ b/examples/widgets/animation/sub-attaq/submarine.h
diff --git a/examples/animation/sub-attaq/submarine_p.h b/examples/widgets/animation/sub-attaq/submarine_p.h
index f24487aa17d..f24487aa17d 100644
--- a/examples/animation/sub-attaq/submarine_p.h
+++ b/examples/widgets/animation/sub-attaq/submarine_p.h
diff --git a/examples/animation/sub-attaq/textinformationitem.cpp b/examples/widgets/animation/sub-attaq/textinformationitem.cpp
index ce2e2972879..ce2e2972879 100644
--- a/examples/animation/sub-attaq/textinformationitem.cpp
+++ b/examples/widgets/animation/sub-attaq/textinformationitem.cpp
diff --git a/examples/animation/sub-attaq/textinformationitem.h b/examples/widgets/animation/sub-attaq/textinformationitem.h
index adad8be90bf..adad8be90bf 100644
--- a/examples/animation/sub-attaq/textinformationitem.h
+++ b/examples/widgets/animation/sub-attaq/textinformationitem.h
diff --git a/examples/animation/sub-attaq/torpedo.cpp b/examples/widgets/animation/sub-attaq/torpedo.cpp
index 34c32fe059c..34c32fe059c 100644
--- a/examples/animation/sub-attaq/torpedo.cpp
+++ b/examples/widgets/animation/sub-attaq/torpedo.cpp
diff --git a/examples/animation/sub-attaq/torpedo.h b/examples/widgets/animation/sub-attaq/torpedo.h
index 59209e3d75e..59209e3d75e 100644
--- a/examples/animation/sub-attaq/torpedo.h
+++ b/examples/widgets/animation/sub-attaq/torpedo.h
diff --git a/examples/desktop/README b/examples/widgets/desktop/README
index 4a949d1cf7b..4a949d1cf7b 100644
--- a/examples/desktop/README
+++ b/examples/widgets/desktop/README
diff --git a/examples/desktop/desktop.pro b/examples/widgets/desktop/desktop.pro
index adfa51f1301..adfa51f1301 100644
--- a/examples/desktop/desktop.pro
+++ b/examples/widgets/desktop/desktop.pro
diff --git a/examples/desktop/screenshot/main.cpp b/examples/widgets/desktop/screenshot/main.cpp
index 3f9b2e11262..3f9b2e11262 100644
--- a/examples/desktop/screenshot/main.cpp
+++ b/examples/widgets/desktop/screenshot/main.cpp
diff --git a/examples/desktop/screenshot/screenshot.cpp b/examples/widgets/desktop/screenshot/screenshot.cpp
index 12c6bee6d47..12c6bee6d47 100644
--- a/examples/desktop/screenshot/screenshot.cpp
+++ b/examples/widgets/desktop/screenshot/screenshot.cpp
diff --git a/examples/desktop/screenshot/screenshot.desktop b/examples/widgets/desktop/screenshot/screenshot.desktop
index 236d3601233..236d3601233 100644
--- a/examples/desktop/screenshot/screenshot.desktop
+++ b/examples/widgets/desktop/screenshot/screenshot.desktop
diff --git a/examples/desktop/screenshot/screenshot.h b/examples/widgets/desktop/screenshot/screenshot.h
index 98251f3428c..98251f3428c 100644
--- a/examples/desktop/screenshot/screenshot.h
+++ b/examples/widgets/desktop/screenshot/screenshot.h
diff --git a/examples/desktop/screenshot/screenshot.pro b/examples/widgets/desktop/screenshot/screenshot.pro
index e9f53f7450f..e9f53f7450f 100644
--- a/examples/desktop/screenshot/screenshot.pro
+++ b/examples/widgets/desktop/screenshot/screenshot.pro
diff --git a/examples/desktop/systray/images/bad.png b/examples/widgets/desktop/systray/images/bad.png
index c8701a241a4..c8701a241a4 100644
--- a/examples/desktop/systray/images/bad.png
+++ b/examples/widgets/desktop/systray/images/bad.png
Binary files differ
diff --git a/examples/desktop/systray/images/heart.png b/examples/widgets/desktop/systray/images/heart.png
index cee1302b7d0..cee1302b7d0 100644
--- a/examples/desktop/systray/images/heart.png
+++ b/examples/widgets/desktop/systray/images/heart.png
Binary files differ
diff --git a/examples/desktop/systray/images/trash.png b/examples/widgets/desktop/systray/images/trash.png
index 4c24db926d6..4c24db926d6 100644
--- a/examples/desktop/systray/images/trash.png
+++ b/examples/widgets/desktop/systray/images/trash.png
Binary files differ
diff --git a/examples/desktop/systray/main.cpp b/examples/widgets/desktop/systray/main.cpp
index 6695113f711..6695113f711 100644
--- a/examples/desktop/systray/main.cpp
+++ b/examples/widgets/desktop/systray/main.cpp
diff --git a/examples/desktop/systray/systray.desktop b/examples/widgets/desktop/systray/systray.desktop
index 0490e715481..0490e715481 100644
--- a/examples/desktop/systray/systray.desktop
+++ b/examples/widgets/desktop/systray/systray.desktop
diff --git a/examples/desktop/systray/systray.pro b/examples/widgets/desktop/systray/systray.pro
index 5fdcf1f9c8f..5fdcf1f9c8f 100644
--- a/examples/desktop/systray/systray.pro
+++ b/examples/widgets/desktop/systray/systray.pro
diff --git a/examples/desktop/systray/systray.qrc b/examples/widgets/desktop/systray/systray.qrc
index a8b65358496..a8b65358496 100644
--- a/examples/desktop/systray/systray.qrc
+++ b/examples/widgets/desktop/systray/systray.qrc
diff --git a/examples/desktop/systray/window.cpp b/examples/widgets/desktop/systray/window.cpp
index c75e3590bac..c75e3590bac 100644
--- a/examples/desktop/systray/window.cpp
+++ b/examples/widgets/desktop/systray/window.cpp
diff --git a/examples/desktop/systray/window.h b/examples/widgets/desktop/systray/window.h
index 80b7a20754f..80b7a20754f 100644
--- a/examples/desktop/systray/window.h
+++ b/examples/widgets/desktop/systray/window.h
diff --git a/examples/dialogs/README b/examples/widgets/dialogs/README
index 090b0110619..090b0110619 100644
--- a/examples/dialogs/README
+++ b/examples/widgets/dialogs/README
diff --git a/examples/dialogs/classwizard/classwizard.cpp b/examples/widgets/dialogs/classwizard/classwizard.cpp
index eeb1fab55b6..eeb1fab55b6 100644
--- a/examples/dialogs/classwizard/classwizard.cpp
+++ b/examples/widgets/dialogs/classwizard/classwizard.cpp
diff --git a/examples/dialogs/classwizard/classwizard.desktop b/examples/widgets/dialogs/classwizard/classwizard.desktop
index 7f7d2320923..7f7d2320923 100644
--- a/examples/dialogs/classwizard/classwizard.desktop
+++ b/examples/widgets/dialogs/classwizard/classwizard.desktop
diff --git a/examples/dialogs/classwizard/classwizard.h b/examples/widgets/dialogs/classwizard/classwizard.h
index 332025f2076..332025f2076 100644
--- a/examples/dialogs/classwizard/classwizard.h
+++ b/examples/widgets/dialogs/classwizard/classwizard.h
diff --git a/examples/dialogs/classwizard/classwizard.pro b/examples/widgets/dialogs/classwizard/classwizard.pro
index d50ba675af4..d50ba675af4 100644
--- a/examples/dialogs/classwizard/classwizard.pro
+++ b/examples/widgets/dialogs/classwizard/classwizard.pro
diff --git a/examples/dialogs/classwizard/classwizard.qrc b/examples/widgets/dialogs/classwizard/classwizard.qrc
index 41a5ddc7d1d..41a5ddc7d1d 100644
--- a/examples/dialogs/classwizard/classwizard.qrc
+++ b/examples/widgets/dialogs/classwizard/classwizard.qrc
diff --git a/examples/dialogs/classwizard/images/background.png b/examples/widgets/dialogs/classwizard/images/background.png
index 44c7badb856..44c7badb856 100644
--- a/examples/dialogs/classwizard/images/background.png
+++ b/examples/widgets/dialogs/classwizard/images/background.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/banner.png b/examples/widgets/dialogs/classwizard/images/banner.png
index 3169152b8e6..3169152b8e6 100644
--- a/examples/dialogs/classwizard/images/banner.png
+++ b/examples/widgets/dialogs/classwizard/images/banner.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/logo1.png b/examples/widgets/dialogs/classwizard/images/logo1.png
index f9b594aafcd..f9b594aafcd 100644
--- a/examples/dialogs/classwizard/images/logo1.png
+++ b/examples/widgets/dialogs/classwizard/images/logo1.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/logo2.png b/examples/widgets/dialogs/classwizard/images/logo2.png
index 5dcbd4669de..5dcbd4669de 100644
--- a/examples/dialogs/classwizard/images/logo2.png
+++ b/examples/widgets/dialogs/classwizard/images/logo2.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/logo3.png b/examples/widgets/dialogs/classwizard/images/logo3.png
index 9fd3ea23589..9fd3ea23589 100644
--- a/examples/dialogs/classwizard/images/logo3.png
+++ b/examples/widgets/dialogs/classwizard/images/logo3.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/watermark1.png b/examples/widgets/dialogs/classwizard/images/watermark1.png
index 0091f5c17a0..0091f5c17a0 100644
--- a/examples/dialogs/classwizard/images/watermark1.png
+++ b/examples/widgets/dialogs/classwizard/images/watermark1.png
Binary files differ
diff --git a/examples/dialogs/classwizard/images/watermark2.png b/examples/widgets/dialogs/classwizard/images/watermark2.png
index 3b88f2e3606..3b88f2e3606 100644
--- a/examples/dialogs/classwizard/images/watermark2.png
+++ b/examples/widgets/dialogs/classwizard/images/watermark2.png
Binary files differ
diff --git a/examples/dialogs/classwizard/main.cpp b/examples/widgets/dialogs/classwizard/main.cpp
index 03dd625ae46..03dd625ae46 100644
--- a/examples/dialogs/classwizard/main.cpp
+++ b/examples/widgets/dialogs/classwizard/main.cpp
diff --git a/examples/dialogs/configdialog/configdialog.cpp b/examples/widgets/dialogs/configdialog/configdialog.cpp
index 2f70c816c40..2f70c816c40 100644
--- a/examples/dialogs/configdialog/configdialog.cpp
+++ b/examples/widgets/dialogs/configdialog/configdialog.cpp
diff --git a/examples/dialogs/configdialog/configdialog.desktop b/examples/widgets/dialogs/configdialog/configdialog.desktop
index 11a326813a4..11a326813a4 100644
--- a/examples/dialogs/configdialog/configdialog.desktop
+++ b/examples/widgets/dialogs/configdialog/configdialog.desktop
diff --git a/examples/dialogs/configdialog/configdialog.h b/examples/widgets/dialogs/configdialog/configdialog.h
index 5b79e416abf..5b79e416abf 100644
--- a/examples/dialogs/configdialog/configdialog.h
+++ b/examples/widgets/dialogs/configdialog/configdialog.h
diff --git a/examples/dialogs/configdialog/configdialog.pro b/examples/widgets/dialogs/configdialog/configdialog.pro
index 643c2a238fc..643c2a238fc 100644
--- a/examples/dialogs/configdialog/configdialog.pro
+++ b/examples/widgets/dialogs/configdialog/configdialog.pro
diff --git a/examples/dialogs/configdialog/configdialog.qrc b/examples/widgets/dialogs/configdialog/configdialog.qrc
index 31d0d49666b..31d0d49666b 100644
--- a/examples/dialogs/configdialog/configdialog.qrc
+++ b/examples/widgets/dialogs/configdialog/configdialog.qrc
diff --git a/examples/dialogs/configdialog/images/config.png b/examples/widgets/dialogs/configdialog/images/config.png
index 5c14d5f4707..5c14d5f4707 100644
--- a/examples/dialogs/configdialog/images/config.png
+++ b/examples/widgets/dialogs/configdialog/images/config.png
Binary files differ
diff --git a/examples/dialogs/configdialog/images/query.png b/examples/widgets/dialogs/configdialog/images/query.png
index ea9e291eeb5..ea9e291eeb5 100644
--- a/examples/dialogs/configdialog/images/query.png
+++ b/examples/widgets/dialogs/configdialog/images/query.png
Binary files differ
diff --git a/examples/dialogs/configdialog/images/update.png b/examples/widgets/dialogs/configdialog/images/update.png
index 3cb8ba6c77f..3cb8ba6c77f 100644
--- a/examples/dialogs/configdialog/images/update.png
+++ b/examples/widgets/dialogs/configdialog/images/update.png
Binary files differ
diff --git a/examples/dialogs/configdialog/main.cpp b/examples/widgets/dialogs/configdialog/main.cpp
index 42f3cf2f436..42f3cf2f436 100644
--- a/examples/dialogs/configdialog/main.cpp
+++ b/examples/widgets/dialogs/configdialog/main.cpp
diff --git a/examples/dialogs/configdialog/pages.cpp b/examples/widgets/dialogs/configdialog/pages.cpp
index c89bc3c7c82..c89bc3c7c82 100644
--- a/examples/dialogs/configdialog/pages.cpp
+++ b/examples/widgets/dialogs/configdialog/pages.cpp
diff --git a/examples/dialogs/configdialog/pages.h b/examples/widgets/dialogs/configdialog/pages.h
index 938a2a74f7a..938a2a74f7a 100644
--- a/examples/dialogs/configdialog/pages.h
+++ b/examples/widgets/dialogs/configdialog/pages.h
diff --git a/examples/dialogs/dialogs.pro b/examples/widgets/dialogs/dialogs.pro
index a59e480efa9..a59e480efa9 100644
--- a/examples/dialogs/dialogs.pro
+++ b/examples/widgets/dialogs/dialogs.pro
diff --git a/examples/dialogs/extension/extension.desktop b/examples/widgets/dialogs/extension/extension.desktop
index 374b1c83407..374b1c83407 100644
--- a/examples/dialogs/extension/extension.desktop
+++ b/examples/widgets/dialogs/extension/extension.desktop
diff --git a/examples/dialogs/extension/extension.pro b/examples/widgets/dialogs/extension/extension.pro
index 7e11dda4ab6..7e11dda4ab6 100644
--- a/examples/dialogs/extension/extension.pro
+++ b/examples/widgets/dialogs/extension/extension.pro
diff --git a/examples/dialogs/extension/finddialog.cpp b/examples/widgets/dialogs/extension/finddialog.cpp
index c21ebf67c56..c21ebf67c56 100644
--- a/examples/dialogs/extension/finddialog.cpp
+++ b/examples/widgets/dialogs/extension/finddialog.cpp
diff --git a/examples/dialogs/extension/finddialog.h b/examples/widgets/dialogs/extension/finddialog.h
index 5599ac2c092..5599ac2c092 100644
--- a/examples/dialogs/extension/finddialog.h
+++ b/examples/widgets/dialogs/extension/finddialog.h
diff --git a/examples/dialogs/extension/main.cpp b/examples/widgets/dialogs/extension/main.cpp
index f0eff079ed3..f0eff079ed3 100644
--- a/examples/dialogs/extension/main.cpp
+++ b/examples/widgets/dialogs/extension/main.cpp
diff --git a/examples/dialogs/findfiles/findfiles.desktop b/examples/widgets/dialogs/findfiles/findfiles.desktop
index 04c91cd76d6..04c91cd76d6 100644
--- a/examples/dialogs/findfiles/findfiles.desktop
+++ b/examples/widgets/dialogs/findfiles/findfiles.desktop
diff --git a/examples/dialogs/findfiles/findfiles.pro b/examples/widgets/dialogs/findfiles/findfiles.pro
index 51d1c0eed12..51d1c0eed12 100644
--- a/examples/dialogs/findfiles/findfiles.pro
+++ b/examples/widgets/dialogs/findfiles/findfiles.pro
diff --git a/examples/dialogs/findfiles/main.cpp b/examples/widgets/dialogs/findfiles/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/dialogs/findfiles/main.cpp
+++ b/examples/widgets/dialogs/findfiles/main.cpp
diff --git a/examples/dialogs/findfiles/window.cpp b/examples/widgets/dialogs/findfiles/window.cpp
index 6b89436dc8d..6b89436dc8d 100644
--- a/examples/dialogs/findfiles/window.cpp
+++ b/examples/widgets/dialogs/findfiles/window.cpp
diff --git a/examples/dialogs/findfiles/window.h b/examples/widgets/dialogs/findfiles/window.h
index 0203de8a177..0203de8a177 100644
--- a/examples/dialogs/findfiles/window.h
+++ b/examples/widgets/dialogs/findfiles/window.h
diff --git a/examples/dialogs/licensewizard/images/logo.png b/examples/widgets/dialogs/licensewizard/images/logo.png
index 56f17a3e5ad..56f17a3e5ad 100644
--- a/examples/dialogs/licensewizard/images/logo.png
+++ b/examples/widgets/dialogs/licensewizard/images/logo.png
Binary files differ
diff --git a/examples/dialogs/licensewizard/images/watermark.png b/examples/widgets/dialogs/licensewizard/images/watermark.png
index 124a05068b2..124a05068b2 100644
--- a/examples/dialogs/licensewizard/images/watermark.png
+++ b/examples/widgets/dialogs/licensewizard/images/watermark.png
Binary files differ
diff --git a/examples/dialogs/licensewizard/licensewizard.cpp b/examples/widgets/dialogs/licensewizard/licensewizard.cpp
index 501f8e310c5..501f8e310c5 100644
--- a/examples/dialogs/licensewizard/licensewizard.cpp
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.cpp
diff --git a/examples/dialogs/licensewizard/licensewizard.desktop b/examples/widgets/dialogs/licensewizard/licensewizard.desktop
index 423d81e9b34..423d81e9b34 100644
--- a/examples/dialogs/licensewizard/licensewizard.desktop
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.desktop
diff --git a/examples/dialogs/licensewizard/licensewizard.h b/examples/widgets/dialogs/licensewizard/licensewizard.h
index 24ee45d6dd8..24ee45d6dd8 100644
--- a/examples/dialogs/licensewizard/licensewizard.h
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.h
diff --git a/examples/dialogs/licensewizard/licensewizard.pro b/examples/widgets/dialogs/licensewizard/licensewizard.pro
index c61325772e8..c61325772e8 100644
--- a/examples/dialogs/licensewizard/licensewizard.pro
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.pro
diff --git a/examples/dialogs/licensewizard/licensewizard.qrc b/examples/widgets/dialogs/licensewizard/licensewizard.qrc
index b069938515e..b069938515e 100644
--- a/examples/dialogs/licensewizard/licensewizard.qrc
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.qrc
diff --git a/examples/dialogs/licensewizard/main.cpp b/examples/widgets/dialogs/licensewizard/main.cpp
index c7771d7676c..c7771d7676c 100644
--- a/examples/dialogs/licensewizard/main.cpp
+++ b/examples/widgets/dialogs/licensewizard/main.cpp
diff --git a/examples/dialogs/sipdialog/dialog.cpp b/examples/widgets/dialogs/sipdialog/dialog.cpp
index fdfbc94ca42..fdfbc94ca42 100644
--- a/examples/dialogs/sipdialog/dialog.cpp
+++ b/examples/widgets/dialogs/sipdialog/dialog.cpp
diff --git a/examples/dialogs/sipdialog/dialog.h b/examples/widgets/dialogs/sipdialog/dialog.h
index 18eb92d8570..18eb92d8570 100644
--- a/examples/dialogs/sipdialog/dialog.h
+++ b/examples/widgets/dialogs/sipdialog/dialog.h
diff --git a/examples/dialogs/sipdialog/main.cpp b/examples/widgets/dialogs/sipdialog/main.cpp
index 79fd956fb98..79fd956fb98 100644
--- a/examples/dialogs/sipdialog/main.cpp
+++ b/examples/widgets/dialogs/sipdialog/main.cpp
diff --git a/examples/dialogs/sipdialog/sipdialog.desktop b/examples/widgets/dialogs/sipdialog/sipdialog.desktop
index b9c9955339a..b9c9955339a 100644
--- a/examples/dialogs/sipdialog/sipdialog.desktop
+++ b/examples/widgets/dialogs/sipdialog/sipdialog.desktop
diff --git a/examples/dialogs/sipdialog/sipdialog.pro b/examples/widgets/dialogs/sipdialog/sipdialog.pro
index 72db93f6460..72db93f6460 100644
--- a/examples/dialogs/sipdialog/sipdialog.pro
+++ b/examples/widgets/dialogs/sipdialog/sipdialog.pro
diff --git a/examples/dialogs/standarddialogs/dialog.cpp b/examples/widgets/dialogs/standarddialogs/dialog.cpp
index bde96c516b6..bde96c516b6 100644
--- a/examples/dialogs/standarddialogs/dialog.cpp
+++ b/examples/widgets/dialogs/standarddialogs/dialog.cpp
diff --git a/examples/dialogs/standarddialogs/dialog.h b/examples/widgets/dialogs/standarddialogs/dialog.h
index 2b14d793d6a..2b14d793d6a 100644
--- a/examples/dialogs/standarddialogs/dialog.h
+++ b/examples/widgets/dialogs/standarddialogs/dialog.h
diff --git a/examples/dialogs/standarddialogs/main.cpp b/examples/widgets/dialogs/standarddialogs/main.cpp
index 001239929e6..001239929e6 100644
--- a/examples/dialogs/standarddialogs/main.cpp
+++ b/examples/widgets/dialogs/standarddialogs/main.cpp
diff --git a/examples/dialogs/standarddialogs/standarddialogs.desktop b/examples/widgets/dialogs/standarddialogs/standarddialogs.desktop
index f74830317ae..f74830317ae 100644
--- a/examples/dialogs/standarddialogs/standarddialogs.desktop
+++ b/examples/widgets/dialogs/standarddialogs/standarddialogs.desktop
diff --git a/examples/dialogs/standarddialogs/standarddialogs.pro b/examples/widgets/dialogs/standarddialogs/standarddialogs.pro
index cbcb4d73027..cbcb4d73027 100644
--- a/examples/dialogs/standarddialogs/standarddialogs.pro
+++ b/examples/widgets/dialogs/standarddialogs/standarddialogs.pro
diff --git a/examples/dialogs/tabdialog/main.cpp b/examples/widgets/dialogs/tabdialog/main.cpp
index 119a4c272cf..119a4c272cf 100644
--- a/examples/dialogs/tabdialog/main.cpp
+++ b/examples/widgets/dialogs/tabdialog/main.cpp
diff --git a/examples/dialogs/tabdialog/tabdialog.cpp b/examples/widgets/dialogs/tabdialog/tabdialog.cpp
index 00e3706c5cb..00e3706c5cb 100644
--- a/examples/dialogs/tabdialog/tabdialog.cpp
+++ b/examples/widgets/dialogs/tabdialog/tabdialog.cpp
diff --git a/examples/dialogs/tabdialog/tabdialog.desktop b/examples/widgets/dialogs/tabdialog/tabdialog.desktop
index 651f7d4068d..651f7d4068d 100644
--- a/examples/dialogs/tabdialog/tabdialog.desktop
+++ b/examples/widgets/dialogs/tabdialog/tabdialog.desktop
diff --git a/examples/dialogs/tabdialog/tabdialog.h b/examples/widgets/dialogs/tabdialog/tabdialog.h
index c2b46f0e92f..c2b46f0e92f 100644
--- a/examples/dialogs/tabdialog/tabdialog.h
+++ b/examples/widgets/dialogs/tabdialog/tabdialog.h
diff --git a/examples/dialogs/tabdialog/tabdialog.pro b/examples/widgets/dialogs/tabdialog/tabdialog.pro
index 66ac14daf21..66ac14daf21 100644
--- a/examples/dialogs/tabdialog/tabdialog.pro
+++ b/examples/widgets/dialogs/tabdialog/tabdialog.pro
diff --git a/examples/dialogs/trivialwizard/trivialwizard.cpp b/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp
index f8209405d9a..f8209405d9a 100644
--- a/examples/dialogs/trivialwizard/trivialwizard.cpp
+++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp
diff --git a/examples/dialogs/trivialwizard/trivialwizard.desktop b/examples/widgets/dialogs/trivialwizard/trivialwizard.desktop
index fad568ecc84..fad568ecc84 100644
--- a/examples/dialogs/trivialwizard/trivialwizard.desktop
+++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.desktop
diff --git a/examples/dialogs/trivialwizard/trivialwizard.pro b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro
index 26d488d99d9..26d488d99d9 100644
--- a/examples/dialogs/trivialwizard/trivialwizard.pro
+++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro
diff --git a/doc/src/examples/addressbook.qdoc b/examples/widgets/doc/addressbook.qdoc
index 9b4ede57758..9b4ede57758 100644
--- a/doc/src/examples/addressbook.qdoc
+++ b/examples/widgets/doc/addressbook.qdoc
diff --git a/doc/src/examples/affine.qdoc b/examples/widgets/doc/affine.qdoc
index c69794d511b..c69794d511b 100644
--- a/doc/src/examples/affine.qdoc
+++ b/examples/widgets/doc/affine.qdoc
diff --git a/doc/src/examples/analogclock.qdoc b/examples/widgets/doc/analogclock.qdoc
index 4385da07b67..bb4bdb54aee 100644
--- a/doc/src/examples/analogclock.qdoc
+++ b/examples/widgets/doc/analogclock.qdoc
@@ -45,11 +45,11 @@
We subclass \l QWidget and reimplement the standard
\l{QWidget::paintEvent()}{paintEvent()} function to draw the clock face:
- \snippet examples/widgets/analogclock/analogclock.h 0
+ \snippet widgets/analogclock/analogclock.h 0
\section1 AnalogClock Class Implementation
- \snippet examples/widgets/analogclock/analogclock.cpp 1
+ \snippet widgets/analogclock/analogclock.cpp 1
When the widget is constructed, we set up a one-second timer to
keep track of the current time, and we connect it to the standard
@@ -60,8 +60,8 @@
Finally, we resize the widget so that it is displayed at a
reasonable size.
- \snippet examples/widgets/analogclock/analogclock.cpp 8
- \snippet examples/widgets/analogclock/analogclock.cpp 10
+ \snippet widgets/analogclock/analogclock.cpp 8
+ \snippet widgets/analogclock/analogclock.cpp 10
The \c paintEvent() function is called whenever the widget's
contents need to be updated. This happens when the widget is
@@ -80,10 +80,10 @@
can fit the clock face inside the widget. It is also useful to determine
the current time before we start drawing.
- \snippet examples/widgets/analogclock/analogclock.cpp 11
- \snippet examples/widgets/analogclock/analogclock.cpp 12
- \snippet examples/widgets/analogclock/analogclock.cpp 13
- \snippet examples/widgets/analogclock/analogclock.cpp 14
+ \snippet widgets/analogclock/analogclock.cpp 11
+ \snippet widgets/analogclock/analogclock.cpp 12
+ \snippet widgets/analogclock/analogclock.cpp 13
+ \snippet widgets/analogclock/analogclock.cpp 14
The contents of custom widgets are drawn with a QPainter.
Painters can be used to draw on any QPaintDevice, but they are
@@ -116,37 +116,37 @@
hour and minute. This means that the hand will be shown rotated clockwise
by the required amount.
- \snippet examples/widgets/analogclock/analogclock.cpp 15
- \snippet examples/widgets/analogclock/analogclock.cpp 16
+ \snippet widgets/analogclock/analogclock.cpp 15
+ \snippet widgets/analogclock/analogclock.cpp 16
We set the pen to be Qt::NoPen because we don't want any outline,
and we use a solid brush with the color appropriate for
displaying hours. Brushes are used when filling in polygons and
other geometric shapes.
- \snippet examples/widgets/analogclock/analogclock.cpp 17
- \snippet examples/widgets/analogclock/analogclock.cpp 19
+ \snippet widgets/analogclock/analogclock.cpp 17
+ \snippet widgets/analogclock/analogclock.cpp 19
We save and restore the transformation matrix before and after the
rotation because we want to place the minute hand without having to
take into account any previous rotations.
- \snippet examples/widgets/analogclock/analogclock.cpp 20
+ \snippet widgets/analogclock/analogclock.cpp 20
\codeline
- \snippet examples/widgets/analogclock/analogclock.cpp 21
+ \snippet widgets/analogclock/analogclock.cpp 21
We draw markers around the edge of the clock for each hour. We
draw each marker then rotate the coordinate system so that the
painter is ready for the next one.
- \snippet examples/widgets/analogclock/analogclock.cpp 22
- \snippet examples/widgets/analogclock/analogclock.cpp 23
+ \snippet widgets/analogclock/analogclock.cpp 22
+ \snippet widgets/analogclock/analogclock.cpp 23
The minute hand is rotated in a similar way to the hour hand.
- \snippet examples/widgets/analogclock/analogclock.cpp 25
+ \snippet widgets/analogclock/analogclock.cpp 25
\codeline
- \snippet examples/widgets/analogclock/analogclock.cpp 26
+ \snippet widgets/analogclock/analogclock.cpp 26
Again, we draw markers around the edge of the clock, but this
time to indicate minutes. We skip multiples of 5 to avoid drawing
diff --git a/doc/src/examples/animatedtiles.qdoc b/examples/widgets/doc/animatedtiles.qdoc
index 4fe25388cfe..4fe25388cfe 100644
--- a/doc/src/examples/animatedtiles.qdoc
+++ b/examples/widgets/doc/animatedtiles.qdoc
diff --git a/doc/src/examples/appchooser.qdoc b/examples/widgets/doc/appchooser.qdoc
index 092db7c29e0..092db7c29e0 100644
--- a/doc/src/examples/appchooser.qdoc
+++ b/examples/widgets/doc/appchooser.qdoc
diff --git a/doc/src/examples/application.qdoc b/examples/widgets/doc/application.qdoc
index 9cfdc081340..d99581fefd8 100644
--- a/doc/src/examples/application.qdoc
+++ b/examples/widgets/doc/application.qdoc
@@ -59,7 +59,7 @@
Here's the class definition:
- \snippet examples/mainwindows/application/mainwindow.h 0
+ \snippet mainwindows/application/mainwindow.h 0
The public API is restricted to the constructor. In the \c
protected section, we reimplement QWidget::closeEvent() to detect
@@ -72,7 +72,7 @@
\section1 MainWindow Class Implementation
- \snippet examples/mainwindows/application/mainwindow.cpp 0
+ \snippet mainwindows/application/mainwindow.cpp 0
We start by including \c <QtGui>, a header file that contains the
definition of all classes in the \l QtCore and \l QtGui
@@ -86,8 +86,8 @@
generally a good idea to include only the header files that are
strictly necessary from another header file.
- \snippet examples/mainwindows/application/mainwindow.cpp 1
- \snippet examples/mainwindows/application/mainwindow.cpp 2
+ \snippet mainwindows/application/mainwindow.cpp 1
+ \snippet mainwindows/application/mainwindow.cpp 2
In the constructor, we start by creating a QPlainTextEdit widget as a
child of the main window (the \c this object). Then we call
@@ -109,8 +109,8 @@
\c setCurrentFile() function. We'll come back to this later.
\target close event handler
- \snippet examples/mainwindows/application/mainwindow.cpp 3
- \snippet examples/mainwindows/application/mainwindow.cpp 4
+ \snippet mainwindows/application/mainwindow.cpp 3
+ \snippet mainwindows/application/mainwindow.cpp 4
When the user attempts to close the window, we call the private
function \c maybeSave() to give the user the possibility to save
@@ -121,8 +121,8 @@
that the application will stay up and running as if nothing
happened.
- \snippet examples/mainwindows/application/mainwindow.cpp 5
- \snippet examples/mainwindows/application/mainwindow.cpp 6
+ \snippet mainwindows/application/mainwindow.cpp 5
+ \snippet mainwindows/application/mainwindow.cpp 6
The \c newFile() slot is invoked when the user selects
\menu{File|New} from the menu. We call \c maybeSave() to save any
@@ -131,8 +131,8 @@
update the window title and clear the
\l{QWidget::windowModified}{windowModified} flag.
- \snippet examples/mainwindows/application/mainwindow.cpp 7
- \snippet examples/mainwindows/application/mainwindow.cpp 8
+ \snippet mainwindows/application/mainwindow.cpp 7
+ \snippet mainwindows/application/mainwindow.cpp 8
The \c open() slot is invoked when the user clicks
\menu{File|Open}. We pop up a QFileDialog asking the user to
@@ -140,23 +140,23 @@
not an empty string), we call the private function \c loadFile()
to actually load the file.
- \snippet examples/mainwindows/application/mainwindow.cpp 9
- \snippet examples/mainwindows/application/mainwindow.cpp 10
+ \snippet mainwindows/application/mainwindow.cpp 9
+ \snippet mainwindows/application/mainwindow.cpp 10
The \c save() slot is invoked when the user clicks
\menu{File|Save}. If the user hasn't provided a name for the file
yet, we call \c saveAs(); otherwise, we call the private function
\c saveFile() to actually save the file.
- \snippet examples/mainwindows/application/mainwindow.cpp 11
- \snippet examples/mainwindows/application/mainwindow.cpp 12
+ \snippet mainwindows/application/mainwindow.cpp 11
+ \snippet mainwindows/application/mainwindow.cpp 12
In \c saveAs(), we start by popping up a QFileDialog asking the
user to provide a name. If the user clicks \uicontrol{Cancel}, the
returned file name is empty, and we do nothing.
- \snippet examples/mainwindows/application/mainwindow.cpp 13
- \snippet examples/mainwindows/application/mainwindow.cpp 14
+ \snippet mainwindows/application/mainwindow.cpp 13
+ \snippet mainwindows/application/mainwindow.cpp 14
The application's About box is done using one statement, using
the QMessageBox::about() static function and relying on its
@@ -169,18 +169,18 @@
The \l{Internationalization with Qt} overview covers
\l{QObject::tr()}{tr()} in more detail.
- \snippet examples/mainwindows/application/mainwindow.cpp 15
- \snippet examples/mainwindows/application/mainwindow.cpp 16
+ \snippet mainwindows/application/mainwindow.cpp 15
+ \snippet mainwindows/application/mainwindow.cpp 16
The \c documentWasModified() slot is invoked each time the text
in the QPlainTextEdit changes because of user edits. We call
QWidget::setWindowModified() to make the title bar show that the
file was modified. How this is done varies on each platform.
- \snippet examples/mainwindows/application/mainwindow.cpp 17
- \snippet examples/mainwindows/application/mainwindow.cpp 18
+ \snippet mainwindows/application/mainwindow.cpp 17
+ \snippet mainwindows/application/mainwindow.cpp 18
\dots
- \snippet examples/mainwindows/application/mainwindow.cpp 22
+ \snippet mainwindows/application/mainwindow.cpp 22
The \c createActions() private function, which is called from the
\c MainWindow constructor, creates \l{QAction}s. The code is very
@@ -209,8 +209,8 @@
to this when we review the \c application.qrc file that's part of
the project.
- \snippet examples/mainwindows/application/mainwindow.cpp 23
- \snippet examples/mainwindows/application/mainwindow.cpp 24
+ \snippet mainwindows/application/mainwindow.cpp 23
+ \snippet mainwindows/application/mainwindow.cpp 24
The \uicontrol{Edit|Cut} and \uicontrol{Edit|Copy} actions must be available
only when the QPlainTextEdit contains selected text. We disable them
@@ -218,8 +218,8 @@
the QAction::setEnabled() slot, ensuring that the actions are
disabled when the text editor has no selection.
- \snippet examples/mainwindows/application/mainwindow.cpp 25
- \snippet examples/mainwindows/application/mainwindow.cpp 27
+ \snippet mainwindows/application/mainwindow.cpp 25
+ \snippet mainwindows/application/mainwindow.cpp 27
Creating actions isn't sufficient to make them available to the
user; we must also add them to the menu system. This is what \c
@@ -240,21 +240,21 @@
Let's now review the toolbars:
- \snippet examples/mainwindows/application/mainwindow.cpp 30
+ \snippet mainwindows/application/mainwindow.cpp 30
Creating toolbars is very similar to creating menus. The same
actions that we put in the menus can be reused in the toolbars.
- \snippet examples/mainwindows/application/mainwindow.cpp 32
- \snippet examples/mainwindows/application/mainwindow.cpp 33
+ \snippet mainwindows/application/mainwindow.cpp 32
+ \snippet mainwindows/application/mainwindow.cpp 33
QMainWindow::statusBar() returns a pointer to the main window's
QStatusBar widget. Like with \l{QMainWindow::menuBar()}, the
widget is automatically created the first time the function is
called.
- \snippet examples/mainwindows/application/mainwindow.cpp 34
- \snippet examples/mainwindows/application/mainwindow.cpp 36
+ \snippet mainwindows/application/mainwindow.cpp 34
+ \snippet mainwindows/application/mainwindow.cpp 36
The \c readSettings() function is called from the constructor to
load the user's preferences and other application settings. The
@@ -277,16 +277,16 @@
to call QWidget::resize() before QWidget::move(). The reason why
is given in the \l{Window Geometry} overview.
- \snippet examples/mainwindows/application/mainwindow.cpp 37
- \snippet examples/mainwindows/application/mainwindow.cpp 39
+ \snippet mainwindows/application/mainwindow.cpp 37
+ \snippet mainwindows/application/mainwindow.cpp 39
The \c writeSettings() function is called from \c closeEvent().
Writing settings is similar to reading them, except simpler. The
arguments to the QSettings constructor must be the same as in \c
readSettings().
- \snippet examples/mainwindows/application/mainwindow.cpp 40
- \snippet examples/mainwindows/application/mainwindow.cpp 41
+ \snippet mainwindows/application/mainwindow.cpp 40
+ \snippet mainwindows/application/mainwindow.cpp 41
The \c maybeSave() function is called to save pending changes. If
there are pending changes, it pops up a QMessageBox giving the
@@ -303,8 +303,8 @@
return value and stop whatever it was doing if the return value
is \c false.
- \snippet examples/mainwindows/application/mainwindow.cpp 42
- \snippet examples/mainwindows/application/mainwindow.cpp 43
+ \snippet mainwindows/application/mainwindow.cpp 42
+ \snippet mainwindows/application/mainwindow.cpp 43
In \c loadFile(), we use QFile and QTextStream to read in the
data. The QFile object provides access to the bytes stored in a
@@ -331,15 +331,15 @@
which we'll cover in a moment, and we display the string "File
loaded" in the status bar for 2 seconds (2000 milliseconds).
- \snippet examples/mainwindows/application/mainwindow.cpp 44
- \snippet examples/mainwindows/application/mainwindow.cpp 45
+ \snippet mainwindows/application/mainwindow.cpp 44
+ \snippet mainwindows/application/mainwindow.cpp 45
Saving a file is very similar to loading one. Here, the
QFile::Text flag ensures that on Windows, "\\n" is converted into
"\\r\\n" to conform to the Windows convension.
- \snippet examples/mainwindows/application/mainwindow.cpp 46
- \snippet examples/mainwindows/application/mainwindow.cpp 47
+ \snippet mainwindows/application/mainwindow.cpp 46
+ \snippet mainwindows/application/mainwindow.cpp 47
The \c setCurrentFile() function is called to reset the state of
a few variables when a file is loaded or saved, or when the user
@@ -353,15 +353,15 @@
QWidget::setWindowTitle() call shortens the file name to exclude
the path. Here's the function:
- \snippet examples/mainwindows/application/mainwindow.cpp 48
- \snippet examples/mainwindows/application/mainwindow.cpp 49
+ \snippet mainwindows/application/mainwindow.cpp 48
+ \snippet mainwindows/application/mainwindow.cpp 49
\section1 The main() Function
The \c main() function for this application is typical of
applications that contain one main window:
- \snippet examples/mainwindows/application/main.cpp 0
+ \snippet mainwindows/application/main.cpp 0
\section1 The Resource File
@@ -385,7 +385,7 @@
The resource file must be mentioned in the \c application.pro
file so that \c qmake knows about it:
- \snippet examples/mainwindows/application/application.pro 0
+ \snippet mainwindows/application/application.pro 0
\c qmake will produce make rules to generate a file called \c
qrc_application.cpp that is linked into the application. This
diff --git a/doc/src/examples/basicdrawing.qdoc b/examples/widgets/doc/basicdrawing.qdoc
index 1c4053f8475..899aa361f8e 100644
--- a/doc/src/examples/basicdrawing.qdoc
+++ b/examples/widgets/doc/basicdrawing.qdoc
@@ -68,7 +68,7 @@
window displaying a \c RenderArea widget in addition to several
parameter widgets.
- \snippet examples/painting/basicdrawing/window.h 0
+ \snippet painting/basicdrawing/window.h 0
We declare the various widgets, and three private slots updating
the \c RenderArea widget: The \c shapeChanged() slot updates the
@@ -83,14 +83,14 @@
In the constructor we create and initialize the various widgets
appearing in the main application window.
- \snippet examples/painting/basicdrawing/window.cpp 1
+ \snippet painting/basicdrawing/window.cpp 1
First we create the \c RenderArea widget that will render the
currently active shape. Then we create the \uicontrol Shape combobox,
and add the associated items (i.e. the different shapes a QPainter
can draw).
- \snippet examples/painting/basicdrawing/window.cpp 2
+ \snippet painting/basicdrawing/window.cpp 2
QPainter's pen is a QPen object; the QPen class defines how a
painter should draw lines and outlines of shapes. A pen has
@@ -103,7 +103,7 @@
We create a QSpinBox for the \uicontrol {Pen Width} parameter.
- \snippet examples/painting/basicdrawing/window.cpp 3
+ \snippet painting/basicdrawing/window.cpp 3
The pen style defines the line type. The default style is solid
(Qt::SolidLine). Setting the style to none (Qt::NoPen) tells the
@@ -117,7 +117,7 @@
items (i.e the values of the Qt::PenStyle, Qt::PenCapStyle and
Qt::PenJoinStyle enums respectively).
- \snippet examples/painting/basicdrawing/window.cpp 4
+ \snippet painting/basicdrawing/window.cpp 4
The QBrush class defines the fill pattern of shapes drawn by a
QPainter. The default brush style is Qt::NoBrush. This style tells
@@ -127,8 +127,8 @@
We create a QComboBox for the \uicontrol {Brush Style} parameter, and add
the associated items (i.e. the values of the Qt::BrushStyle enum).
- \snippet examples/painting/basicdrawing/window.cpp 5
- \snippet examples/painting/basicdrawing/window.cpp 6
+ \snippet painting/basicdrawing/window.cpp 5
+ \snippet painting/basicdrawing/window.cpp 6
Antialiasing is a feature that "smoothes" the pixels to create
more even and less jagged lines, and can be applied using
@@ -138,7 +138,7 @@
We simply create a QCheckBox for the \uicontrol Antialiasing option.
- \snippet examples/painting/basicdrawing/window.cpp 7
+ \snippet painting/basicdrawing/window.cpp 7
The \uicontrol Transformations option implies a manipulation of the
coordinate system that will appear as if the rendered shape is
@@ -148,21 +148,21 @@
QPainter::scale() functions to implement this feature represented
in the main application window by a simple QCheckBox.
- \snippet examples/painting/basicdrawing/window.cpp 8
+ \snippet painting/basicdrawing/window.cpp 8
Then we connect the parameter widgets with their associated slots
using the static QObject::connect() function, ensuring that the \c
RenderArea widget is updated whenever the user changes the shape,
or any of the other parameters.
- \snippet examples/painting/basicdrawing/window.cpp 9
- \snippet examples/painting/basicdrawing/window.cpp 10
+ \snippet painting/basicdrawing/window.cpp 9
+ \snippet painting/basicdrawing/window.cpp 10
Finally, we add the various widgets to a layout, and call the \c
shapeChanged(), \c penChanged(), and \c brushChanged() slots to
initialize the application. We also turn on antialiasing.
- \snippet examples/painting/basicdrawing/window.cpp 11
+ \snippet painting/basicdrawing/window.cpp 11
The \c shapeChanged() slot is called whenever the user changes the
currently active shape.
@@ -185,7 +185,7 @@
add the following line of code to the beginning of the \c
window.cpp file.
- \snippet examples/painting/basicdrawing/window.cpp 0
+ \snippet painting/basicdrawing/window.cpp 0
The QComboBox::itemData() function returns the data as a QVariant,
so we need to cast the data to \c RenderArea::Shape. If there is
@@ -195,20 +195,20 @@
In the end we call the \c RenderArea::setShape() slot to update
the \c RenderArea widget.
- \snippet examples/painting/basicdrawing/window.cpp 12
+ \snippet painting/basicdrawing/window.cpp 12
We call the \c penChanged() slot whenever the user changes any of
the pen parameters. Again we use the QComboBox::itemData()
function to retrieve the parameters, and then we call the \c
RenderArea::setPen() slot to update the \c RenderArea widget.
- \snippet examples/painting/basicdrawing/window.cpp 13
+ \snippet painting/basicdrawing/window.cpp 13
The brushChanged() slot is called whenever the user changes the
brush parameter which we retrieve using the QComboBox::itemData()
function as before.
- \snippet examples/painting/basicdrawing/window.cpp 14
+ \snippet painting/basicdrawing/window.cpp 14
If the brush parameter is a gradient fill, special actions are
required.
@@ -232,7 +232,7 @@
In the end we call \c RenderArea::setBrush() slot to update the \c
RenderArea widget's brush with the QLinearGradient object.
- \snippet examples/painting/basicdrawing/window.cpp 15
+ \snippet painting/basicdrawing/window.cpp 15
A similar pattern of actions, as the one used for QLinearGradient,
is used in the cases of Qt::RadialGradientPattern and
@@ -247,13 +247,13 @@
first argument specifies the center of the conical, and the second
specifies the start angle of the interpolation.
- \snippet examples/painting/basicdrawing/window.cpp 16
+ \snippet painting/basicdrawing/window.cpp 16
If the brush style is Qt::TexturePattern we create a QBrush from a
QPixmap. Then we call \c RenderArea::setBrush() slot to update the
\c RenderArea widget with the newly created brush.
- \snippet examples/painting/basicdrawing/window.cpp 17
+ \snippet painting/basicdrawing/window.cpp 17
Otherwise we simply create a brush with the given style and a
green color, and then call \c RenderArea::setBrush() slot to
@@ -264,7 +264,7 @@
The \c RenderArea class inherits QWidget, and renders multiple
copies of the currently active shape using a QPainter.
- \snippet examples/painting/basicdrawing/renderarea.h 0
+ \snippet painting/basicdrawing/renderarea.h 0
First we define a public \c Shape enum to hold the different
shapes that can be rendered by the widget (i.e the shapes that can
@@ -287,7 +287,7 @@
In the constructor we initialize some of the widget's variables.
- \snippet examples/painting/basicdrawing/renderarea.cpp 0
+ \snippet painting/basicdrawing/renderarea.cpp 0
We set its shape to be a \uicontrol Polygon, its antialiased property to
be false and we load an image into the widget's pixmap
@@ -296,7 +296,7 @@
will be used to render the background. QPalette::Base is typically
white.
- \snippet examples/painting/basicdrawing/renderarea.cpp 2
+ \snippet painting/basicdrawing/renderarea.cpp 2
The \c RenderArea inherits QWidget's \l
{QWidget::sizeHint()}{sizeHint} property holding the recommended
@@ -310,7 +310,7 @@
Our reimplementation of the function returns a QSize with a 400
pixels width and a 200 pixels height.
- \snippet examples/painting/basicdrawing/renderarea.cpp 1
+ \snippet painting/basicdrawing/renderarea.cpp 1
\c RenderArea also inherits QWidget's
\l{QWidget::minimumSizeHint()}{minimumSizeHint} property holding
@@ -324,11 +324,11 @@
Our reimplementation of the function returns a QSize with a 100
pixels width and a 100 pixels height.
- \snippet examples/painting/basicdrawing/renderarea.cpp 3
+ \snippet painting/basicdrawing/renderarea.cpp 3
\codeline
- \snippet examples/painting/basicdrawing/renderarea.cpp 4
+ \snippet painting/basicdrawing/renderarea.cpp 4
\codeline
- \snippet examples/painting/basicdrawing/renderarea.cpp 5
+ \snippet painting/basicdrawing/renderarea.cpp 5
The public \c setShape(), \c setPen() and \c setBrush() slots are
called whenever we want to modify a \c RenderArea widget's shape,
@@ -340,16 +340,16 @@
repaint; instead it schedules a paint event for processing when Qt
returns to the main event loop.
- \snippet examples/painting/basicdrawing/renderarea.cpp 6
+ \snippet painting/basicdrawing/renderarea.cpp 6
\codeline
- \snippet examples/painting/basicdrawing/renderarea.cpp 7
+ \snippet painting/basicdrawing/renderarea.cpp 7
With the \c setAntialiased() and \c setTransformed() slots we
change the state of the properties according to the slot
parameter, and call the QWidget::update() slot to make the changes
visible in the \c RenderArea widget.
- \snippet examples/painting/basicdrawing/renderarea.cpp 8
+ \snippet painting/basicdrawing/renderarea.cpp 8
Then we reimplement the QWidget::paintEvent() function. The first
thing we do is to create the graphical objects we will need to
@@ -373,7 +373,7 @@
In addition we define a start angle and an arc length that we will
use when drawing the \uicontrol Arc, \uicontrol Chord and \uicontrol Pie shapes.
- \snippet examples/painting/basicdrawing/renderarea.cpp 9
+ \snippet painting/basicdrawing/renderarea.cpp 9
We create a QPainter for the \c RenderArea widget, and set the
painters pen and brush according to the \c RenderArea's pen and
@@ -382,7 +382,7 @@
indicates that the engine should antialias edges of primitives if
possible.
- \snippet examples/painting/basicdrawing/renderarea.cpp 10
+ \snippet painting/basicdrawing/renderarea.cpp 10
Finally, we render the multiple copies of the \c RenderArea's
shape. The number of copies is depending on the size of the \c
@@ -397,7 +397,7 @@
will be rendered on top of each other in the top left cormer of
the \c RenderArea widget.
- \snippet examples/painting/basicdrawing/renderarea.cpp 11
+ \snippet painting/basicdrawing/renderarea.cpp 11
If the \uicontrol Transformations parameter option is checked, we do an
additional translation of the coordinate system before we rotate
@@ -409,7 +409,7 @@
Now, when rendering the shape, it will appear as if it was rotated
in three dimensions.
- \snippet examples/painting/basicdrawing/renderarea.cpp 12
+ \snippet painting/basicdrawing/renderarea.cpp 12
Next, we identify the \c RenderArea's shape, and render it using
the associated QPainter drawing function:
@@ -437,7 +437,7 @@
lose the knowledge of this point unless we save the current
painter state \e before we start the translating process.
- \snippet examples/painting/basicdrawing/renderarea.cpp 13
+ \snippet painting/basicdrawing/renderarea.cpp 13
Then, when we are finished rendering a copy of the shape we can
restore the original painter state, with its associated coordinate
diff --git a/doc/src/examples/basicgraphicslayouts.qdoc b/examples/widgets/doc/basicgraphicslayouts.qdoc
index b7023cf9ca7..9f52b3eafa4 100644
--- a/doc/src/examples/basicgraphicslayouts.qdoc
+++ b/examples/widgets/doc/basicgraphicslayouts.qdoc
@@ -40,7 +40,7 @@
The \c Window class is a subclass of QGraphicsWidget. It has a
constructor with a QGraphicsWidget \a parent as its parameter.
- \snippet examples/graphicsview/basicgraphicslayouts/window.h 0
+ \snippet graphicsview/basicgraphicslayouts/window.h 0
\section1 Window Class Implementation
@@ -52,7 +52,7 @@
\c item with a \l{QGraphicsLinearLayout::setStretchFactor()}
{stretchFactor}.
- \snippet examples/graphicsview/basicgraphicslayouts/window.cpp 0
+ \snippet graphicsview/basicgraphicslayouts/window.cpp 0
We repeat the process:
@@ -62,7 +62,7 @@
\li provide a stretch factor.
\endlist
- \snippet examples/graphicsview/basicgraphicslayouts/window.cpp 1
+ \snippet graphicsview/basicgraphicslayouts/window.cpp 1
We then add \c linear to \c windowLayout, nesting two
QGraphicsLinearLayout objects. Apart from the QGraphicsLinearLayout, we
@@ -73,7 +73,7 @@
the \l{QGraphicsGridLayout::}{addItem()} function as shown in the code
snippet below:
- \snippet examples/graphicsview/basicgraphicslayouts/window.cpp 2
+ \snippet graphicsview/basicgraphicslayouts/window.cpp 2
The first item we add to \c grid is placed in the top left cell,
spanning four rows. The next two items are placed in the second column,
@@ -94,7 +94,7 @@
add an item to a layout, it will be automatically reparented to the widget
on which the layout is installed.
- \snippet examples/graphicsview/basicgraphicslayouts/window.cpp 3
+ \snippet graphicsview/basicgraphicslayouts/window.cpp 3
Now that we have set up \c grid and added it to \c windowLayout, we
install \c windowLayout onto the window object using
@@ -112,7 +112,7 @@
{QGraphicsItem::boundingRect()}{boundingRect()} and
{QGraphicsItem::paint()}{paint()}.
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.h 0
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.h 0
The \c LayoutItem class also has a private instance of QPixmap, \c m_pix.
@@ -121,17 +121,17 @@
In \c{LayoutItem}'s constructor, \c m_pix is instantiated and the
\c{block.png} image is loaded into it.
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 0
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 0
We use the Q_UNUSED() macro to prevent the compiler from generating
warnings regarding unused parameters.
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 1
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 1
The idea behind the \c paint() function is to paint the
background rect then paint a rect around the pixmap.
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 2
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 2
The reimplementation of \l{QGraphicsItem::}{boundingRect()}
will set the top left corner at (0,0), and the size of it will be
@@ -139,7 +139,7 @@
\l{QGraphicsLayoutItem::}{geometry()}. This is the area that
we paint within.
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 3
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 3
The reimplementation of \l{QGraphicsLayoutItem::setGeometry()}{setGeometry()}
@@ -148,7 +148,7 @@
\l{QGraphicsItem::prepareGeometryChange()}{prepareGeometryChange()}.
Finally, we move the item according to \c geom.topLeft().
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 4
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 4
Since we don't want the size of the item to be smaller than the pixmap, we
@@ -159,6 +159,6 @@
The preferred size is the same as the minimum size hint, while we set
maximum to be a large value
- \snippet examples/graphicsview/basicgraphicslayouts/layoutitem.cpp 5
+ \snippet graphicsview/basicgraphicslayouts/layoutitem.cpp 5
-*/ \ No newline at end of file
+*/
diff --git a/doc/src/examples/basiclayouts.qdoc b/examples/widgets/doc/basiclayouts.qdoc
index 37d9fcb70af..a0f083ba582 100644
--- a/doc/src/examples/basiclayouts.qdoc
+++ b/examples/widgets/doc/basiclayouts.qdoc
@@ -44,7 +44,7 @@
\section1 Dialog Class Definition
- \snippet examples/layouts/basiclayouts/dialog.h 0
+ \snippet layouts/basiclayouts/dialog.h 0
The \c Dialog class inherits QDialog. It is a custom widget that
displays its child widgets using the geometry managers:
@@ -58,7 +58,7 @@
\section1 Dialog Class Implementation
- \snippet examples/layouts/basiclayouts/dialog.cpp 0
+ \snippet layouts/basiclayouts/dialog.cpp 0
In the constructor, we first use the \c createMenu() function to
create and populate a menu bar and the \c createHorizontalGroupBox()
@@ -70,7 +70,7 @@
three labels and three input fields: a line edit, a combo box and
a spin box.
- \snippet examples/layouts/basiclayouts/dialog.cpp 1
+ \snippet layouts/basiclayouts/dialog.cpp 1
We also create a big text editor and a dialog button box. The
QDialogButtonBox class is a widget that presents buttons in a
@@ -84,7 +84,7 @@
it is automatically reparented to the widget the layout is
installed on.
- \snippet examples/layouts/basiclayouts/dialog.cpp 2
+ \snippet layouts/basiclayouts/dialog.cpp 2
The main layout is a QVBoxLayout object. QVBoxLayout is a
convenience class for a box layout with vertical orientation.
@@ -97,14 +97,14 @@
placed in a column. The corresponding convenience classes are
QHBoxLayout and QVBoxLayout, respectively.
- \snippet examples/layouts/basiclayouts/dialog.cpp 3
+ \snippet layouts/basiclayouts/dialog.cpp 3
When we call the QLayout::setMenuBar() function, the layout places
the provided menu bar at the top of the parent widget, and outside
the widget's \l {QWidget::contentsRect()}{content margins}. All
child widgets are placed below the bottom edge of the menu bar.
- \snippet examples/layouts/basiclayouts/dialog.cpp 4
+ \snippet layouts/basiclayouts/dialog.cpp 4
We use the QBoxLayout::addWidget() function to add the widgets to
the end of layout. Each widget will get at least its minimum size
@@ -113,25 +113,25 @@
and any excess space is shared according to these stretch
factors. If not specified, a widget's stretch factor is 0.
- \snippet examples/layouts/basiclayouts/dialog.cpp 5
+ \snippet layouts/basiclayouts/dialog.cpp 5
We install the main layout on the \c Dialog widget using the
QWidget::setLayout() function, and all of the layout's widgets are
automatically reparented to be children of the \c Dialog widget.
- \snippet examples/layouts/basiclayouts/dialog.cpp 6
+ \snippet layouts/basiclayouts/dialog.cpp 6
In the private \c createMenu() function we create a menu bar, and
add a pull-down \uicontrol File menu containing an \uicontrol Exit option.
- \snippet examples/layouts/basiclayouts/dialog.cpp 7
+ \snippet layouts/basiclayouts/dialog.cpp 7
When we create the horizontal group box, we use a QHBoxLayout as
the internal layout. We create the buttons we want to put in the
group box, add them to the layout and install the layout on the
group box.
- \snippet examples/layouts/basiclayouts/dialog.cpp 8
+ \snippet layouts/basiclayouts/dialog.cpp 8
In the \c createGridGroupBox() function we use a QGridLayout which
lays out widgets in a grid. It takes the space made available to
@@ -139,7 +139,7 @@
into rows and columns, and puts each widget it manages into the
correct cell.
- \snippet examples/layouts/basiclayouts/dialog.cpp 9
+ \snippet layouts/basiclayouts/dialog.cpp 9
For each row in the grid we create a label and an associated line
edit, and add them to the layout. The QGridLayout::addWidget()
@@ -147,7 +147,7 @@
needs the row and column specifying the grid cell to put the
widget in.
- \snippet examples/layouts/basiclayouts/dialog.cpp 10
+ \snippet layouts/basiclayouts/dialog.cpp 10
QGridLayout::addWidget() can in addition take arguments
specifying the number of rows and columns the cell will be
@@ -160,7 +160,7 @@
could, for example, align a widget with the right edge by
specifying the alignment to be Qt::AlignRight.
- \snippet examples/layouts/basiclayouts/dialog.cpp 11
+ \snippet layouts/basiclayouts/dialog.cpp 11
Each column in a grid layout has a stretch factor. The stretch
factor is set using QGridLayout::setColumnStretch() and determines
@@ -178,7 +178,7 @@
stretch factor for rows, as well as a QGridLayout::setRowStretch()
function.
- \snippet examples/layouts/basiclayouts/dialog.cpp 12
+ \snippet layouts/basiclayouts/dialog.cpp 12
In the \c createFormGroupBox() function, we use a QFormLayout
to neatly arrange objects into two columns - name and field.
diff --git a/doc/src/examples/basicsortfiltermodel.qdoc b/examples/widgets/doc/basicsortfiltermodel.qdoc
index 0ecf4a0629f..0ecf4a0629f 100644
--- a/doc/src/examples/basicsortfiltermodel.qdoc
+++ b/examples/widgets/doc/basicsortfiltermodel.qdoc
diff --git a/doc/src/examples/blurpicker.qdoc b/examples/widgets/doc/blurpicker.qdoc
index bd57acb0610..bd57acb0610 100644
--- a/doc/src/examples/blurpicker.qdoc
+++ b/examples/widgets/doc/blurpicker.qdoc
diff --git a/doc/src/examples/borderlayout.qdoc b/examples/widgets/doc/borderlayout.qdoc
index aaff2dda1d4..aaff2dda1d4 100644
--- a/doc/src/examples/borderlayout.qdoc
+++ b/examples/widgets/doc/borderlayout.qdoc
diff --git a/doc/src/examples/boxes.qdoc b/examples/widgets/doc/boxes.qdoc
index aa34a61bc38..aa34a61bc38 100644
--- a/doc/src/examples/boxes.qdoc
+++ b/examples/widgets/doc/boxes.qdoc
diff --git a/doc/src/examples/calculator.qdoc b/examples/widgets/doc/calculator.qdoc
index 914b8c52993..8480d904772 100644
--- a/doc/src/examples/calculator.qdoc
+++ b/examples/widgets/doc/calculator.qdoc
@@ -49,7 +49,7 @@
\section1 Calculator Class Definition
- \snippet examples/widgets/calculator/calculator.h 0
+ \snippet widgets/calculator/calculator.h 0
The \c Calculator class provides a simple calculator widget. It
inherits from QDialog and has several private slots associated
@@ -65,8 +65,8 @@
multiplicative operators (\uicontrol{\unicode{215}}, \uicontrol{\unicode{247}}). The other buttons
have their own slots.
- \snippet examples/widgets/calculator/calculator.h 1
- \snippet examples/widgets/calculator/calculator.h 2
+ \snippet widgets/calculator/calculator.h 1
+ \snippet widgets/calculator/calculator.h 2
The private \c createButton() function is used as part of the
widget construction. \c abortOperation() is called whenever a
@@ -74,12 +74,12 @@
applied to a negative number. \c calculate() applies a binary
operator (\uicontrol{+}, \uicontrol{-}, \uicontrol{\unicode{215}}, or \uicontrol{\unicode{247}}).
- \snippet examples/widgets/calculator/calculator.h 3
- \snippet examples/widgets/calculator/calculator.h 4
- \snippet examples/widgets/calculator/calculator.h 5
- \snippet examples/widgets/calculator/calculator.h 6
- \snippet examples/widgets/calculator/calculator.h 7
- \snippet examples/widgets/calculator/calculator.h 8
+ \snippet widgets/calculator/calculator.h 3
+ \snippet widgets/calculator/calculator.h 4
+ \snippet widgets/calculator/calculator.h 5
+ \snippet widgets/calculator/calculator.h 6
+ \snippet widgets/calculator/calculator.h 7
+ \snippet widgets/calculator/calculator.h 8
These variables, together with the contents of the calculator
display (a QLineEdit), encode the state of the calculator:
@@ -125,24 +125,24 @@
they can be applied immediately since the operand is already
known when the operator button is clicked.
- \snippet examples/widgets/calculator/calculator.h 9
+ \snippet widgets/calculator/calculator.h 9
\codeline
- \snippet examples/widgets/calculator/calculator.h 10
+ \snippet widgets/calculator/calculator.h 10
Finally, we declare the variables associated with the display and the
buttons used to display numerals.
\section1 Calculator Class Implementation
- \snippet examples/widgets/calculator/calculator.cpp 0
+ \snippet widgets/calculator/calculator.cpp 0
In the constructor, we initialize the calculator's state. The \c
pendingAdditiveOperator and \c pendingMultiplicativeOperator
variables don't need to be initialized explicitly, because the
QString constructor initializes them to empty strings.
- \snippet examples/widgets/calculator/calculator.cpp 1
- \snippet examples/widgets/calculator/calculator.cpp 2
+ \snippet widgets/calculator/calculator.cpp 1
+ \snippet widgets/calculator/calculator.cpp 2
We create the QLineEdit representing the calculator's display and
set up some of its properties. In particular, we set it to be
@@ -150,13 +150,13 @@
We also enlarge \c{display}'s font by 8 points.
- \snippet examples/widgets/calculator/calculator.cpp 4
+ \snippet widgets/calculator/calculator.cpp 4
For each button, we call the private \c createButton() function with
the proper text label and a slot to connect to the button.
- \snippet examples/widgets/calculator/calculator.cpp 5
- \snippet examples/widgets/calculator/calculator.cpp 6
+ \snippet widgets/calculator/calculator.cpp 5
+ \snippet widgets/calculator/calculator.cpp 6
The layout is handled by a single QGridLayout. The
QLayout::setSizeConstraint() call ensures that the \c Calculator
@@ -172,7 +172,7 @@
column; for these we must also pass a row span and a column
span.
- \snippet examples/widgets/calculator/calculator.cpp 7
+ \snippet widgets/calculator/calculator.cpp 7
Pressing one of the calculator's digit buttons will emit the
button's \l{QToolButton::clicked()}{clicked()} signal, which will
@@ -198,8 +198,8 @@
At the end, we append the new digit to the value in the display.
- \snippet examples/widgets/calculator/calculator.cpp 8
- \snippet examples/widgets/calculator/calculator.cpp 9
+ \snippet widgets/calculator/calculator.cpp 8
+ \snippet widgets/calculator/calculator.cpp 9
The \c unaryOperatorClicked() slot is called whenever one of the
unary operator buttons is clicked. Again a pointer to the clicked
@@ -215,8 +215,8 @@
digit will be considered as a new operand, instead of being
appended to the current value.
- \snippet examples/widgets/calculator/calculator.cpp 10
- \snippet examples/widgets/calculator/calculator.cpp 11
+ \snippet widgets/calculator/calculator.cpp 10
+ \snippet widgets/calculator/calculator.cpp 11
The \c additiveOperatorClicked() slot is called when the user
clicks the \uicontrol{+} or \uicontrol{-} button.
@@ -226,16 +226,16 @@
multiplicative operators, since these have higher precedence than
additive operators:
- \snippet examples/widgets/calculator/calculator.cpp 12
- \snippet examples/widgets/calculator/calculator.cpp 13
+ \snippet widgets/calculator/calculator.cpp 12
+ \snippet widgets/calculator/calculator.cpp 13
If \uicontrol{\unicode{215}} or \uicontrol{\unicode{247}} has been clicked earlier, without clicking
\uicontrol{=} afterward, the current value in the display is the right
operand of the \uicontrol{\unicode{215}} or \uicontrol{\unicode{247}} operator and we can finally
perform the operation and update the display.
- \snippet examples/widgets/calculator/calculator.cpp 14
- \snippet examples/widgets/calculator/calculator.cpp 15
+ \snippet widgets/calculator/calculator.cpp 14
+ \snippet widgets/calculator/calculator.cpp 15
If \uicontrol{+} or \uicontrol{-} has been clicked earlier, \c sumSoFar is
the left operand and the current value in the display is the
@@ -243,8 +243,8 @@
operator, \c sumSoFar is simply set to be the text in the
display.
- \snippet examples/widgets/calculator/calculator.cpp 16
- \snippet examples/widgets/calculator/calculator.cpp 17
+ \snippet widgets/calculator/calculator.cpp 16
+ \snippet widgets/calculator/calculator.cpp 17
Finally, we can take care of the operator that was just clicked.
Since we don't have the right-hand operand yet, we store the clicked
@@ -252,49 +252,49 @@
apply the operation later, when we have a right operand, with \c
sumSoFar as the left operand.
- \snippet examples/widgets/calculator/calculator.cpp 18
+ \snippet widgets/calculator/calculator.cpp 18
The \c multiplicativeOperatorClicked() slot is similar to \c
additiveOperatorClicked(). We don't need to worry about pending
additive operators here, because multiplicative operators have
precedence over additive operators.
- \snippet examples/widgets/calculator/calculator.cpp 20
+ \snippet widgets/calculator/calculator.cpp 20
Like in \c additiveOperatorClicked(), we start by handing any
pending multiplicative and additive operators. Then we display \c
sumSoFar and reset the variable to zero. Resetting the variable
to zero is necessary to avoid counting the value twice.
- \snippet examples/widgets/calculator/calculator.cpp 22
+ \snippet widgets/calculator/calculator.cpp 22
The \c pointClicked() slot adds a decimal point to the content in
\c display.
- \snippet examples/widgets/calculator/calculator.cpp 24
+ \snippet widgets/calculator/calculator.cpp 24
The \c changeSignClicked() slot changes the sign of the value in
\c display. If the current value is positive, we prepend a minus
sign; if the current value is negative, we remove the first
character from the value (the minus sign).
- \snippet examples/widgets/calculator/calculator.cpp 26
+ \snippet widgets/calculator/calculator.cpp 26
The \c backspaceClicked() removes the rightmost character in the
display. If we get an empty string, we show "0" and set \c
waitingForOperand to \c true.
- \snippet examples/widgets/calculator/calculator.cpp 28
+ \snippet widgets/calculator/calculator.cpp 28
The \c clear() slot resets the current operand to zero. It is
equivalent to clicking \uicontrol Backspace enough times to erase the
entire operand.
- \snippet examples/widgets/calculator/calculator.cpp 30
+ \snippet widgets/calculator/calculator.cpp 30
The \c clearAll() slot resets the calculator to its initial state.
- \snippet examples/widgets/calculator/calculator.cpp 32
+ \snippet widgets/calculator/calculator.cpp 32
The \c clearMemory() slot erases the sum kept in memory, \c
readMemory() displays the sum as an operand, \c setMemory()
@@ -304,18 +304,18 @@
equalClicked() to update \c sumSoFar and the value in the
display.
- \snippet examples/widgets/calculator/calculator.cpp 34
+ \snippet widgets/calculator/calculator.cpp 34
The private \c createButton() function is called from the
constructor to create calculator buttons.
- \snippet examples/widgets/calculator/calculator.cpp 36
+ \snippet widgets/calculator/calculator.cpp 36
The private \c abortOperation() function is called whenever a
calculation fails. It resets the calculator state and displays
"####".
- \snippet examples/widgets/calculator/calculator.cpp 38
+ \snippet widgets/calculator/calculator.cpp 38
The private \c calculate() function performs a binary operation.
The right operand is given by \c rightOperand. For additive
@@ -327,7 +327,7 @@
Let's now take a look at the \c Button class:
- \snippet examples/widgets/calculator/button.h 0
+ \snippet widgets/calculator/button.h 0
The \c Button class has a convenience constructor that takes a
text label and a parent widget, and it reimplements QWidget::sizeHint()
@@ -336,7 +336,7 @@
\section1 Button Class Implementation
- \snippet examples/widgets/calculator/button.cpp 0
+ \snippet widgets/calculator/button.cpp 0
The buttons' appearance is determined by the layout of the
calculator widget through the size and
@@ -348,8 +348,8 @@
expand to fill available space. Without this call, the different
buttons in a same column would have different widths.
- \snippet examples/widgets/calculator/button.cpp 1
- \snippet examples/widgets/calculator/button.cpp 2
+ \snippet widgets/calculator/button.cpp 1
+ \snippet widgets/calculator/button.cpp 2
In \l{QWidget::sizeHint()}{sizeHint()}, we try to return a size
that looks good for most buttons. We reuse the size hint of the
diff --git a/doc/src/examples/calendar.qdoc b/examples/widgets/doc/calendar.qdoc
index aea98056698..b7fa7c86175 100644
--- a/doc/src/examples/calendar.qdoc
+++ b/examples/widgets/doc/calendar.qdoc
@@ -52,7 +52,7 @@
allow the user to change the month and year shown. The font size used for the
text can also be adjusted.
- \snippet examples/richtext/calendar/mainwindow.h 0
+ \snippet richtext/calendar/mainwindow.h 0
The private \c insertCalendar() function performs most of the work, relying on
the \c fontSize and \c selectedDate variables to write useful information to
@@ -63,7 +63,7 @@
The \c MainWindow constructor sets up the user interface and initializes
variables used to generate a calendar for each month.
- \snippet examples/richtext/calendar/mainwindow.cpp 0
+ \snippet richtext/calendar/mainwindow.cpp 0
We begin by setting default values for the selected date that will be highlighted
in the calendar and the font size to be used. Since we are using a QMainWindow
@@ -74,7 +74,7 @@
spin box for the year. These widgets are configured to provide a reasonable range
of values for the user to try:
- \snippet examples/richtext/calendar/mainwindow.cpp 1
+ \snippet richtext/calendar/mainwindow.cpp 1
We use the \c selectedDate object to obtain the current month and year, and we
set these in the combobox and spin box:
@@ -82,7 +82,7 @@
The font size is displayed in a spin box which we restrict to a sensible range
of values:
- \snippet examples/richtext/calendar/mainwindow.cpp 2
+ \snippet richtext/calendar/mainwindow.cpp 2
We construct an editor and use the \c insertCalendar() function to create
a calendar for it. Each calendar is displayed in the same text editor; in
@@ -93,14 +93,14 @@
effect on the appearance of the calendar unless we make some signal-slot
connections:
- \snippet examples/richtext/calendar/mainwindow.cpp 3
+ \snippet richtext/calendar/mainwindow.cpp 3
The signals are connected to some simple slots in the \c MainWindow class
which we will describe later.
We create layouts to manage the widgets we constructed:
- \snippet examples/richtext/calendar/mainwindow.cpp 4
+ \snippet richtext/calendar/mainwindow.cpp 4
Finally, the central widget is set for the window.
@@ -109,7 +109,7 @@
and \c fontSize variables, to produce a suitable plan for the specified
month and year.
- \snippet examples/richtext/calendar/mainwindow.cpp 5
+ \snippet richtext/calendar/mainwindow.cpp 5
We begin by clearing the editor's rich text document, and obtain a text
cursor from the editor that we will use to add content. We also create a
@@ -120,7 +120,7 @@
page with equal space to the left and right of it. All of these properties are
set in a QTextTableFormat object:
- \snippet examples/richtext/calendar/mainwindow.cpp 6
+ \snippet richtext/calendar/mainwindow.cpp 6
Each cell in the table will be padded and spaced to make the text easier to
read.
@@ -129,14 +129,14 @@
percentage widths for each of them and set the constraints in the
QTextTableFormat:
- \snippet examples/richtext/calendar/mainwindow.cpp 7
+ \snippet richtext/calendar/mainwindow.cpp 7
The constraints used for the column widths are only useful if the table has
an appropriate number of columns. With the format for the table defined, we
construct a new table with one row and seven columns at the current cursor
position:
- \snippet examples/richtext/calendar/mainwindow.cpp 8
+ \snippet richtext/calendar/mainwindow.cpp 8
We only need one row to start with; more can be added as we need them. Using
this approach means that we do not need to perform any date calculations
@@ -146,14 +146,14 @@
the cursor is automatically moved inside the newly inserted object. This means
that we can immediately start modifying the table from within:
- \snippet examples/richtext/calendar/mainwindow.cpp 9
+ \snippet richtext/calendar/mainwindow.cpp 9
Since the table has an outer frame, we obtain the frame and its format so that
we can customize it. After making the changes we want, we set the frame's format
using the modified format object. We have given the table an outer border one
pixel wide.
- \snippet examples/richtext/calendar/mainwindow.cpp 10
+ \snippet richtext/calendar/mainwindow.cpp 10
In a similar way, we obtain the cursor's current character format and
create customized formats based on it.
@@ -163,7 +163,7 @@
insert text. The following loop inserts the days of the week into the table
as bold text:
- \snippet examples/richtext/calendar/mainwindow.cpp 11
+ \snippet richtext/calendar/mainwindow.cpp 11
For each day of the week, we obtain an existing table cell in the first row
(row 0) using the table's \l{QTextTable::cellAt()}{cellAt()} function. Since
@@ -176,7 +176,7 @@
purpose, and we use this cursor to insert text using the \c boldFormat
character format that we created earlier:
- \snippet examples/richtext/calendar/mainwindow.cpp 12
+ \snippet richtext/calendar/mainwindow.cpp 12
Inserting text into document objects usually follows the same pattern.
Each object can provide a new cursor that corresponds to the first valid
@@ -189,7 +189,7 @@
encountered, it is inserted with a special format (created earlier) that
makes it stand out:
- \snippet examples/richtext/calendar/mainwindow.cpp 13
+ \snippet richtext/calendar/mainwindow.cpp 13
We add a new row to the table at the end of each week only if the next week
falls within the currently selected month.
@@ -197,24 +197,24 @@
For each calendar that we create, we change the window title to reflect the
currently selected month and year:
- \snippet examples/richtext/calendar/mainwindow.cpp 14
+ \snippet richtext/calendar/mainwindow.cpp 14
The \c insertCalendar() function relies on up-to-date values for the month,
year, and font size. These are set in the following slots:
- \snippet examples/richtext/calendar/mainwindow.cpp 15
+ \snippet richtext/calendar/mainwindow.cpp 15
The \c setFontSize() function simply changes the private \c fontSize variable
before updating the calendar.
- \snippet examples/richtext/calendar/mainwindow.cpp 16
+ \snippet richtext/calendar/mainwindow.cpp 16
The \c setMonth slot is called when the QComboBox used to select the month is
updated. The value supplied is the currently selected row in the combobox.
We add 1 to this value to obtain a valid month number, and create a new QDate
based on the existing one. The calendar is then updated to use this new date.
- \snippet examples/richtext/calendar/mainwindow.cpp 17
+ \snippet richtext/calendar/mainwindow.cpp 17
The \c setYear() slot is called when the QDateTimeEdit used to select the
year is updated. The value supplied is a QDate object; this makes
diff --git a/doc/src/examples/calendarwidget.qdoc b/examples/widgets/doc/calendarwidget.qdoc
index 45423cc2c6d..ad15bbaa0cc 100644
--- a/doc/src/examples/calendarwidget.qdoc
+++ b/examples/widgets/doc/calendarwidget.qdoc
@@ -84,9 +84,9 @@
Here is the definition of the \c Window class:
- \snippet examples/widgets/calendarwidget/window.h 0
+ \snippet widgets/calendarwidget/window.h 0
\dots
- \snippet examples/widgets/calendarwidget/window.h 1
+ \snippet widgets/calendarwidget/window.h 1
As is often the case with classes that represent self-contained
windows, most of the API is private. We will review the private
@@ -96,7 +96,7 @@
Let's now review the class implementation, starting with the constructor:
- \snippet examples/widgets/calendarwidget/window.cpp 0
+ \snippet widgets/calendarwidget/window.cpp 0
We start by creating the four \l{QGroupBox}es and their child
widgets (including the QCalendarWidget) using four private \c
@@ -116,7 +116,7 @@
Let's move on to the \c createPreviewGroupBox() function:
- \snippet examples/widgets/calendarwidget/window.cpp 9
+ \snippet widgets/calendarwidget/window.cpp 9
The \uicontrol Preview group box contains only one widget: the
QCalendarWidget. We set it up, connect its
@@ -128,7 +128,7 @@
and several widgets are set up the same way; we look at parts of
its implementation here and skip the rest:
- \snippet examples/widgets/calendarwidget/window.cpp 10
+ \snippet widgets/calendarwidget/window.cpp 10
\dots
We start with the setup of the \uicontrol{Week starts on} combobox.
@@ -142,7 +142,7 @@
C++ will happily convert any enum value to \c int.
\dots
- \snippet examples/widgets/calendarwidget/window.cpp 11
+ \snippet widgets/calendarwidget/window.cpp 11
\dots
After creating the widgets, we connect the signals and slots. We
@@ -150,14 +150,14 @@
public slots provided by QComboBox.
\dots
- \snippet examples/widgets/calendarwidget/window.cpp 12
+ \snippet widgets/calendarwidget/window.cpp 12
At the end of the function, we call the slots that update the calendar to ensure
that the QCalendarWidget is synchronized with the other widgets on startup.
Let's now take a look at the \c createDatesGroupBox() private function:
- \snippet examples/widgets/calendarwidget/window.cpp 13
+ \snippet widgets/calendarwidget/window.cpp 13
In this function, we create the \uicontrol {Minimum Date}, \uicontrol {Maximum Date},
and \uicontrol {Current Date} editor widgets,
@@ -166,9 +166,9 @@
set in \c createPrivewGroupBox(); we can then set the widgets
default values to the calendars values.
- \snippet examples/widgets/calendarwidget/window.cpp 14
+ \snippet widgets/calendarwidget/window.cpp 14
\dots
- \snippet examples/widgets/calendarwidget/window.cpp 15
+ \snippet widgets/calendarwidget/window.cpp 15
We connect the \c currentDateEdit's
\l{QDateEdit::}{dateChanged()} signal directly to the calendar's
@@ -180,20 +180,20 @@
Here is the \c createTextFormatsGroup() function:
- \snippet examples/widgets/calendarwidget/window.cpp 16
+ \snippet widgets/calendarwidget/window.cpp 16
We set up the \uicontrol {Weekday Color} and \uicontrol {Weekend Color} comboboxes
using \c createColorCombo(), which instantiates a QComboBox and
populates it with colors ("Red", "Blue", etc.).
- \snippet examples/widgets/calendarwidget/window.cpp 17
+ \snippet widgets/calendarwidget/window.cpp 17
The \uicontrol {Header Text Format} combobox lets the user change the
text format (bold, italic, or plain) used for horizontal and
vertical headers. The \uicontrol {First Friday in blue} and \uicontrol {May 1
in red} check box affect the rendering of specific dates.
- \snippet examples/widgets/calendarwidget/window.cpp 18
+ \snippet widgets/calendarwidget/window.cpp 18
We connect the check boxes and comboboxes to various private
slots. The \uicontrol {First Friday in blue} and \uicontrol {May 1 in red}
@@ -201,7 +201,7 @@
which is also called when the calendar switches month.
\dots
- \snippet examples/widgets/calendarwidget/window.cpp 19
+ \snippet widgets/calendarwidget/window.cpp 19
At the end of \c createTextFormatsGroupBox(), we call private
slots to synchronize the QCalendarWidget with the other widgets.
@@ -210,7 +210,7 @@
functions. Let's now take a look at the other private functions
and slots.
- \snippet examples/widgets/calendarwidget/window.cpp 20
+ \snippet widgets/calendarwidget/window.cpp 20
In \c createColorCombo(), we create a combobox and populate it with
standard colors. The second argument to QComboBox::addItem()
@@ -219,7 +219,7 @@
This function was used to set up the \uicontrol {Weekday Color}
and \uicontrol {Weekend Color} comboboxes.
- \snippet examples/widgets/calendarwidget/window.cpp 1
+ \snippet widgets/calendarwidget/window.cpp 1
When the user changes the \uicontrol {Week starts on} combobox's
value, \c firstDayChanged() is invoked with the index of the
@@ -231,12 +231,12 @@
verticalHeaderChanged() are very similar to \c firstDayChanged(),
so they are omitted.
- \snippet examples/widgets/calendarwidget/window.cpp 2
+ \snippet widgets/calendarwidget/window.cpp 2
The \c selectedDateChanged() updates the \uicontrol{Current Date}
editor to reflect the current state of the QCalendarWidget.
- \snippet examples/widgets/calendarwidget/window.cpp 3
+ \snippet widgets/calendarwidget/window.cpp 3
When the user changes the minimum date, we tell the
QCalenderWidget. We also update the \uicontrol {Maximum Date} editor,
@@ -244,12 +244,12 @@
date, QCalendarWidget will automatically adapt its maximum date
to avoid a contradicting state.
- \snippet examples/widgets/calendarwidget/window.cpp 4
+ \snippet widgets/calendarwidget/window.cpp 4
\c maximumDateChanged() is implemented similarly to \c
minimumDateChanged().
- \snippet examples/widgets/calendarwidget/window.cpp 5
+ \snippet widgets/calendarwidget/window.cpp 5
Each combobox item has a QColor object as user data corresponding to the
item's text. After fetching the colors from the comboboxes, we
@@ -260,13 +260,13 @@
specify various character formatting information. In this
example, we only show a subset of the possibilities.
- \snippet examples/widgets/calendarwidget/window.cpp 6
+ \snippet widgets/calendarwidget/window.cpp 6
\c weekendFormatChanged() is the same as \c
weekdayFormatChanged(), except that it affects Saturday and
Sunday instead of Monday to Friday.
- \snippet examples/widgets/calendarwidget/window.cpp 7
+ \snippet widgets/calendarwidget/window.cpp 7
The \c reformatHeaders() slot is called when the user
changes the text format of
@@ -275,7 +275,7 @@
have been to store \l{QTextCharFormat} values alongside the combobox
items.)
- \snippet examples/widgets/calendarwidget/window.cpp 8
+ \snippet widgets/calendarwidget/window.cpp 8
In \c reformatCalendarPage(), we set the text format of the first
Friday in the month and May 1 in the current year. The text
diff --git a/doc/src/examples/charactermap.qdoc b/examples/widgets/doc/charactermap.qdoc
index 5fbcae1fad7..fee2a421563 100644
--- a/doc/src/examples/charactermap.qdoc
+++ b/examples/widgets/doc/charactermap.qdoc
@@ -59,7 +59,7 @@ and interaction features.
The class definition looks like this:
-\snippet examples/widgets/charactermap/characterwidget.h 0
+\snippet widgets/charactermap/characterwidget.h 0
The widget does not contain any other widgets, so it must provide its own
size hint to allow its contents to be displayed correctly.
@@ -87,7 +87,7 @@ Since the widget is to be used as a simple canvas, the constructor just
calls the base class constructor and defines some default values for
private data members.
-\snippet examples/widgets/charactermap/characterwidget.cpp 0
+\snippet widgets/charactermap/characterwidget.cpp 0
We initialize \c currentKey with a value of -1 to indicate
that no character is initially selected. We enable mouse tracking to
@@ -96,21 +96,21 @@ allow us to follow the movement of the cursor across the widget.
The class provides two functions to allow the font and style to be set up.
Each of these modify the widget's display font and call update():
-\snippet examples/widgets/charactermap/characterwidget.cpp 1
+\snippet widgets/charactermap/characterwidget.cpp 1
\codeline
-\snippet examples/widgets/charactermap/characterwidget.cpp 2
+\snippet widgets/charactermap/characterwidget.cpp 2
We use a fixed size font for the display. Similarly, a fixed size hint is
provided by the sizeHint() function:
-\snippet examples/widgets/charactermap/characterwidget.cpp 3
+\snippet widgets/charactermap/characterwidget.cpp 3
Three standard event functions are implemented so that the widget
can respond to clicks, provide tooltips, and render the available
characters. The paintEvent() shows how the contents of the widget are
arranged and displayed:
-\snippet examples/widgets/charactermap/characterwidget.cpp 6
+\snippet widgets/charactermap/characterwidget.cpp 6
A QPainter is created for the widget and, in all cases, we ensure that the
widget's background is painted. The painter's font is set to the
@@ -119,19 +119,19 @@ user-specified display font.
The area of the widget that needs to be redrawn is used to determine which
characters need to be displayed:
-\snippet examples/widgets/charactermap/characterwidget.cpp 7
+\snippet widgets/charactermap/characterwidget.cpp 7
Using integer division, we obtain the row and column numbers of each
characters that should be displayed, and we draw a square on the widget
for each character displayed.
-\snippet examples/widgets/charactermap/characterwidget.cpp 8
-\snippet examples/widgets/charactermap/characterwidget.cpp 9
+\snippet widgets/charactermap/characterwidget.cpp 8
+\snippet widgets/charactermap/characterwidget.cpp 9
The symbols for each character in the array are drawn within each square,
with the symbol for the most recently selected character displayed in red:
-\snippet examples/widgets/charactermap/characterwidget.cpp 10
+\snippet widgets/charactermap/characterwidget.cpp 10
We do not need to take into account the difference between the area
displayed in the viewport and the area we are drawing on because
@@ -139,7 +139,7 @@ everything outside the visible area will be clipped.
The mousePressEvent() defines how the widget responds to mouse clicks.
-\snippet examples/widgets/charactermap/characterwidget.cpp 5
+\snippet widgets/charactermap/characterwidget.cpp 5
We are only interested when the user clicks with the left mouse button
over the widget. When this happens, we calculate which character was
@@ -158,7 +158,7 @@ The mouseMoveEvent() maps the mouse cursor's position in global
coordinates to widget coordinates, and determines the character that
was clicked by performing the calculation
-\snippet examples/widgets/charactermap/characterwidget.cpp 4
+\snippet widgets/charactermap/characterwidget.cpp 4
The tooltip is given a position defined in global coordinates.
@@ -171,7 +171,7 @@ interface.
The class definition looks like this:
-\snippet examples/widgets/charactermap/mainwindow.h 0
+\snippet widgets/charactermap/mainwindow.h 0
The main window contains various widgets that are used to control how
the characters will be displayed, and defines the findFonts() function
@@ -188,7 +188,7 @@ some standard widgets (two comboboxes, a line edit, and a push button).
We also construct a CharacterWidget custom widget, and add a QScrollArea
so that we can view its contents:
-\snippet examples/widgets/charactermap/mainwindow.cpp 0
+\snippet widgets/charactermap/mainwindow.cpp 0
QScrollArea provides a viewport onto the \c CharacterWidget when we set
its widget and handles much of the work needed to provide a scrolling
@@ -198,11 +198,11 @@ The font combo box is automatically popuplated with a list of available
fonts. We list the available styles for the current font in the style
combobox using the following function:
-\snippet examples/widgets/charactermap/mainwindow.cpp 1
+\snippet widgets/charactermap/mainwindow.cpp 1
The line edit and push button are used to supply text to the clipboard:
-\snippet examples/widgets/charactermap/mainwindow.cpp 2
+\snippet widgets/charactermap/mainwindow.cpp 2
We also obtain a clipboard object so that we can send text entered by the
user to other applications.
@@ -211,7 +211,7 @@ Most of the signals emitted in the example come from standard widgets.
We connect these signals to slots in this class, and to the slots provided
by other widgets.
-\snippet examples/widgets/charactermap/mainwindow.cpp 4
+\snippet widgets/charactermap/mainwindow.cpp 4
The font combobox's
\l{QFontComboBox::currentFontChanged()}{currentFontChanged()} signal is
@@ -225,7 +225,7 @@ directly to the character widget.
The final two connections allow characters to be selected in the character
widget, and text to be inserted into the clipboard:
-\snippet examples/widgets/charactermap/mainwindow.cpp 5
+\snippet widgets/charactermap/mainwindow.cpp 5
The character widget emits the characterSelected() custom signal when
the user clicks on a character, and this is handled by the insertCharacter()
@@ -235,20 +235,20 @@ the clicked() signal, and we handle this with the updateClipboard() function.
The remaining code in the constructor sets up the layout of the central widget,
and provides a window title:
-\snippet examples/widgets/charactermap/mainwindow.cpp 6
+\snippet widgets/charactermap/mainwindow.cpp 6
The font combobox is automatically populated with a list of available font
families. The styles that can be used with each font are found by the
findStyles() function. This function is called whenever the user selects a
different font in the font combobox.
-\snippet examples/widgets/charactermap/mainwindow.cpp 7
+\snippet widgets/charactermap/mainwindow.cpp 7
We begin by recording the currently selected style, and we clear the
style combobox so that we can insert the styles associated with the
current font family.
-\snippet examples/widgets/charactermap/mainwindow.cpp 8
+\snippet widgets/charactermap/mainwindow.cpp 8
We use the font database to collect the styles that are available for the
current font, and insert them into the style combobox. The current item is
@@ -259,7 +259,7 @@ widget and the main window's push button. The insertCharacter() function is
used to insert characters from the character widget when the user clicks a
character:
-\snippet examples/widgets/charactermap/mainwindow.cpp 9
+\snippet widgets/charactermap/mainwindow.cpp 9
The character is inserted into the line edit at the current cursor position.
@@ -267,7 +267,7 @@ The main window's "To clipboard" push button is connected to the
updateClipboard() function so that, when it is clicked, the clipboard is
updated to contain the contents of the line edit:
-\snippet examples/widgets/charactermap/mainwindow.cpp 10
+\snippet widgets/charactermap/mainwindow.cpp 10
We copy all the text from the line edit to the clipboard, but we do not clear
the line edit.
diff --git a/doc/src/examples/chart.qdoc b/examples/widgets/doc/chart.qdoc
index 947eddf1c96..44263d1027f 100644
--- a/doc/src/examples/chart.qdoc
+++ b/examples/widgets/doc/chart.qdoc
@@ -51,7 +51,7 @@
indexAt(). However, the view needs to maintain strict control over its look and
feel, so we also provide implementations for a number of other functions:
- \snippet examples/itemviews/chart/pieview.h 0
+ \snippet itemviews/chart/pieview.h 0
diff --git a/doc/src/examples/chip.qdoc b/examples/widgets/doc/chip.qdoc
index 966c16900a4..966c16900a4 100644
--- a/doc/src/examples/chip.qdoc
+++ b/examples/widgets/doc/chip.qdoc
diff --git a/doc/src/examples/classwizard.qdoc b/examples/widgets/doc/classwizard.qdoc
index eec9b6ac516..0c357b72866 100644
--- a/doc/src/examples/classwizard.qdoc
+++ b/examples/widgets/doc/classwizard.qdoc
@@ -82,14 +82,14 @@
Here's the \c ClassWizard definition:
- \snippet examples/dialogs/classwizard/classwizard.h 0
+ \snippet dialogs/classwizard/classwizard.h 0
The class reimplements QDialog's \l{QDialog::}{accept()} slot.
This slot is called when the user clicks \uicontrol{Finish}.
Here's the constructor:
- \snippet examples/dialogs/classwizard/classwizard.cpp 1
+ \snippet dialogs/classwizard/classwizard.cpp 1
We instantiate the five pages and insert them into the wizard
using QWizard::addPage(). The order in which they are inserted
@@ -102,11 +102,11 @@
dialog's background in \l{QWizard::}{MacStyle}. (See \l{Elements
of a Wizard Page} for more information.)
- \snippet examples/dialogs/classwizard/classwizard.cpp 3
- \snippet examples/dialogs/classwizard/classwizard.cpp 4
+ \snippet dialogs/classwizard/classwizard.cpp 3
+ \snippet dialogs/classwizard/classwizard.cpp 4
\dots
- \snippet examples/dialogs/classwizard/classwizard.cpp 5
- \snippet examples/dialogs/classwizard/classwizard.cpp 6
+ \snippet dialogs/classwizard/classwizard.cpp 5
+ \snippet dialogs/classwizard/classwizard.cpp 6
If the user clicks \uicontrol Finish, we extract the information from
the various pages using QWizard::field() and generate the files.
@@ -121,9 +121,9 @@
classwizard.cpp, together with \c ClassWizard. We will start with
the easiest page:
- \snippet examples/dialogs/classwizard/classwizard.h 1
+ \snippet dialogs/classwizard/classwizard.h 1
\codeline
- \snippet examples/dialogs/classwizard/classwizard.cpp 7
+ \snippet dialogs/classwizard/classwizard.cpp 7
A page inherits from QWizardPage. We set a
\l{QWizardPage::}{title} and a
@@ -139,13 +139,13 @@
The second page is defined and implemented as follows:
- \snippet examples/dialogs/classwizard/classwizard.h 2
+ \snippet dialogs/classwizard/classwizard.h 2
\codeline
- \snippet examples/dialogs/classwizard/classwizard.cpp 9
+ \snippet dialogs/classwizard/classwizard.cpp 9
\dots
- \snippet examples/dialogs/classwizard/classwizard.cpp 12
+ \snippet dialogs/classwizard/classwizard.cpp 12
\dots
- \snippet examples/dialogs/classwizard/classwizard.cpp 13
+ \snippet dialogs/classwizard/classwizard.cpp 13
First, we set the page's \l{QWizardPage::}{title},
\l{QWizardPage::}{subTitle}, and \l{QWizard::LogoPixmap}{logo
@@ -165,13 +165,13 @@
The third page is defined and implemented as follows:
- \snippet examples/dialogs/classwizard/classwizard.h 3
+ \snippet dialogs/classwizard/classwizard.h 3
\codeline
- \snippet examples/dialogs/classwizard/classwizard.cpp 14
+ \snippet dialogs/classwizard/classwizard.cpp 14
\dots
- \snippet examples/dialogs/classwizard/classwizard.cpp 15
+ \snippet dialogs/classwizard/classwizard.cpp 15
\codeline
- \snippet examples/dialogs/classwizard/classwizard.cpp 16
+ \snippet dialogs/classwizard/classwizard.cpp 16
The code in the constructor is very similar to what we did for \c
ClassInfoPage, so we skipped most of it.
diff --git a/doc/src/examples/codeeditor.qdoc b/examples/widgets/doc/codeeditor.qdoc
index 695ac5c4cee..695ac5c4cee 100644
--- a/doc/src/examples/codeeditor.qdoc
+++ b/examples/widgets/doc/codeeditor.qdoc
diff --git a/doc/src/examples/coloreditorfactory.qdoc b/examples/widgets/doc/coloreditorfactory.qdoc
index 1806446fb75..a2c02f8c1dc 100644
--- a/doc/src/examples/coloreditorfactory.qdoc
+++ b/examples/widgets/doc/coloreditorfactory.qdoc
@@ -66,7 +66,7 @@
We take a closer look at the constructor:
- \snippet examples/itemviews/coloreditorfactory/window.cpp 0
+ \snippet itemviews/coloreditorfactory/window.cpp 0
The QStandardItemEditorCreator is a convenience class that
inherits QItemEditorCreatorBase. Its constructor takes a template
@@ -88,7 +88,7 @@
The ColorListEditor inherits QComboBox and lets the user
select a QColor from its popup list.
- \snippet examples/itemviews/coloreditorfactory/colorlisteditor.h 0
+ \snippet itemviews/coloreditorfactory/colorlisteditor.h 0
QItemDelegate manages the interaction between the editor and
the model, i.e., it retrieves data to edit from the model and
@@ -105,19 +105,19 @@
populateList(), which we will look at later. We move on to the
\c color() function:
- \snippet examples/itemviews/coloreditorfactory/colorlisteditor.cpp 0
+ \snippet itemviews/coloreditorfactory/colorlisteditor.cpp 0
We return the data that is selected in the combobox. The data
is stored in the Qt::DecorationRole as the color is then also
displayed in the popup list (as shown in the image above).
- \snippet examples/itemviews/coloreditorfactory/colorlisteditor.cpp 1
+ \snippet itemviews/coloreditorfactory/colorlisteditor.cpp 1
The \c findData() function searches the items in the combobox
and returns the index of the item that has \c color in the
Qt::Decoration role.
- \snippet examples/itemviews/coloreditorfactory/colorlisteditor.cpp 2
+ \snippet itemviews/coloreditorfactory/colorlisteditor.cpp 2
Qt knows some predefined colors by name. We simply loop
through these to fill our editor with items.
diff --git a/doc/src/examples/combowidgetmapper.qdoc b/examples/widgets/doc/combowidgetmapper.qdoc
index dae95ddb26b..949014930dd 100644
--- a/doc/src/examples/combowidgetmapper.qdoc
+++ b/examples/widgets/doc/combowidgetmapper.qdoc
@@ -51,7 +51,7 @@
The class provides a constructor, a slot to keep the buttons up to date,
and a private function to set up the model:
- \snippet examples/itemviews/combowidgetmapper/window.h Window definition
+ \snippet itemviews/combowidgetmapper/window.h Window definition
In addition to the QDataWidgetMapper object and the controls used to make
up the user interface, we use a QStandardItemModel to hold our data and
@@ -63,7 +63,7 @@
The constructor of the \c Window class can be explained in three parts.
In the first part, we set up the widgets used for the user interface:
- \snippet examples/itemviews/combowidgetmapper/window.cpp Set up widgets
+ \snippet itemviews/combowidgetmapper/window.cpp Set up widgets
Note that we set up the mapping the combo box in the same way as for other
widgets, but that we apply its own model to it so that it will display
@@ -73,7 +73,7 @@
Next, we set up the widget mapper, relating each input widget to a column
in the model specified by the call to \l{QDataWidgetMapper::}{setModel()}:
- \snippet examples/itemviews/combowidgetmapper/window.cpp Set up the mapper
+ \snippet itemviews/combowidgetmapper/window.cpp Set up the mapper
For the combo box, we pass an extra argument to tell the widget mapper
which property to relate to values from the model. As a result, the user
@@ -92,14 +92,14 @@
The rest of the constructor is very similar to that of the
\l{Simple Widget Mapper Example}:
- \snippet examples/itemviews/combowidgetmapper/window.cpp Set up connections and layouts
+ \snippet itemviews/combowidgetmapper/window.cpp Set up connections and layouts
The model is initialized in the window's \c{setupModel()} function. Here,
we create a standard model with 5 rows and 3 columns. In each row, we
insert a name, address, and a value that indicates the type of address.
The address types are stored in a string list model.
- \snippet examples/itemviews/combowidgetmapper/window.cpp Set up the model
+ \snippet itemviews/combowidgetmapper/window.cpp Set up the model
As we insert each row into the model, like a record in a database, we
store values that correspond to items in \c typeModel for each person's
@@ -113,7 +113,7 @@
We show the implementation of the \c{updateButtons()} slot for
completeness:
- \snippet examples/itemviews/combowidgetmapper/window.cpp Slot for updating the buttons
+ \snippet itemviews/combowidgetmapper/window.cpp Slot for updating the buttons
\omit
\section1 Delegate Class Definition and Implementation
@@ -121,7 +121,7 @@
The delegate we use to mediate interaction between the widget mapper and
the input widgets is a small QItemDelegate subclass:
- \snippet examples/itemviews/combowidgetmapper/delegate.h Delegate class definition
+ \snippet itemviews/combowidgetmapper/delegate.h Delegate class definition
This provides implementations of the two standard functions used to pass
data between editor widgets and the model (see the \l{Delegate Classes}
@@ -134,7 +134,7 @@
referred to by the model index supplied and processes it according to
the presence of a \c currentIndex property in the editor widget:
- \snippet examples/itemviews/combowidgetmapper/delegate.cpp setEditorData implementation
+ \snippet itemviews/combowidgetmapper/delegate.cpp setEditorData implementation
If, like QComboBox, the editor widget has this property, it is set using
the value from the model. Since we are passing around QVariant values,
@@ -149,7 +149,7 @@
process, taking the value stored in the widget's \c currentIndex property
and storing it back in the model:
- \snippet examples/itemviews/combowidgetmapper/delegate.cpp setModelData implementation
+ \snippet itemviews/combowidgetmapper/delegate.cpp setModelData implementation
\endomit
\section1 Summary and Further Reading
diff --git a/doc/src/examples/composition.qdoc b/examples/widgets/doc/composition.qdoc
index 6aca01d2558..6aca01d2558 100644
--- a/doc/src/examples/composition.qdoc
+++ b/examples/widgets/doc/composition.qdoc
diff --git a/doc/src/examples/concentriccircles.qdoc b/examples/widgets/doc/concentriccircles.qdoc
index 22b0be8fb83..67bc125dbe9 100644
--- a/doc/src/examples/concentriccircles.qdoc
+++ b/examples/widgets/doc/concentriccircles.qdoc
@@ -74,7 +74,7 @@
The CircleWidget class inherits QWidget, and is a custom widget
which renders several animated concentric circles.
- \snippet examples/painting/concentriccircles/circlewidget.h 0
+ \snippet painting/concentriccircles/circlewidget.h 0
We declare the \c floatBased and \c antialiased variables to hold
whether an instance of the class should be rendered with integer
@@ -97,7 +97,7 @@
In the constructor we make the widget's rendering integer based
and aliased by default:
- \snippet examples/painting/concentriccircles/circlewidget.cpp 0
+ \snippet painting/concentriccircles/circlewidget.cpp 0
We initialize the widget's \c frameNo variable, and set the
widget's background color using the QWidget::setBackgroundColor()
@@ -111,9 +111,9 @@
useful. The widget can also make use of extra space, so it should
get as much space as possible.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 1
+ \snippet painting/concentriccircles/circlewidget.cpp 1
\codeline
- \snippet examples/painting/concentriccircles/circlewidget.cpp 2
+ \snippet painting/concentriccircles/circlewidget.cpp 2
The public \c setFloatBased() and \c setAntialiased() functions
update the widget's rendering preferences, i.e. whether the widget
@@ -124,9 +124,9 @@
QWidget::update() function, forcing a repaint of the widget with
the new rendering preferences.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 3
+ \snippet painting/concentriccircles/circlewidget.cpp 3
\codeline
- \snippet examples/painting/concentriccircles/circlewidget.cpp 4
+ \snippet painting/concentriccircles/circlewidget.cpp 4
The default implementations of the QWidget::minimumSizeHint() and
QWidget::sizeHint() functions return invalid sizes if there is no
@@ -136,14 +136,14 @@
We reimplement the functions to give the widget minimum and
preferred sizes which are reasonable within our application.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 5
+ \snippet painting/concentriccircles/circlewidget.cpp 5
The nextAnimationFrame() slot simply increments the \c frameNo
variable's value, and calls the QWidget::update() function which
schedules a paint event for processing when Qt returns to the main
event loop.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 6
+ \snippet painting/concentriccircles/circlewidget.cpp 6
A paint event is a request to repaint all or part of the
widget. The \c paintEvent() function is an event handler that can
@@ -158,7 +158,7 @@
widget's cocentric circles. The translation ensures that the
center of the circles will be equivalent to the widget's center.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 7
+ \snippet painting/concentriccircles/circlewidget.cpp 7
When painting a circle, we use the number of "animation frames" to
determine the alpha channel of the circle's color. The alpha
@@ -166,7 +166,7 @@
fully transparent color, while 255 represents a fully opaque
color.
- \snippet examples/painting/concentriccircles/circlewidget.cpp 8
+ \snippet painting/concentriccircles/circlewidget.cpp 8
If the calculated alpha channel is fully transparent, we don't
draw anything since that would be equivalent to drawing a white
@@ -190,7 +190,7 @@
window rendering four \c {CircleWidget}s using different
combinations of precision and aliasing.
- \snippet examples/painting/concentriccircles/window.h 0
+ \snippet painting/concentriccircles/window.h 0
We declare the various components of the main window, i.e., the text
labels and a double array that will hold reference to the four \c
@@ -199,12 +199,12 @@
\section1 Window Class Implementation
- \snippet examples/painting/concentriccircles/window.cpp 0
+ \snippet painting/concentriccircles/window.cpp 0
In the constructor, we first create the various labels and put
them in a QGridLayout.
- \snippet examples/painting/concentriccircles/window.cpp 1
+ \snippet painting/concentriccircles/window.cpp 1
Then we create a QTimer. The QTimer class is a high-level
programming interface for timers, and provides repetitive and
@@ -215,7 +215,7 @@
them to the layout), we connect the QTimer::timeout() signal to
each of the widgets' \c nextAnimationFrame() slots.
- \snippet examples/painting/concentriccircles/window.cpp 2
+ \snippet painting/concentriccircles/window.cpp 2
Before we set the layout and window title for our main window, we
make the timer start with a timeout interval of 100 milliseconds,
@@ -224,7 +224,7 @@
four \c {CircleWidget}s, every 100 millisecond which is the reason
the circles appear as animated.
- \snippet examples/painting/concentriccircles/window.cpp 3
+ \snippet painting/concentriccircles/window.cpp 3
The private \c createLabel() function is implemented to simlify
the constructor.
diff --git a/doc/src/examples/configdialog.qdoc b/examples/widgets/doc/configdialog.qdoc
index 9acea72a3b1..9acea72a3b1 100644
--- a/doc/src/examples/configdialog.qdoc
+++ b/examples/widgets/doc/configdialog.qdoc
diff --git a/doc/src/examples/customsortfiltermodel.qdoc b/examples/widgets/doc/customsortfiltermodel.qdoc
index 61230a7b9a8..4dce820f9c2 100644
--- a/doc/src/examples/customsortfiltermodel.qdoc
+++ b/examples/widgets/doc/customsortfiltermodel.qdoc
@@ -80,7 +80,7 @@
that our filter can recognize a valid range of dates, and to
control the sorting behavior.
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.h 0
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.h 0
We want to be able to filter our data by specifying a given period
of time. For that reason, we implement the custom \c
@@ -100,7 +100,7 @@
The \c MySortFilterProxyModel constructor is trivial, passing the
parent parameter on to the base class constructor:
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 0
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 0
The most interesting parts of the \c MySortFilterProxyModel
implementation are the reimplementations of
@@ -110,7 +110,7 @@
functions. Let's first take a look at our customized \c lessThan()
function.
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 4
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 4
We want to sort the senders by their email addresses. The \l
{QSortFilterProxyModel::}{lessThan()} function is used as the <
@@ -119,7 +119,7 @@
to be able to sort the senders by their email addresses we must
first identify the address within the given string:
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 6
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 6
We use QRegExp to define a pattern for the addresses we are looking
for. The QRegExp::indexIn() function attempts to find a match in
@@ -132,7 +132,7 @@
subexpressions have indexes starting from 1 (excluding
non-capturing parentheses).
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 3
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 3
The \l
{QSortFilterProxyModel::filterAcceptsRow()}{filterAcceptsRow()}
@@ -141,7 +141,7 @@
is accepted if either the subject or the sender contains the given
regular expression, and the date is valid.
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 7
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 7
We use our custom \c dateInRange() function to determine if a date
is valid.
@@ -150,9 +150,9 @@
time, we also implement functions for getting and setting the
minimum and maximum dates:
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 1
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 1
\codeline
- \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 2
+ \snippet itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 2
The get functions, \c filterMinimumDate() and \c
filterMaximumDate(), are trivial and implemented as inline
@@ -166,7 +166,7 @@
The \c CustomFilter class inherits QWidget, and provides this
example's main application window:
- \snippet examples/itemviews/customsortfiltermodel/window.h 0
+ \snippet itemviews/customsortfiltermodel/window.h 0
We implement two private slots, \c textFilterChanged() and \c
dateFilterChanged(), to respond to the user changing the filter
@@ -182,7 +182,7 @@
source model already exists and start by creating an instance of
our custom proxy model:
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 0
+ \snippet itemviews/customsortfiltermodel/window.cpp 0
We set the \l
{QSortFilterProxyModel::dynamicSortFilter}{dynamicSortFilter}
@@ -194,13 +194,13 @@
The main application window shows views of both the source model
and the proxy model. The source view is quite simple:
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 1
+ \snippet itemviews/customsortfiltermodel/window.cpp 1
The QTreeView class provides a default model/view implementation
of a tree view; our view implements a tree representation of items
in the application's source model.
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 2
+ \snippet itemviews/customsortfiltermodel/window.cpp 2
The QTreeView class provides a default model/view implementation
of a tree view; our view implements a tree representation of items
@@ -211,14 +211,14 @@
controlling the various aspects of transforming the source model's
data structure:
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 3
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 4
+ \snippet itemviews/customsortfiltermodel/window.cpp 3
+ \snippet itemviews/customsortfiltermodel/window.cpp 4
Note that whenever the user changes one of the filtering options,
we must explicitly reapply the filter. This is done by connecting
the various editors to functions that update the proxy model.
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 5
+ \snippet itemviews/customsortfiltermodel/window.cpp 5
The sorting will be handled by the view. All we have to do is to
enable sorting for our proxy view by setting the
@@ -226,7 +226,7 @@
default). Then we add all the filtering widgets and the proxy view
to a layout that we install on a corresponding group box.
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 6
+ \snippet itemviews/customsortfiltermodel/window.cpp 6
Finally, after putting our two group boxes into another layout
that we install on our main application widget, we customize the
@@ -236,7 +236,7 @@
function, calling the \c Window::setSourceModel() function to make
the application use it:
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 7
+ \snippet itemviews/customsortfiltermodel/window.cpp 7
The QSortFilterProxyModel::setSourceModel() function makes the
proxy model process the data in the given model, in this case out
@@ -245,7 +245,7 @@
model for the view to present. Note that the latter function will
also create and set a new selection model.
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 8
+ \snippet itemviews/customsortfiltermodel/window.cpp 8
The \c textFilterChanged() function is called whenever the user
changes the filter pattern or the case sensitivity.
@@ -261,7 +261,7 @@
{QSortFilterProxyModel::}{setFilterRegExp()} function also updates
the model.
- \snippet examples/itemviews/customsortfiltermodel/window.cpp 9
+ \snippet itemviews/customsortfiltermodel/window.cpp 9
The \c dateFilterChanged() function is called whenever the user
modifies the range of valid dates. We retrieve the new dates from
@@ -276,7 +276,7 @@
model by creating the model in the \c main () function. First we
create the application, then we create the source model:
- \snippet examples/itemviews/customsortfiltermodel/main.cpp 0
+ \snippet itemviews/customsortfiltermodel/main.cpp 0
The \c createMailModel() function is a convenience function
provided to simplify the constructor. All it does is to create and
diff --git a/doc/src/examples/deform.qdoc b/examples/widgets/doc/deform.qdoc
index 8195f90ffa6..8195f90ffa6 100644
--- a/doc/src/examples/deform.qdoc
+++ b/examples/widgets/doc/deform.qdoc
diff --git a/doc/src/examples/diagramscene.qdoc b/examples/widgets/doc/diagramscene.qdoc
index ac9ca2f2945..b61a936d52e 100644
--- a/doc/src/examples/diagramscene.qdoc
+++ b/examples/widgets/doc/diagramscene.qdoc
@@ -84,7 +84,7 @@
\section1 MainWindow Class Definition
- \snippet examples/graphicsview/diagramscene/mainwindow.h 0
+ \snippet graphicsview/diagramscene/mainwindow.h 0
The \c MainWindow class creates and lays out the widgets in a
QMainWindow. The class forwards input from the widgets to the
@@ -101,7 +101,7 @@
We start with a look at the constructor:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 0
+ \snippet graphicsview/diagramscene/mainwindow.cpp 0
In the constructor we call methods to create the widgets and
layouts of the example before we create the diagram scene.
@@ -120,7 +120,7 @@
high level of detail as it does not deal with graphics framework
specific functionality. Here is its implementation:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 21
+ \snippet graphicsview/diagramscene/mainwindow.cpp 21
This part of the function sets up the tabbed widget item that
contains the flowchart shapes. An exclusive QButtonGroup always
@@ -134,14 +134,14 @@
The buttons of the background tabbed widget item is set up in the
same way, so we skip to the creation of the tool box:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 22
+ \snippet graphicsview/diagramscene/mainwindow.cpp 22
We set the preferred size of the toolbox as its maximum. This
way, more space is given to the graphics view.
Here is the \c createActions() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 23
+ \snippet graphicsview/diagramscene/mainwindow.cpp 23
We show an example of the creation of an action. The
functionality the actions trigger is discussed in the slots we
@@ -151,7 +151,7 @@
The is the \c createMenus() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 24
+ \snippet graphicsview/diagramscene/mainwindow.cpp 24
We create the three menus' of the example.
@@ -163,9 +163,9 @@
fillColorToolButton is created. This button lets the user select a
color for the diagram items.
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 25
+ \snippet graphicsview/diagramscene/mainwindow.cpp 25
\dots
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 26
+ \snippet graphicsview/diagramscene/mainwindow.cpp 26
We set the menu of the tool button with
\l{QToolButton::}{setMenu()}. We need the \c fillAction QAction
@@ -178,11 +178,11 @@
createColorToolButtonIcon() we create the icon for the button.
\dots
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 27
+ \snippet graphicsview/diagramscene/mainwindow.cpp 27
Here is the \c createBackgroundCellWidget() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 28
+ \snippet graphicsview/diagramscene/mainwindow.cpp 28
This function creates \l{QWidget}s containing a tool button
and a label. The widgets created with this function are used for
@@ -190,7 +190,7 @@
Here is the \c createCellWidget() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 29
+ \snippet graphicsview/diagramscene/mainwindow.cpp 29
This function returns a QWidget containing a QToolButton with
an image of one of the \c DiagramItems, i.e., flowchart shapes.
@@ -203,7 +203,7 @@
Here is the \c createColorMenu() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 30
+ \snippet graphicsview/diagramscene/mainwindow.cpp 30
This function creates a color menu that is used as the
drop-down menu for the tool buttons in the \c colorToolBar. We
@@ -212,7 +212,7 @@
Here is the \c createColorToolButtonIcon() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 31
+ \snippet graphicsview/diagramscene/mainwindow.cpp 31
This function is used to create the QIcon of the \c
fillColorToolButton, \c fontColorToolButton, and \c
@@ -222,7 +222,7 @@
Here is the \c createColorIcon() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 32
+ \snippet graphicsview/diagramscene/mainwindow.cpp 32
This function creates an icon with a filled rectangle in the
color of \a color. It is used for creating icons for the color
@@ -231,7 +231,7 @@
Here is the \c backgroundButtonGroupClicked() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 1
+ \snippet graphicsview/diagramscene/mainwindow.cpp 1
In this function we set the QBrush that is used to draw the
background of the diagramscene. The background can be a grid of
@@ -245,7 +245,7 @@
Here is the implementation of \c buttonGroupClicked():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 2
+ \snippet graphicsview/diagramscene/mainwindow.cpp 2
This slot is called when a button in \c buttonGroup is checked.
When a button is checked the user can click on the graphics view
@@ -263,7 +263,7 @@
Here is the implementation of \c deleteItem():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 3
+ \snippet graphicsview/diagramscene/mainwindow.cpp 3
This slot deletes the selected item, if any, from the scene. It
deletes the arrows first in order to avoid to delete them twice. If
@@ -273,7 +273,7 @@
This is the implementation of pointerGroupClicked():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 4
+ \snippet graphicsview/diagramscene/mainwindow.cpp 4
The \c pointerTypeGroup decides whether the scene is in ItemMove
or InsertLine mode. This button group is exclusive, i.e., only
@@ -284,7 +284,7 @@
Here is the \c bringToFront() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 5
+ \snippet graphicsview/diagramscene/mainwindow.cpp 5
Several items may collide, i.e., overlap, with each other in
the scene. This slot is called when the user requests that an
@@ -299,7 +299,7 @@
Here is the \c sendToBack() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 6
+ \snippet graphicsview/diagramscene/mainwindow.cpp 6
This slot works in the same way as \c bringToFront() described
above, but sets a z-value that is lower than items the item that
@@ -307,7 +307,7 @@
This is the implementation of \c itemInserted():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 7
+ \snippet graphicsview/diagramscene/mainwindow.cpp 7
This slot is called from the \c DiagramScene when an item has been
added to the scene. We set the mode of the scene back to the mode
@@ -317,14 +317,14 @@
Here is the implementation of \c textInserted():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 8
+ \snippet graphicsview/diagramscene/mainwindow.cpp 8
We simply set the mode of the scene back to the mode it had before
the text was inserted.
Here is the \c currentFontChanged() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 9
+ \snippet graphicsview/diagramscene/mainwindow.cpp 9
When the user requests a font change, by using one of the
widgets in the \c fontToolBar, we create a new QFont object and
@@ -333,7 +333,7 @@
Here is the \c fontSizeChanged() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 10
+ \snippet graphicsview/diagramscene/mainwindow.cpp 10
When the user requests a font change, by using one of the
widgets in the \c fontToolBar, we create a new QFont object and
@@ -342,7 +342,7 @@
Here is the implementation of \c sceneScaleChanged():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 11
+ \snippet graphicsview/diagramscene/mainwindow.cpp 11
The user can increase or decrease the scale, with the \c
sceneScaleCombo, the scene is drawn in.
@@ -351,7 +351,7 @@
Here is the \c textColorChanged() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 12
+ \snippet graphicsview/diagramscene/mainwindow.cpp 12
This slot is called when an item in the drop-down menu of the \c
fontColorToolButton is pressed. We need to change the icon on
@@ -362,7 +362,7 @@
Here is the \c itemColorChanged() implementation:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 13
+ \snippet graphicsview/diagramscene/mainwindow.cpp 13
This slot handles requests for changing the color of \c
DiagramItems in the same manner as \c textColorChanged() does for
@@ -370,7 +370,7 @@
Here is the implementation of \c lineColorChanged():
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 14
+ \snippet graphicsview/diagramscene/mainwindow.cpp 14
This slot handles requests for changing the color of \c Arrows in
the same manner that \c textColorChanged() does it for \c
@@ -378,7 +378,7 @@
Here is the \c textButtonTriggered() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 15
+ \snippet graphicsview/diagramscene/mainwindow.cpp 15
\c textAction points to the QAction of the currently selected menu item
in the \c fontColorToolButton's color drop-down menu. We have set
@@ -388,7 +388,7 @@
Here is the \c fillButtonTriggered() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 16
+ \snippet graphicsview/diagramscene/mainwindow.cpp 16
\c fillAction points to the selected menu item in the drop-down
menu of \c fillColorToolButton(). We can therefore use the data of
@@ -396,7 +396,7 @@
Here is the \c lineButtonTriggered() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 17
+ \snippet graphicsview/diagramscene/mainwindow.cpp 17
\c lineAction point to the selected item in the drop-down menu of
\c lineColorToolButton. We use its data when we set the arrow
@@ -404,7 +404,7 @@
Here is the \c handleFontChange() function:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 18
+ \snippet graphicsview/diagramscene/mainwindow.cpp 18
\c handleFontChange() is called when any of the widgets that show
font properties changes. We create a new QFont object and set its
@@ -414,7 +414,7 @@
Here is the \c itemSelected() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 19
+ \snippet graphicsview/diagramscene/mainwindow.cpp 19
This slot is called when an item in the \c DiagramScene is
selected. In the case of this example it is only text items that
@@ -426,7 +426,7 @@
This is the \c about() slot:
- \snippet examples/graphicsview/diagramscene/mainwindow.cpp 20
+ \snippet graphicsview/diagramscene/mainwindow.cpp 20
This slot displays an about box for the example when the user
selects the about menu item from the help menu.
@@ -439,7 +439,7 @@
class.
- \snippet examples/graphicsview/diagramscene/diagramscene.h 0
+ \snippet graphicsview/diagramscene/diagramscene.h 0
In the \c DiagramScene a mouse click can give three different
actions: the item under the mouse can be moved, an item may be
@@ -465,7 +465,7 @@
We start with the constructor:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 0
+ \snippet graphicsview/diagramscene/diagramscene.cpp 0
The scene uses \c myItemMenu to set the context menu when it
creates \c DiagramItems. We set the default mode to \c
@@ -474,7 +474,7 @@
Here is the \c setLineColor() function:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 1
+ \snippet graphicsview/diagramscene/diagramscene.cpp 1
The \c isItemChange function returns true if an \c Arrow item is
selected in the scene in which case we want to change its color.
@@ -483,14 +483,14 @@
Here is the \c setTextColor() function:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 2
+ \snippet graphicsview/diagramscene/diagramscene.cpp 2
This function sets the color of \c DiagramTextItems equal to the
way \c setLineColor() sets the color of \c Arrows.
Here is the \c setItemColor() function:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 3
+ \snippet graphicsview/diagramscene/diagramscene.cpp 3
This function sets the color the scene will use when creating
\c DiagramItems. It also changes the color of a selected \c
@@ -498,14 +498,14 @@
This is the implementation of \c setFont():
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 4
+ \snippet graphicsview/diagramscene/diagramscene.cpp 4
Set the font to use for new and selected, if a text item is
selected, \c DiagramTextItems.
This is the implementation of \c editorLostFocus() slot:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 5
+ \snippet graphicsview/diagramscene/diagramscene.cpp 5
\c DiagramTextItems emit a signal when they loose focus, which is
connected to this slot. We remove the item if it has no text.
@@ -516,13 +516,13 @@
different depending on which mode the \c DiagramScene is in. We
examine its implementation for each mode:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 6
+ \snippet graphicsview/diagramscene/diagramscene.cpp 6
We simply create a new \c DiagramItem and add it to the scene at
the position the mouse was pressed. Note that the origin of its
local coordinate system will be under the mouse pointer position.
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 7
+ \snippet graphicsview/diagramscene/diagramscene.cpp 7
The user adds \c Arrows to the scene by stretching a line between
the items the arrow should connect. The start of the line is fixed
@@ -533,7 +533,7 @@
We will see how this is implemented later; here we simply add the
line.
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 8
+ \snippet graphicsview/diagramscene/diagramscene.cpp 8
The \c DiagramTextItem is editable when the
Qt::TextEditorInteraction flag is set, else it is movable by the
@@ -541,7 +541,7 @@
items in the scene, so we set the value to a number higher
than other items in the scene.
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 9
+ \snippet graphicsview/diagramscene/diagramscene.cpp 9
We are in MoveItem mode if we get to the default switch; we
can then call the QGraphicsScene implementation, which
@@ -553,7 +553,7 @@
This is the \c mouseMoveEvent() function:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 10
+ \snippet graphicsview/diagramscene/diagramscene.cpp 10
We must draw the line if we are in InsertMode and the mouse button
is pressed down (the line is not 0). As discussed in \c
@@ -566,14 +566,14 @@
In the \c mouseReleaseEvent() function we need to check if an arrow
should be added to the scene:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 11
+ \snippet graphicsview/diagramscene/diagramscene.cpp 11
First we need to get the items (if any) under the line's start
and end points. The line itself is the first item at these points,
so we remove it from the lists. As a precaution, we check if the
lists are empty, but this should never happen.
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 12
+ \snippet graphicsview/diagramscene/diagramscene.cpp 12
Now we check if there are two different \c DiagramItems under
the lines start and end points. If there are we can create an \c
@@ -582,11 +582,11 @@
and end points to the items. We set the z-value of the arrow to
-1000.0 because we always want it to be drawn under the items.
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 13
+ \snippet graphicsview/diagramscene/diagramscene.cpp 13
Here is the \c isItemChange() function:
- \snippet examples/graphicsview/diagramscene/diagramscene.cpp 14
+ \snippet graphicsview/diagramscene/diagramscene.cpp 14
The scene has single selection, i.e., only one item can be
selected at any given time. The foreach will then loop one time
@@ -597,7 +597,7 @@
\section1 DiagramItem Class Definition
- \snippet examples/graphicsview/diagramscene/diagramitem.h 0
+ \snippet graphicsview/diagramscene/diagramitem.h 0
The \c DiagramItem represents a flowchart shape in the \c
DiagramScene. It inherits QGraphicsPolygonItem and has a polygon
@@ -622,7 +622,7 @@
We start with a look at the constructor:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 0
+ \snippet graphicsview/diagramscene/diagramitem.cpp 0
In the constructor we create the items polygon according to
\a diagramType. \l{QGraphicsItem}s are not movable or selectable
@@ -630,7 +630,7 @@
Here is the \c removeArrow() function:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 1
+ \snippet graphicsview/diagramscene/diagramitem.cpp 1
\c removeArrow() is used to remove \c Arrow items when they
or \c DiagramItems they are connected to are removed from the
@@ -638,7 +638,7 @@
Here is the \c removeArrows() function:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 2
+ \snippet graphicsview/diagramscene/diagramitem.cpp 2
This function is called when the item is removed from the scene
and removes all arrows that are connected to this item. The arrow
@@ -647,13 +647,13 @@
Here is the \c addArrow() function:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 3
+ \snippet graphicsview/diagramscene/diagramitem.cpp 3
This function simply adds the \a arrow to the items \c arrows list.
Here is the \c image() function:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 4
+ \snippet graphicsview/diagramscene/diagramitem.cpp 4
This function draws the polygon of the item onto a QPixmap. In
this example we use this to create icons for the tool buttons in
@@ -661,7 +661,7 @@
Here is the \c contextMenuEvent() function:
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 5
+ \snippet graphicsview/diagramscene/diagramitem.cpp 5
We show the context menu. As right mouse clicks, which shows the
menu, don't select items by default we set the item selected with
@@ -671,7 +671,7 @@
This is the implementation of \c itemChange():
- \snippet examples/graphicsview/diagramscene/diagramitem.cpp 6
+ \snippet graphicsview/diagramscene/diagramitem.cpp 6
If the item has moved, we need to update the positions of the
arrows connected to it. The implementation of QGraphicsItem does
@@ -686,7 +686,7 @@
DiagramTextItem the editing starts with a double click leaving
single click available to interact with and move it.
- \snippet examples/graphicsview/diagramscene/diagramtextitem.h 0
+ \snippet graphicsview/diagramscene/diagramtextitem.h 0
We use \c itemChange() and \c focusOutEvent() to notify the
\c DiagramScene when the text item loses focus and gets selected.
@@ -698,14 +698,14 @@
We start with the constructor:
- \snippet examples/graphicsview/diagramscene/diagramtextitem.cpp 0
+ \snippet graphicsview/diagramscene/diagramtextitem.cpp 0
We simply set the item movable and selectable, as these flags are
off by default.
Here is the \c itemChange() function:
- \snippet examples/graphicsview/diagramscene/diagramtextitem.cpp 1
+ \snippet graphicsview/diagramscene/diagramtextitem.cpp 1
When the item is selected we emit the selectedChanged signal. The
\c MainWindow uses this signal to update the widgets that display
@@ -713,7 +713,7 @@
Here is the \c focusOutEvent() function:
- \snippet examples/graphicsview/diagramscene/diagramtextitem.cpp 2
+ \snippet graphicsview/diagramscene/diagramtextitem.cpp 2
\c DiagramScene uses the signal emitted when the text item looses
focus to remove the item if it is empty, i.e., it contains no
@@ -721,7 +721,7 @@
This is the implementation of \c mouseDoubleClickEvent():
- \snippet examples/graphicsview/diagramscene/diagramtextitem.cpp 5
+ \snippet graphicsview/diagramscene/diagramtextitem.cpp 5
When we receive a double click event, we make the item editable by calling
QGraphicsTextItem::setTextInteractionFlags(). We then forward the
@@ -736,7 +736,7 @@
selections. The class inherits QGraphicsLine item, and draws the
arrowhead and moves with the items it connects.
- \snippet examples/graphicsview/diagramscene/arrow.h 0
+ \snippet graphicsview/diagramscene/arrow.h 0
The item's color can be set with \c setColor().
@@ -757,14 +757,14 @@
The constructor of the \c Arrow class looks like this:
- \snippet examples/graphicsview/diagramscene/arrow.cpp 0
+ \snippet graphicsview/diagramscene/arrow.cpp 0
We set the start and end diagram items of the arrow. The arrow
head will be drawn where the line intersects the end item.
Here is the \c boundingRect() function:
- \snippet examples/graphicsview/diagramscene/arrow.cpp 1
+ \snippet graphicsview/diagramscene/arrow.cpp 1
We need to reimplement this function because the arrow is
larger than the bounding rectangle of the QGraphicsLineItem. The
@@ -773,7 +773,7 @@
Here is the \c shape() function:
- \snippet examples/graphicsview/diagramscene/arrow.cpp 2
+ \snippet graphicsview/diagramscene/arrow.cpp 2
The shape function returns a QPainterPath that is the exact
shape of the item. The QGraphicsLineItem::shape() returns a path
@@ -783,14 +783,14 @@
Here is the \c updatePosition() slot:
- \snippet examples/graphicsview/diagramscene/arrow.cpp 3
+ \snippet graphicsview/diagramscene/arrow.cpp 3
This slot updates the arrow by setting the start and end
points of its line to the center of the items it connects.
Here is the \c paint() function:
- \snippet examples/graphicsview/diagramscene/arrow.cpp 4
+ \snippet graphicsview/diagramscene/arrow.cpp 4
If the start and end items collide we do not draw the arrow; the
algorithm we use to find the point the arrow should be drawn at
@@ -798,7 +798,7 @@
We first set the pen and brush we will use for drawing the arrow.
- \snippet examples/graphicsview/diagramscene/arrow.cpp 5
+ \snippet graphicsview/diagramscene/arrow.cpp 5
We then need to find the position at which to draw the
arrowhead. The head should be drawn where the line and the end
@@ -811,7 +811,7 @@
We must therefore add the position of the end item to make the
coordinates relative to the scene.
- \snippet examples/graphicsview/diagramscene/arrow.cpp 6
+ \snippet graphicsview/diagramscene/arrow.cpp 6
We calculate the angle between the x-axis and the line of the
arrow. We need to turn the arrow head to this angle so that it
@@ -824,7 +824,7 @@
clear the \c arrowHead polygon from the previous calculated arrow
head and set these new points.
- \snippet examples/graphicsview/diagramscene/arrow.cpp 7
+ \snippet graphicsview/diagramscene/arrow.cpp 7
If the line is selected, we draw two dotted lines that are
parallel with the line of the arrow. We do not use the default
diff --git a/doc/src/examples/digitalclock.qdoc b/examples/widgets/doc/digitalclock.qdoc
index 39d015efd11..92e80032057 100644
--- a/doc/src/examples/digitalclock.qdoc
+++ b/examples/widgets/doc/digitalclock.qdoc
@@ -44,11 +44,11 @@
and implement a private slot called \c showTime() to update the clock
display:
- \snippet examples/widgets/digitalclock/digitalclock.h 0
+ \snippet widgets/digitalclock/digitalclock.h 0
\section1 DigitalClock Class Implementation
- \snippet examples/widgets/digitalclock/digitalclock.cpp 0
+ \snippet widgets/digitalclock/digitalclock.cpp 0
In the constructor, we first change the look of the LCD numbers. The
QLCDNumber::Filled style produces raised segments filled with the
@@ -59,8 +59,8 @@
call the \c showTime() slot; without this call, there would be a one-second
delay at startup before the time is shown.
- \snippet examples/widgets/digitalclock/digitalclock.cpp 1
- \snippet examples/widgets/digitalclock/digitalclock.cpp 2
+ \snippet widgets/digitalclock/digitalclock.cpp 1
+ \snippet widgets/digitalclock/digitalclock.cpp 2
The \c showTime() slot is called whenever the clock display needs
to be updated.
diff --git a/doc/src/examples/dirview.qdoc b/examples/widgets/doc/dirview.qdoc
index a4b799678a1..a4b799678a1 100644
--- a/doc/src/examples/dirview.qdoc
+++ b/examples/widgets/doc/dirview.qdoc
diff --git a/doc/src/examples/dockwidgets.qdoc b/examples/widgets/doc/dockwidgets.qdoc
index 8c64c78ae49..12f18a538fb 100644
--- a/doc/src/examples/dockwidgets.qdoc
+++ b/examples/widgets/doc/dockwidgets.qdoc
@@ -46,13 +46,13 @@
Here's the class definition:
- \snippet examples/mainwindows/dockwidgets/mainwindow.h 0
+ \snippet mainwindows/dockwidgets/mainwindow.h 0
We will now review each function in turn.
\section1 MainWindow Class Implementation
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 0
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 0
We start by including \c <QtGui>, a header file that contains the
definition of all classes in the \l QtCore and \l QtGui
@@ -60,7 +60,7 @@
every class individually and is especially convenient if we add new
widgets. We also include \c mainwindow.h.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 1
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 1
In the constructor, we start by creating a QTextEdit widget. Then we call
QMainWindow::setCentralWidget(). This function passes ownership of
@@ -77,7 +77,7 @@
createToolBars(), and \c createStatusBar() functions since they
follow the same pattern as all the other Qt examples.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 9
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 9
We create the customers dock window first, and in addition to a
window title, we also pass it a \c this pointer so that it becomes a
@@ -109,7 +109,7 @@
We briefly discuss the rest of the implementation, but have now
covered everything relating to dock windows.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 2
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 2
In this function we clear the QTextEdit so that it is empty. Next we
create a QTextCursor on the QTextEdit. We move the cursor to the
@@ -120,7 +120,7 @@
insert the skeleton of the letter including two markers \c NAME and
\c ADDRESS. We will also use the \c{Yours sincerely,} text as a marker.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 6
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 6
If the user clicks a customer we split the customer details into
pieces. We then look for the \c NAME marker using the \c find()
@@ -133,7 +133,7 @@
operation by the QTextEdit, so a single undo will revert all the
insertions.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 7
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 7
This function works in a similar way to \c insertCustomer(). First
we look for the marker, in this case, \c {Yours sincerely,}, and then
@@ -141,19 +141,19 @@
we use a \c beginEditBlock() ... \c endEditBlock() pair so that the
insertion can be undone as a single operation.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 3
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 3
Qt's QTextDocument class makes printing documents easy. We simply
take the QTextEdit's QTextDocument, set up the printer and print the
document.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 4
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 4
QTextEdit can output its contents in HTML format, so we prompt the
user for the name of an HTML file and if they provide one we simply
write the QTextEdit's contents in HTML format to the file.
- \snippet examples/mainwindows/dockwidgets/mainwindow.cpp 5
+ \snippet mainwindows/dockwidgets/mainwindow.cpp 5
If the focus is in the QTextEdit, pressing \uicontrol Ctrl+Z undoes as
expected. But for the user's convenience we provide an
diff --git a/doc/src/examples/dragdroprobot.qdoc b/examples/widgets/doc/dragdroprobot.qdoc
index c6563a52866..60bd4eb4d8d 100644
--- a/doc/src/examples/dragdroprobot.qdoc
+++ b/examples/widgets/doc/dragdroprobot.qdoc
@@ -63,7 +63,7 @@
Let's start with the \c RobotPart class declaration.
- \snippet examples/graphicsview/dragdroprobot/robot.h 0
+ \snippet graphicsview/dragdroprobot/robot.h 0
This base class inherits QGraphicsObject. QGraphicsObject provides signals
and slots through inheriting QObject, and it also declares QGraphicsItem's
@@ -80,7 +80,7 @@
variable, which we will use later to indicate visually that the limb can
accept colors that are is dragged onto it.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 0
+ \snippet graphicsview/dragdroprobot/robot.cpp 0
\c RobotPart's constructor initializes the dragOver member and sets the
color to Qt::lightGray. In the constructor body we enable support for
@@ -89,7 +89,7 @@
The rest of this class's implementation is to support Drag and Drop.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 1
+ \snippet graphicsview/dragdroprobot/robot.cpp 1
The \l{QGraphicsItem::dragEnterEvent()}{dragEnterEvent()} handler is called
when a Drag and Drop element is dragged into the robot part's area.
@@ -102,7 +102,7 @@
visual feedback to the user; otherwise the event is ignored, which in turn
allows the event to propagate to parent elements.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 2
+ \snippet graphicsview/dragdroprobot/robot.cpp 2
The \l{QGraphicsItem::dragLeaveEvent()}{dragLeaveEvent()} handler is called
when a Drag and Drop element is dragged away from the robot part's area.
@@ -110,7 +110,7 @@
\l{QGraphicsItem::update()}{update()} to help provide visual feedback that
the drag has left this item.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 3
+ \snippet graphicsview/dragdroprobot/robot.cpp 3
The \l{QGraphicsItem::dropEvent()}{dropEvent()} handler is called when a
Drag and Drop element is dropped onto an item (i.e., when the mouse button
@@ -124,7 +124,7 @@
as this class has one minor difference, and leave the other classes as an
exercise for the reader.
- \snippet examples/graphicsview/dragdroprobot/robot.h 1
+ \snippet graphicsview/dragdroprobot/robot.h 1
The \c RobotHead class inherits \c RobotPart and provides the necessary
implementations of \l{QGraphicsItem::boundingRect()}{boundingRect()} and
@@ -135,12 +135,12 @@
The class contains a private pixmap member that we can use to implement
support for accepting image drops.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 4
+ \snippet graphicsview/dragdroprobot/robot.cpp 4
\c RobotHead has a rather plain constructor that simply forwards to
\c RobotPart's constructor.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 5
+ \snippet graphicsview/dragdroprobot/robot.cpp 5
The \l{QGraphicsItem::boundingRect()}{boundingRect()} reimplementation
returns the extents for the head. Because we want the center of rotation to
@@ -149,7 +149,7 @@
rotating the head, the "neck" will stay still while the top of the head
tilts from side to side.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 6
+ \snippet graphicsview/dragdroprobot/robot.cpp 6
In \l{QGraphicsItem::paint()}{paint()} we draw the actual head. The
implementation is split into two sections; if an image has been dropped
@@ -160,7 +160,7 @@
can often be faster to draw the head as an image rather than using a
sequence of vector operations.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 7
+ \snippet graphicsview/dragdroprobot/robot.cpp 7
The robot head can accept image drops. In order to support this, its
reimplementation of \l{QGraphicsItem::dragEnterEvent()}{dragEnterEvent()}
@@ -168,7 +168,7 @@
event is accepted. Otherwise we fall back to the base \c RobotPart
implementation.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 8
+ \snippet graphicsview/dragdroprobot/robot.cpp 8
To follow up on image support, we must also implement
\l{QGraphicsItem::dropEvent()}{dropEvent()}. We check if the drag object
@@ -180,21 +180,21 @@
\c RobotTorso and \c RobotLimb are similar to \c RobotHead, so let's
skip directly to the \c Robot class.
- \snippet examples/graphicsview/dragdroprobot/robot.h 4
+ \snippet graphicsview/dragdroprobot/robot.h 4
The \c Robot class also inherits \c RobotPart, and like the other parts it
also implements \l{QGraphicsItem::boundingRect()}{boundingRect()} and
\l{QGraphicsItem::paint()}{paint()}. It provides a rather special
implementation, though:
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 9
+ \snippet graphicsview/dragdroprobot/robot.cpp 9
Because the \c Robot class is only used as a base node for the rest of the
robot, it has no visual representation. Its
\l{QGraphicsItem::boundingRect()}{boundingRect()} implementation can
therefore return a null QRectF, and its paint() function does nothing.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 10
+ \snippet graphicsview/dragdroprobot/robot.cpp 10
The constructor starts by setting the flag
\l{QGraphicsItem::ItemHasNoContents}{ItemHasNoContents}, which is a minor
@@ -208,13 +208,13 @@
the head a child of the torso; if you rotate the torso, the head will
follow. The same pattern is applied to the rest of the limbs.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 11
+ \snippet graphicsview/dragdroprobot/robot.cpp 11
Each robot part is carefully positioned. For example, the upper left arm is
moved precisely to the top-left area of the torso, and the upper right arm
is moved to the top-right area.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 12
+ \snippet graphicsview/dragdroprobot/robot.cpp 12
The next section creates all animation objects. This snippet shows the two
animations that operate on the head's scale and rotation. The two
@@ -226,7 +226,7 @@
The rest of the animations are defined in a similar way.
- \snippet examples/graphicsview/dragdroprobot/robot.cpp 13
+ \snippet graphicsview/dragdroprobot/robot.cpp 13
Finally we set an easing curve and duration on each animation, ensure the
toplevel animation group loops forever, and start the toplevel animation.
@@ -236,7 +236,7 @@
The \c ColorItem class represents a circular item that can be pressed to
drag colors onto robot parts.
- \snippet examples/graphicsview/dragdroprobot/coloritem.h 0
+ \snippet graphicsview/dragdroprobot/coloritem.h 0
This class is very simple. It does not use animations, and has no need for
properties nor signals and slots, so to save resources, it's most natural
@@ -252,7 +252,7 @@
Let's take a look at its implementation.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 0
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 0
\c ColorItem's constructor assigns an opaque random color to its color
member by making use of qrand(). For improved usability, it assigns a
@@ -266,7 +266,7 @@
mouse event handlers greatly, as we can always assume that only the left
mouse button is pressed and released.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 1
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 1
The item's bounding rect is a fixed 30x30 units centered around the item's
origin (0, 0), and adjusted by 0.5 units in all directions to allow a
@@ -274,19 +274,19 @@
also compensate with a few units down and to the right to make room
for a simple dropshadow.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 2
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 2
The \l{QGraphicsItem::paint()}{paint()} implementation draws an ellipse
with a 1-unit black outline, a plain color fill, and a dark gray
dropshadow.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 3
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 3
The \l{QGraphicsItem::mousePressEvent()}{mousePressEvent()} handler is
called when you press the mouse button inside the item's area. Our
implementation simply sets the cursor to Qt::ClosedHandCursor.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 4
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 4
The \l{QGraphicsItem::mouseReleaseEvent()}{mouseReleaseEvent()} handler is
called when you release the mouse button after having pressed it inside an
@@ -296,7 +296,7 @@
the cursor changes to an open hand. Pressing the item will show a closed
hand cursor. Releasing will restore to an open hand cursor again.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 5
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 5
The \l{QGraphicsItem::mouseMoveEvent()}{mouseMoveEvent()} handler is called
when you move the mouse around after pressing the mouse button inside the
@@ -313,20 +313,20 @@
the right time. We also create a QMimeData instance that can contain our
color or image data, and assign this to the drag object.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 6
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 6
This snippet has a somewhat random outcome: once in a while, a special
image is assigned to the drag object's mime data. The pixmap is also
assiged as the drag object's pixmap. This will ensure that you can see the
image that is being dragged as a pixmap under the mouse cursor.
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 7
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 7
Otherwise, and this is the most common outcome, a simple color is assigned
to the drag object's mime data. We render this \c ColorItem into a new
pixmap to give the user visual feedback that the color is being "dragged".
- \snippet examples/graphicsview/dragdroprobot/coloritem.cpp 8
+ \snippet graphicsview/dragdroprobot/coloritem.cpp 8
Finally we execute the drag. QDrag::exec() will reenter the event loop, and
only exit if the drag has either been dropped, or canceled. In any case we
@@ -337,13 +337,13 @@
Now that the \c Robot and \c ColorItem classes are complete, we can put all
the pieces together inside the main() function.
- \snippet examples/graphicsview/dragdroprobot/main.cpp 0
+ \snippet graphicsview/dragdroprobot/main.cpp 0
We start off by constructing QApplication, and initializing the random
number generator. This ensures that the color items have different colors
every time the application starts.
- \snippet examples/graphicsview/dragdroprobot/main.cpp 1
+ \snippet graphicsview/dragdroprobot/main.cpp 1
We construct a fixed size scene, and create 10 \c ColorItem instances
arranged in a circle. Each item is added to the scene.
@@ -351,7 +351,7 @@
In the center of this circle we create one \c Robot instance. The
robot is scaled and moved up a few units. It is then added to the scene.
- \snippet examples/graphicsview/dragdroprobot/main.cpp 2
+ \snippet graphicsview/dragdroprobot/main.cpp 2
Finally we create a QGraphicsView window, and assign the scene to it.
diff --git a/doc/src/examples/dynamiclayouts.qdoc b/examples/widgets/doc/dynamiclayouts.qdoc
index 318f719503e..318f719503e 100644
--- a/doc/src/examples/dynamiclayouts.qdoc
+++ b/examples/widgets/doc/dynamiclayouts.qdoc
diff --git a/doc/src/examples/easing.qdoc b/examples/widgets/doc/easing.qdoc
index 7fb7f59531e..7fb7f59531e 100644
--- a/doc/src/examples/easing.qdoc
+++ b/examples/widgets/doc/easing.qdoc
diff --git a/doc/src/examples/editabletreemodel.qdoc b/examples/widgets/doc/editabletreemodel.qdoc
index 958080ad586..423b9cee94c 100644
--- a/doc/src/examples/editabletreemodel.qdoc
+++ b/examples/widgets/doc/editabletreemodel.qdoc
@@ -230,7 +230,7 @@
pieces of data, and which can provide information about their parent
and child items:
- \snippet examples/itemviews/editabletreemodel/treeitem.h 0
+ \snippet itemviews/editabletreemodel/treeitem.h 0
We have designed the API to be similar to that provided by
QAbstractItemModel by giving each item functions to return the number
@@ -247,7 +247,7 @@
Each \c TreeItem is constructed with a list of data and an optional
parent item:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 0
+ \snippet itemviews/editabletreemodel/treeitem.cpp 0
Initially, each item has no children. These are added to the item's
internal \c childItems member using the \c insertChildren() function
@@ -256,29 +256,29 @@
The destructor ensures that each child added to the item is deleted
when the item itself is deleted:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 1
+ \snippet itemviews/editabletreemodel/treeitem.cpp 1
\target TreeItem::parent
Since each item stores a pointer to its parent, the \c parent() function
is trivial:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 9
+ \snippet itemviews/editabletreemodel/treeitem.cpp 9
\target TreeItem::child
Three functions provide information about the children of an item.
\c child() returns a specific child from the internal list of children:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 2
+ \snippet itemviews/editabletreemodel/treeitem.cpp 2
The \c childCount() function returns the total number of children:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 3
+ \snippet itemviews/editabletreemodel/treeitem.cpp 3
The \c childNumber() function is used to determine the index of the child
in its parent's list of children. It accesses the parent's \c childItems
member directly to obtain this information:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 4
+ \snippet itemviews/editabletreemodel/treeitem.cpp 4
The root item has no parent item; for this item, we return zero to be
consistent with the other items.
@@ -286,20 +286,20 @@
The \c columnCount() function simply returns the number of elements in
the internal \c itemData list of QVariant objects:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 5
+ \snippet itemviews/editabletreemodel/treeitem.cpp 5
\target TreeItem::data
Data is retrieved using the \c data() function, which accesses the
appropriate element in the \c itemData list:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 6
+ \snippet itemviews/editabletreemodel/treeitem.cpp 6
\target TreeItem::setData
Data is set using the \c setData() function, which only stores values
in the \c itemData list for valid list indexes, corresponding to column
values in the model:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 11
+ \snippet itemviews/editabletreemodel/treeitem.cpp 11
To make implementation of the model easier, we return true to indicate
whether the data was set successfully, or false if an invalid column
@@ -309,20 +309,20 @@
in the model leads to the insertion of new child items in the corresponding
item, handled by the \c insertChildren() function:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 7
+ \snippet itemviews/editabletreemodel/treeitem.cpp 7
This ensures that new items are created with the required number of columns
and inserted at a valid position in the internal \c childItems list.
Items are removed with the \c removeChildren() function:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 10
+ \snippet itemviews/editabletreemodel/treeitem.cpp 10
As discussed above, the functions for inserting and removing columns are
used differently to those for inserting and removing child items because
they are expected to be called on every item in the tree. We do this by
recursively calling this function on each child of the item:
- \snippet examples/itemviews/editabletreemodel/treeitem.cpp 8
+ \snippet itemviews/editabletreemodel/treeitem.cpp 8
\section1 TreeModel Class Definition
@@ -330,16 +330,16 @@
class, exposing the necessary interface for a model that can be edited and
resized.
- \snippet examples/itemviews/editabletreemodel/treemodel.h 0
+ \snippet itemviews/editabletreemodel/treemodel.h 0
The constructor and destructor are specific to this model.
- \snippet examples/itemviews/editabletreemodel/treemodel.h 1
+ \snippet itemviews/editabletreemodel/treemodel.h 1
Read-only tree models only need to provide the above functions. The
following public functions provide support for editing and resizing:
- \snippet examples/itemviews/editabletreemodel/treemodel.h 2
+ \snippet itemviews/editabletreemodel/treemodel.h 2
To simplify this example, the data exposed by the model is organized into
a data structure by the model's \l{TreeModel::setupModelData}{setupModelData()}
@@ -351,7 +351,7 @@
The constructor creates a root item and initializes it with the header
data supplied:
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 0
+ \snippet itemviews/editabletreemodel/treemodel.cpp 0
We call the internal \l{TreeModel::setupModelData}{setupModelData()}
function to convert the textual data supplied to a data structure we can
@@ -361,7 +361,7 @@
The destructor only has to delete the root item; all child items will
be recursively deleted by the \c TreeItem destructor.
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 1
+ \snippet itemviews/editabletreemodel/treemodel.cpp 1
\target TreeModel::getItem
Since the model's interface to the other model/view components is based
@@ -371,7 +371,7 @@
consistency, we have defined a \c getItem() function to perform this
repetitive task:
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 4
+ \snippet itemviews/editabletreemodel/treemodel.cpp 4
This function assumes that each model index it is passed corresponds to
a valid item in memory. If the index is invalid, or its internal pointer
@@ -381,13 +381,13 @@
\c getItem() function to obtain the relevant item, then returns the
number of children it contains:
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 8
+ \snippet itemviews/editabletreemodel/treemodel.cpp 8
By contrast, the \c columnCount() implementation does not need to look
for a particular item because all items are defined to have the same
number of columns associated with them.
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 2
+ \snippet itemviews/editabletreemodel/treemodel.cpp 2
As a result, the number of columns can be obtained directly from the root
item.
@@ -397,7 +397,7 @@
the Qt::ItemIsEditable and Qt::ItemIsSelectable flags as well as
Qt::ItemIsEnabled:
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 3
+ \snippet itemviews/editabletreemodel/treemodel.cpp 3
\target TreeModel::index
The model needs to be able to generate model indexes to allow other
@@ -405,7 +405,7 @@
is performed by the \c index() function, which is used to obtain model
indexes corresponding to children of a given parent item:
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 5
+ \snippet itemviews/editabletreemodel/treemodel.cpp 5
In this model, we only return model indexes for child items if the parent
index is invalid (corresponding to the root item) or if it has a zero
@@ -415,7 +415,7 @@
a \c TreeItem instance that corresponds to the model index supplied, and
request its child item that corresponds to the specified row.
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 6
+ \snippet itemviews/editabletreemodel/treemodel.cpp 6
Since each item contains information for an entire row of data, we create
a model index to uniquely identify it by calling
@@ -432,7 +432,7 @@
then creating a model index to represent the parent. (See
\l{Relating-items-using-model-indexes}{the above diagram}).
- \snippet examples/itemviews/editabletreemodel/treemodel.cpp 7
+ \snippet itemviews/editabletreemodel/treemodel.cpp 7
Items without parents, including the root item, are handled by returning
a null model index. Otherwise, a model index is created and returned as
diff --git a/doc/src/examples/elasticnodes.qdoc b/examples/widgets/doc/elasticnodes.qdoc
index bd25008f60a..17f14124f8d 100644
--- a/doc/src/examples/elasticnodes.qdoc
+++ b/examples/widgets/doc/elasticnodes.qdoc
@@ -61,7 +61,7 @@
Let's start by looking at the \c Node class declaration.
- \snippet examples/graphicsview/elasticnodes/node.h 0
+ \snippet graphicsview/elasticnodes/node.h 0
The \c Node class inherits QGraphicsItem, and reimplements the two
mandatory functions \l{QGraphicsItem::boundingRect()}{boundingRect()} and
@@ -87,7 +87,7 @@
We will start reviewing the \c Node implementation by looking at its
constructor:
- \snippet examples/graphicsview/elasticnodes/node.cpp 0
+ \snippet graphicsview/elasticnodes/node.cpp 0
In the constructor, we set the
\l{QGraphicsItem::ItemIsMovable}{ItemIsMovable} flag to allow the item to
@@ -102,7 +102,7 @@
\c Node's constructor takes a \c GraphWidget pointer and stores this as a
member variable. We will revisit this pointer later on.
- \snippet examples/graphicsview/elasticnodes/node.cpp 1
+ \snippet graphicsview/elasticnodes/node.cpp 1
The addEdge() function adds the input edge to a list of attached edges. The
edge is then adjusted so that the end points for the edge match the
@@ -110,7 +110,7 @@
The edges() function simply returns the list of attached edges.
- \snippet examples/graphicsview/elasticnodes/node.cpp 2
+ \snippet graphicsview/elasticnodes/node.cpp 2
There are two ways to move a node. The \c calculateForces() function
implements the elastic effect that pulls and pushes on nodes in the grid.
@@ -121,7 +121,7 @@
Because we need to find all neighboring (but not necessarily connected)
nodes, we also make sure the item is part of a scene in the first place.
- \snippet examples/graphicsview/elasticnodes/node.cpp 3
+ \snippet graphicsview/elasticnodes/node.cpp 3
The "elastic" effect comes from an algorithm that applies pushing and
pulling forces. The effect is impressive, and surprisingly simple to
@@ -142,41 +142,41 @@
rapid degradation when distance increases. The sum of all forces is stored
in \c xvel (X-velocity) and \c yvel (Y-velocity).
- \snippet examples/graphicsview/elasticnodes/node.cpp 4
+ \snippet graphicsview/elasticnodes/node.cpp 4
The edges between the nodes represent forces that pull the nodes together.
By visiting each edge that is connected to this node, we can use a similar
approach as above to find the direction and strength of all pulling forces.
These forces are subtracted from \c xvel and \c yvel.
- \snippet examples/graphicsview/elasticnodes/node.cpp 5
+ \snippet graphicsview/elasticnodes/node.cpp 5
In theory, the sum of pushing and pulling forces should stabilize to
precisely 0. In practice, however, they never do. To circumvent errors in
numerical precision, we simply force the sum of forces to be 0 when they
are less than 0.1.
- \snippet examples/graphicsview/elasticnodes/node.cpp 6
+ \snippet graphicsview/elasticnodes/node.cpp 6
The final step of \c calculateForces() determines the node's new position.
We add the force to the node's current position. We also make sure the new
position stays inside of our defined boundaries. We don't actually move the
item in this function; that's done in a separate step, from \c advance().
- \snippet examples/graphicsview/elasticnodes/node.cpp 7
+ \snippet graphicsview/elasticnodes/node.cpp 7
The \c advance() function updates the item's current position. It is called
from \c GraphWidget::timerEvent(). If the node's position changed, the
function returns true; otherwise false is returned.
- \snippet examples/graphicsview/elasticnodes/node.cpp 8
+ \snippet graphicsview/elasticnodes/node.cpp 8
The \c Node's bounding rectangle is a 20x20 sized rectangle centered around
its origin (0, 0), adjusted by 2 units in all directions to compensate for
the node's outline stroke, and by 3 units down and to the right to make
room for a simple drop shadow.
- \snippet examples/graphicsview/elasticnodes/node.cpp 9
+ \snippet graphicsview/elasticnodes/node.cpp 9
The shape is a simple ellipse. This ensures that you must click inside the
node's elliptic shape in order to drag it around. You can test this effect
@@ -185,7 +185,7 @@
item's hit area would be identical to its bounding rectangle (i.e.,
rectangular).
- \snippet examples/graphicsview/elasticnodes/node.cpp 10
+ \snippet graphicsview/elasticnodes/node.cpp 10
This function implements the node's painting. We start by drawing a simple
dark gray elliptic drop shadow at (-7, -7), that is, (3, 3) units down and
@@ -201,7 +201,7 @@
uses \l{QGraphicsItem::DeviceCoordinateCache}{DeviceCoordinateCache}, a
simple yet effective measure that prevents unnecessary redrawing.
- \snippet examples/graphicsview/elasticnodes/node.cpp 11
+ \snippet graphicsview/elasticnodes/node.cpp 11
We reimplement \l{QGraphicsItem::itemChange()}{itemChange()} to adjust the
position of all connected edges, and to notify the scene that an item has
@@ -213,7 +213,7 @@
notification using a signal; in such case, \c Node would need to inherit
from QGraphicsObject.
- \snippet examples/graphicsview/elasticnodes/node.cpp 12
+ \snippet graphicsview/elasticnodes/node.cpp 12
Because we have set the \l{QGraphicsItem::ItemIsMovable}{ItemIsMovable}
flag, we don't need to implement the logic that moves the node according to
@@ -232,7 +232,7 @@
Let's take a look at the class declaration:
- \snippet examples/graphicsview/elasticnodes/edge.h 0
+ \snippet graphicsview/elasticnodes/edge.h 0
\c Edge inherits from QGraphicsItem, as it's a simple class that has no use
for signals, slots, and properties (compare to QGraphicsObject).
@@ -246,7 +246,7 @@
We will now review its implementation.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 0
+ \snippet graphicsview/elasticnodes/edge.cpp 0
The \c Edge constructor initializes its \c arrowSize data member to 10 units;
this determines the size of the arrow which is drawn in
@@ -259,12 +259,12 @@
pointers are updated, this edge is registered with each node, and we call
\c adjust() to update this edge's start end end position.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 1
+ \snippet graphicsview/elasticnodes/edge.cpp 1
The source and destination get-functions simply return the respective
pointers.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 2
+ \snippet graphicsview/elasticnodes/edge.cpp 2
In \c adjust(), we define two points: \c sourcePoint, and \c destPoint,
pointing at the source and destination nodes' origins respectively. Each
@@ -298,7 +298,7 @@
bookkeeping clean. It's safest to call this function once, immediately
before any such variable is modified.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 3
+ \snippet graphicsview/elasticnodes/edge.cpp 3
The edge's bounding rectangle is defined as the smallest rectangle that
includes both the start and the end point of the edge. Because we draw an
@@ -307,7 +307,7 @@
draw the outline of the arrow, and we can assume that half of the outline
can be drawn outside of the arrow's area, and half will be drawn inside.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 4
+ \snippet graphicsview/elasticnodes/edge.cpp 4
We start the reimplementation of \l{QGraphicsItem::paint()}{paint()} by
checking a few preconditions. Firstly, if either the source or destination
@@ -316,13 +316,13 @@
At the same time, we check if the length of the edge is approximately 0,
and if it is, then we also return.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 5
+ \snippet graphicsview/elasticnodes/edge.cpp 5
We draw the line using a pen that has round joins and caps. If you run the
example, zoom in and study the edge in detail, you will see that there are
no sharp/square edges.
- \snippet examples/graphicsview/elasticnodes/edge.cpp 6
+ \snippet graphicsview/elasticnodes/edge.cpp 6
We proceed to drawing one arrow at each end of the edge. Each arrow is
drawn as a polygon with a black fill. The coordinates for the arrow are
@@ -333,7 +333,7 @@
\c GraphWidget is a subclass of QGraphicsView, which provides the main
window with scrollbars.
- \snippet examples/graphicsview/elasticnodes/graphwidget.h 0
+ \snippet graphicsview/elasticnodes/graphwidget.h 0
The class provides a basic constructor that initializes the scene, an \c
itemMoved() function to notify changes in the scene's node graph, a few
@@ -341,7 +341,7 @@
\l{QGraphicsView::drawBackground()}{drawBackground()}, and a helper
function for scaling the view by using the mouse wheel or keyboard.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 0
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 0
\c GraphicsWidget's constructor creates the scene, and because most items
move around most of the time, it sets QGraphicsScene::NoIndex. The scene
@@ -366,19 +366,19 @@
Finally we give the window a minimum size that matches the scene's default
size, and set a suitable window title.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 1
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 1
The last part of the constructor creates the grid of nodes and edges, and
gives each node an initial position.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 2
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 2
\c GraphWidget is notified of node movement through this \c itemMoved()
function. Its job is simply to restart the main timer in case it's not
running already. The timer is designed to stop when the graph stabilizes,
and start once it's unstable again.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 3
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 3
This is \c GraphWidget's key event handler. The arrow keys move the center
node around, the '+' and '-' keys zoom in and out by calling \c
@@ -386,7 +386,7 @@
nodes. All other key events (e.g., page up and page down) are handled by
QGraphicsView's default implementation.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 4
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 4
The timer event handler's job is to run the whole force calculation
machinery as a smooth animation. Each time the timer is triggered, the
@@ -396,14 +396,14 @@
By checking the return value of \c advance(), we can decide if the grid
stabilized (i.e., no nodes moved). If so, we can stop the timer.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 5
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 5
In the wheel event handler, we convert the mouse wheel delta to a scale
factor, and pass this factor to \c scaleView(). This approach takes into
account the speed that the wheel is rolled. The faster you roll the mouse
wheel, the faster the view will zoom.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 6
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 6
The view's background is rendered in a reimplementation of
QGraphicsView::drawBackground(). We draw a large rectangle filled with a
@@ -413,7 +413,7 @@
This background rendering is quite expensive; this is why the view enables
QGraphicsView::CacheBackground.
- \snippet examples/graphicsview/elasticnodes/graphwidget.cpp 7
+ \snippet graphicsview/elasticnodes/graphwidget.cpp 7
The \c scaleView() helper function checks that the scale factor stays
within certain limits (i.e., you cannot zoom too far in nor too far out),
diff --git a/doc/src/examples/elidedlabel.qdoc b/examples/widgets/doc/elidedlabel.qdoc
index 6833aedc139..2ce469d85fe 100644
--- a/doc/src/examples/elidedlabel.qdoc
+++ b/examples/widgets/doc/elidedlabel.qdoc
@@ -51,7 +51,7 @@
the \c ElidedLabel class:
- \snippet examples/widgets/elidedlabel/elidedlabel.h 0
+ \snippet widgets/elidedlabel/elidedlabel.h 0
The \c isElided property depends the font, text content and geometry of the
widget. Whenever any of these change, the \c elisionChanged() signal might
@@ -65,11 +65,11 @@
policy to be horizontally expanding, since it's meant to fill the width of
its container and grow vertically.
- \snippet examples/widgets/elidedlabel/elidedlabel.cpp 0
+ \snippet widgets/elidedlabel/elidedlabel.cpp 0
Changing the \c content require a repaint of the widget.
- \snippet examples/widgets/elidedlabel/elidedlabel.cpp 1
+ \snippet widgets/elidedlabel/elidedlabel.cpp 1
QTextLayout is used in the \c paintEvent() to divide the \c content into
lines, that wrap on word boundaries. Each line, except the last visible
@@ -77,7 +77,7 @@
method of QTextLine will draw the line using the coordinate point as the
top left corner.
- \snippet examples/widgets/elidedlabel/elidedlabel.cpp 2
+ \snippet widgets/elidedlabel/elidedlabel.cpp 2
Unfortunately, QTextLayout does not elide text, so the last visible line
has to be treated differently. This last line is elided if it is too wide.
@@ -86,12 +86,12 @@
Finally, one more line is created to see if everything fit on this line.
- \snippet examples/widgets/elidedlabel/elidedlabel.cpp 3
+ \snippet widgets/elidedlabel/elidedlabel.cpp 3
If the text was elided and wasn't before or vice versa, cache it in
\c elided and emit the change.
- \snippet examples/widgets/elidedlabel/elidedlabel.cpp 4
+ \snippet widgets/elidedlabel/elidedlabel.cpp 4
\section1 TestWidget Class Definition
@@ -99,55 +99,55 @@
\c TestWidget is a QWidget and is the main window of the example. It
contains an \c ElidedLabel which can be resized with two QSlider widgets.
- \snippet examples/widgets/elidedlabel/testwidget.h 0
+ \snippet widgets/elidedlabel/testwidget.h 0
\section1 TestWidget Class Implementation
The constructor initializes the whole widget. Strings of different length
are stored in \c textSamples. The user is able to switch between these.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 0
+ \snippet widgets/elidedlabel/testwidget.cpp 0
An \c ElidedLabel is created to contain the first of the sample strings.
The frame is made visible to make it easier to see the actual size of the
widget.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 1
+ \snippet widgets/elidedlabel/testwidget.cpp 1
The buttons and the elision label are created. By connecting the
\c elisionChanged() signal to the \c setVisible() slot of the \c label,
it will act as an indicator to when the text is elided or not. This signal
could, for instance, be used to make a "More" button visible, or similar.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 2
+ \snippet widgets/elidedlabel/testwidget.cpp 2
The \c widthSlider and \c heightSlider specify the size of the
\c elidedText. Since the y-axis is inverted, the \c heightSlider has to be
inverted to act appropriately.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 3
+ \snippet widgets/elidedlabel/testwidget.cpp 3
The components are all stored in a QGridLayout, which is made the layout of
the \c TestWidget.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 4
+ \snippet widgets/elidedlabel/testwidget.cpp 4
On the Maemo platform, windows are stuck in landscape mode by default. With
this attribute set, the window manager is aware that this window can be
rotated.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 5
+ \snippet widgets/elidedlabel/testwidget.cpp 5
The \c widthSlider and \c heightSlider have the exact same length as the
dimensions of the \c elidedText. The maximum value for both of them is
thus their lengths, and each tick indicates one pixel.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 6
+ \snippet widgets/elidedlabel/testwidget.cpp 6
The \c switchText() slot simply cycles through all the available sample
texts.
- \snippet examples/widgets/elidedlabel/testwidget.cpp 7
+ \snippet widgets/elidedlabel/testwidget.cpp 7
These slots set the width and height of the \c elided text, in response to
changes in the sliders.
@@ -157,6 +157,6 @@
The \c main() function creates an instance of \c TestWidget fullscreen and
enters the message loop.
- \snippet examples/widgets/elidedlabel/main.cpp 0
+ \snippet widgets/elidedlabel/main.cpp 0
*/
diff --git a/doc/src/examples/embeddeddialogs.qdoc b/examples/widgets/doc/embeddeddialogs.qdoc
index 24b3abdb37f..24b3abdb37f 100644
--- a/doc/src/examples/embeddeddialogs.qdoc
+++ b/examples/widgets/doc/embeddeddialogs.qdoc
diff --git a/doc/src/examples/eventtransitions.qdoc b/examples/widgets/doc/eventtransitions.qdoc
index eb2e10b0512..ef3f657c3d8 100644
--- a/doc/src/examples/eventtransitions.qdoc
+++ b/examples/widgets/doc/eventtransitions.qdoc
@@ -32,27 +32,27 @@
The Event Transitions example shows how to use event transitions, a
feature of \l{The State Machine Framework}.
- \snippet examples/statemachine/eventtransitions/main.cpp 0
+ \snippet statemachine/eventtransitions/main.cpp 0
The \c Window class's constructors begins by creating a button.
- \snippet examples/statemachine/eventtransitions/main.cpp 1
+ \snippet statemachine/eventtransitions/main.cpp 1
Two states, \c s1 and \c s2, are created; upon entry they will assign
"Outside" and "Inside" to the button's text, respectively.
- \snippet examples/statemachine/eventtransitions/main.cpp 2
+ \snippet statemachine/eventtransitions/main.cpp 2
When the button receives an event of type QEvent::Enter and the state
machine is in state \c s1, the machine will transition to state \c s2.
- \snippet examples/statemachine/eventtransitions/main.cpp 3
+ \snippet statemachine/eventtransitions/main.cpp 3
When the button receives an event of type QEvent::Leave and the state
machine is in state \c s2, the machine will transition back to state \c
s1.
- \snippet examples/statemachine/eventtransitions/main.cpp 4
+ \snippet statemachine/eventtransitions/main.cpp 4
Next, the state \c s3 is created. \c s3 will be entered when the button
receives an event of type QEvent::MouseButtonPress and the state machine
@@ -60,12 +60,12 @@
QEvent::MouseButtonRelease and the state machine is in state \c s3, the
machine will transition back to state \c s2.
- \snippet examples/statemachine/eventtransitions/main.cpp 5
+ \snippet statemachine/eventtransitions/main.cpp 5
Finally, the states are added to the machine as top-level states, the
initial state is set to be \c s1 ("Outside"), and the machine is started.
- \snippet examples/statemachine/eventtransitions/main.cpp 6
+ \snippet statemachine/eventtransitions/main.cpp 6
The main() function constructs a Window object and shows it.
diff --git a/doc/src/examples/extension.qdoc b/examples/widgets/doc/extension.qdoc
index 9e63b70e3fc..040d5d38d9c 100644
--- a/doc/src/examples/extension.qdoc
+++ b/examples/widgets/doc/extension.qdoc
@@ -55,7 +55,7 @@
window mostly used for short-term tasks and brief communications
with the user.
- \snippet examples/dialogs/extension/finddialog.h 0
+ \snippet dialogs/extension/finddialog.h 0
The \c FindDialog widget is the main application widget, and
displays the application's search options and controlling
@@ -77,7 +77,7 @@
of the \l {QCheckBox}{QCheckBox}es and all the \l
{QPushButton}{QPushButton}s.
- \snippet examples/dialogs/extension/finddialog.cpp 0
+ \snippet dialogs/extension/finddialog.cpp 0
We give the options and buttons a shortcut key using the &
character. In the \uicontrol {Find what} option's case, we also need to
@@ -91,13 +91,13 @@
pressed if the user presses the Enter (or Return) key. Note that a
QDialog can only have one default button.
- \snippet examples/dialogs/extension/finddialog.cpp 2
+ \snippet dialogs/extension/finddialog.cpp 2
Then we create the extension widget, and the \l
{QCheckBox}{QCheckBox}es associated with the advanced search
options.
- \snippet examples/dialogs/extension/finddialog.cpp 3
+ \snippet dialogs/extension/finddialog.cpp 3
Now that the extension widget is created, we can connect the \uicontrol
More button's \l{QAbstractButton::toggled()}{toggled()} signal to
@@ -117,7 +117,7 @@
We also put the check boxes associated with the advanced
search options into a layout we install on the extension widget.
- \snippet examples/dialogs/extension/finddialog.cpp 4
+ \snippet dialogs/extension/finddialog.cpp 4
Before we create the main layout, we create several child layouts
for the widgets: First we align the QLabel and its buddy, the
@@ -127,7 +127,7 @@
for the buttons. In the end we lay out the two latter layouts and
the extension widget using a QGridLayout.
- \snippet examples/dialogs/extension/finddialog.cpp 5
+ \snippet dialogs/extension/finddialog.cpp 5
Finally, we hide the extension widget using the QWidget::hide()
function, making the application only show the simple search
diff --git a/doc/src/examples/factorial.qdoc b/examples/widgets/doc/factorial.qdoc
index ead9695c1ce..82ab5da5369 100644
--- a/doc/src/examples/factorial.qdoc
+++ b/examples/widgets/doc/factorial.qdoc
@@ -42,42 +42,42 @@
In other words, the state machine calculates the factorial of 6 and prints
the result.
- \snippet examples/statemachine/factorial/main.cpp 0
+ \snippet statemachine/factorial/main.cpp 0
The Factorial class is used to hold the data of the computation, \c x and
\c fac. It also provides a signal that's emitted whenever the value of \c
x changes.
- \snippet examples/statemachine/factorial/main.cpp 1
+ \snippet statemachine/factorial/main.cpp 1
The FactorialLoopTransition class implements the guard (\c x > 1) and
calculations (\c fac = \c x * \c fac; \c x = \c x - 1) of the factorial
loop.
- \snippet examples/statemachine/factorial/main.cpp 2
+ \snippet statemachine/factorial/main.cpp 2
The FactorialDoneTransition class implements the guard (\c x <= 1) that
terminates the factorial computation. It also prints the final result to
standard output.
- \snippet examples/statemachine/factorial/main.cpp 3
+ \snippet statemachine/factorial/main.cpp 3
The application's main() function first creates the application object, a
Factorial object and a state machine.
- \snippet examples/statemachine/factorial/main.cpp 4
+ \snippet statemachine/factorial/main.cpp 4
The \c compute state is created, and the initial values of \c x and \c fac
are defined. A FactorialLoopTransition object is created and added to the
state.
- \snippet examples/statemachine/factorial/main.cpp 5
+ \snippet statemachine/factorial/main.cpp 5
A final state, \c done, is created, and a FactorialDoneTransition object
is created with \c done as its target state. The transition is then added
to the \c compute state.
- \snippet examples/statemachine/factorial/main.cpp 6
+ \snippet statemachine/factorial/main.cpp 6
The machine's initial state is set to be the \c compute state. We connect
the QStateMachine::finished() signal to the QCoreApplication::quit() slot,
diff --git a/doc/src/examples/fademessage.qdoc b/examples/widgets/doc/fademessage.qdoc
index 48f98c03ad0..48f98c03ad0 100644
--- a/doc/src/examples/fademessage.qdoc
+++ b/examples/widgets/doc/fademessage.qdoc
diff --git a/doc/src/examples/fetchmore.qdoc b/examples/widgets/doc/fetchmore.qdoc
index cd07f3c7ab2..7ea0b30edf0 100644
--- a/doc/src/examples/fetchmore.qdoc
+++ b/examples/widgets/doc/fetchmore.qdoc
@@ -56,7 +56,7 @@
contents of a directory. It will add items to itself only when
requested to do so by the view.
- \snippet examples/itemviews/fetchmore/filelistmodel.h 0
+ \snippet itemviews/fetchmore/filelistmodel.h 0
The secret lies in the reimplementation of
\l{QAbstractItemModel::}{fetchMore()} and
@@ -75,13 +75,13 @@
We start by checking out the \c setDirPath().
- \snippet examples/itemviews/fetchmore/filelistmodel.cpp 0
+ \snippet itemviews/fetchmore/filelistmodel.cpp 0
We use a QDir to get the contents of the directory. We need to
inform QAbstractItemModel that we want to remove all items - if
any - from the model.
- \snippet examples/itemviews/fetchmore/filelistmodel.cpp 1
+ \snippet itemviews/fetchmore/filelistmodel.cpp 1
The \c canFetchMore() function is called by the view when it needs
more items. We return true if there still are entries that we have
@@ -89,7 +89,7 @@
And now, the \c fetchMore() function itself:
- \snippet examples/itemviews/fetchmore/filelistmodel.cpp 2
+ \snippet itemviews/fetchmore/filelistmodel.cpp 2
We first calculate the number of items to fetch.
\l{QAbstractItemModel::}{beginInsertRows()} and
@@ -99,7 +99,7 @@
To complete the tour, we also look at \c rowCount() and \c data().
- \snippet examples/itemviews/fetchmore/filelistmodel.cpp 4
+ \snippet itemviews/fetchmore/filelistmodel.cpp 4
Notice that the row count is only the items we have added so far,
i.e., not the number of entries in the directory.
diff --git a/doc/src/examples/findfiles.qdoc b/examples/widgets/doc/findfiles.qdoc
index 6654070d729..594d57472c4 100644
--- a/doc/src/examples/findfiles.qdoc
+++ b/examples/widgets/doc/findfiles.qdoc
@@ -54,7 +54,7 @@
widget. It shows the search options, and displays the search
results.
- \snippet examples/dialogs/findfiles/window.h 0
+ \snippet dialogs/findfiles/window.h 0
We need two private slots: The \c browse() slot is called whenever
the user wants to browse for a directory to search in, and the \c
@@ -71,7 +71,7 @@
In the constructor we first create the application's widgets.
- \snippet examples/dialogs/findfiles/window.cpp 0
+ \snippet dialogs/findfiles/window.cpp 0
We create the application's buttons using the private \c
createButton() function. Then we create the comboboxes associated
@@ -80,14 +80,14 @@
before we use the private \c createFilesTable() function to create
the table displaying the search results.
- \snippet examples/dialogs/findfiles/window.cpp 1
+ \snippet dialogs/findfiles/window.cpp 1
Then we add all the widgets to a main layout using QGridLayout. We
have, however, put the \c Find and \c Quit buttons and a
stretchable space in a separate QHBoxLayout first, to make the
buttons appear in the \c Window widget's bottom right corner.
- \snippet examples/dialogs/findfiles/window.cpp 2
+ \snippet dialogs/findfiles/window.cpp 2
The \c browse() slot presents a file dialog to the user, using the
QFileDialog class. QFileDialog enables a user to traverse the file
@@ -106,7 +106,7 @@
the specified userData. The item is appended to the list of
existing items.
- \snippet examples/dialogs/findfiles/window.cpp 3
+ \snippet dialogs/findfiles/window.cpp 3
The \c find() slot is called whenever the user requests a new
search by pressing the \uicontrol Find button.
@@ -116,7 +116,7 @@
specified file name, text and directory path from the respective
comboboxes.
- \snippet examples/dialogs/findfiles/window.cpp 4
+ \snippet dialogs/findfiles/window.cpp 4
We use the directory's path to create a QDir; the QDir class
provides access to directory structures and their contents. We
@@ -134,7 +134,7 @@
\image findfiles_progress_dialog.png Screenshot of the Progress Dialog
- \snippet examples/dialogs/findfiles/window.cpp 5
+ \snippet dialogs/findfiles/window.cpp 5
In the private \c findFiles() function we search through a list of
files, looking for the ones that contain a specified text. This
@@ -149,7 +149,7 @@
application has not frozen. It can also give the user an
opportunity to abort the operation.
- \snippet examples/dialogs/findfiles/window.cpp 6
+ \snippet dialogs/findfiles/window.cpp 6
We run through the files, one at a time, and for each file we
update the QProgressDialog value. This property holds the current
@@ -170,7 +170,7 @@
until there are no more events to process. The default flags are
QEventLoop::AllEvents.
- \snippet examples/dialogs/findfiles/window.cpp 7
+ \snippet dialogs/findfiles/window.cpp 7
After updating the QProgressDialog, we create a QFile using the
QDir::absoluteFilePath() function which returns the absolute path
@@ -189,7 +189,7 @@
Finally, we return the list of the files found.
- \snippet examples/dialogs/findfiles/window.cpp 8
+ \snippet dialogs/findfiles/window.cpp 8
Both the \c findFiles() and \c showFiles() functions are called from
the \c find() slot. In the \c showFiles() function we run through
@@ -199,14 +199,14 @@
We also update the total number of files found.
- \snippet examples/dialogs/findfiles/window.cpp 9
+ \snippet dialogs/findfiles/window.cpp 9
The private \c createButton() function is called from the
constructor. We create a QPushButton with the provided text,
connect it to the provided slot, and return a pointer to the
button.
- \snippet examples/dialogs/findfiles/window.cpp 10
+ \snippet dialogs/findfiles/window.cpp 10
The private \c createComboBox() function is also called from the
contructor. We create a QComboBox with the given text, and make it
@@ -221,7 +221,7 @@
widget's size policies, before we return a pointer to the
combobox.
- \snippet examples/dialogs/findfiles/window.cpp 11
+ \snippet dialogs/findfiles/window.cpp 11
The private \c createFilesTable() function is called from the
constructor. In this function we create the QTableWidget that
@@ -240,7 +240,7 @@
QWidget::hide() function, and remove the default grid drawn for
the table using the QTableView::setShowGrid() function.
- \snippet examples/dialogs/findfiles/window.cpp 12
+ \snippet dialogs/findfiles/window.cpp 12
The \c openFileOfItem() slot is invoked when the user double
clicks on a cell in the table. The QDesktopServices::openUrl()
diff --git a/doc/src/examples/flowlayout.qdoc b/examples/widgets/doc/flowlayout.qdoc
index eaa0f7baf0f..b08b2283aae 100644
--- a/doc/src/examples/flowlayout.qdoc
+++ b/examples/widgets/doc/flowlayout.qdoc
@@ -46,7 +46,7 @@
The \c FlowLayout class inherits QLayout. It is a custom layout class
that arranges its child widgets horizontally and vertically.
- \snippet examples/layouts/flowlayout/flowlayout.h 0
+ \snippet layouts/flowlayout/flowlayout.h 0
We reimplement functions inherited from QLayout. These functions add items to
the layout and handle their orientation and geometry.
@@ -59,31 +59,31 @@
We start off by looking at the constructor:
- \snippet examples/layouts/flowlayout/flowlayout.cpp 1
+ \snippet layouts/flowlayout/flowlayout.cpp 1
In the constructor we call \c setContentsMargins() to set the left, top,
right and bottom margin. By default, QLayout uses values provided by
the current style (see QStyle::PixelMetric).
- \snippet examples/layouts/flowlayout/flowlayout.cpp 2
+ \snippet layouts/flowlayout/flowlayout.cpp 2
In this example we reimplement \c addItem(), which is a pure virtual
function. When using \c addItem() the ownership of the layout items is
transferred to the layout, and it is therefore the layout's
responsibility to delete them.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 3
+ \snippet layouts/flowlayout/flowlayout.cpp 3
\c addItem() is implemented to add items to the layout.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 4
+ \snippet layouts/flowlayout/flowlayout.cpp 4
We implement \c horizontalSpacing() and \c verticalSpacing() to get
hold of the spacing between the widgets inside the layout. If the value
is less than or equal to 0, this value will be used. If not,
\c smartSpacing() will be called to calculate the spacing.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 5
+ \snippet layouts/flowlayout/flowlayout.cpp 5
We then implement \c count() to return the number of items in the
layout. To navigate the list of items we use \c itemAt() and
@@ -91,12 +91,12 @@
removed, the remaining items will be renumbered. All three
functions are pure virtual functions from QLayout.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 6
+ \snippet layouts/flowlayout/flowlayout.cpp 6
\c expandingDirections() returns the \l{Qt::Orientation}s in which the
layout can make use of more space than its \c sizeHint().
- \snippet examples/layouts/flowlayout/flowlayout.cpp 7
+ \snippet layouts/flowlayout/flowlayout.cpp 7
To adjust to widgets of which height is dependent on width, we implement \c
heightForWidth(). The function \c hasHeightForWidth() is used to test for this
@@ -104,7 +104,7 @@
in turn uses the width as an argument for the layout rect, i.e., the bounds in
which the items are laid out. This rect does not include the layout margin().
- \snippet examples/layouts/flowlayout/flowlayout.cpp 8
+ \snippet layouts/flowlayout/flowlayout.cpp 8
\c setGeometry() is normally used to do the actual layout, i.e., calculate
the geometry of the layout's items. In this example, it calls \c doLayout()
@@ -113,19 +113,19 @@
\c sizeHint() returns the preferred size of the layout and \c minimumSize()
returns the minimum size of the layout.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 9
+ \snippet layouts/flowlayout/flowlayout.cpp 9
\c doLayout() handles the layout if \c horizontalSpacing() or \c
verticalSpacing() don't return the default value. It uses
\c getContentsMargins() to calculate the area available to the
layout items.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 10
+ \snippet layouts/flowlayout/flowlayout.cpp 10
It then sets the proper amount of spacing for each widget in the
layout, based on the current style.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 11
+ \snippet layouts/flowlayout/flowlayout.cpp 11
The position of each item in the layout is then calculated by
adding the items width and the line height to the initial x and y
@@ -133,7 +133,7 @@
will fit on the current line or if it must be moved down to the next.
We also find the height of the current line based on the widgets height.
- \snippet examples/layouts/flowlayout/flowlayout.cpp 12
+ \snippet layouts/flowlayout/flowlayout.cpp 12
\c smartSpacing() is designed to get the default spacing for either
the top-level layouts or the sublayouts. The default spacing for
diff --git a/doc/src/examples/fontsampler.qdoc b/examples/widgets/doc/fontsampler.qdoc
index 8d7f0e04602..8d7f0e04602 100644
--- a/doc/src/examples/fontsampler.qdoc
+++ b/examples/widgets/doc/fontsampler.qdoc
diff --git a/doc/src/examples/frozencolumn.qdoc b/examples/widgets/doc/frozencolumn.qdoc
index 1bb759b6fd2..c65ce1d5242 100644
--- a/doc/src/examples/frozencolumn.qdoc
+++ b/examples/widgets/doc/frozencolumn.qdoc
@@ -56,7 +56,7 @@
column's geometry. In addition, we reimplement two functions:
\l{QAbstractItemView::}{resizeEvent()} and \l{QTableView::}{moveCursor()}.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.h Widget definition
+ \snippet itemviews/frozencolumn/freezetablewidget.h Widget definition
\note QAbstractItemView is \l{QTableView}'s ancestor.
@@ -72,7 +72,7 @@
vertical scrollbars together so that the frozen column scrolls vertically
with the rest of our table.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp constructor
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp constructor
In the \c init() function, we ensure that the overlay table view
@@ -82,7 +82,7 @@
only visible column is its first column; we hide the others using
\l{QTableView::}{setColumnHidden()}
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp init part1
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp init part1
In terms of the frozen column's z-order, we stack it on top of the
@@ -94,7 +94,7 @@
with the main tableview. Note that we called \c updateFrozenTableGeometry()
to make the column occupy the correct spot.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp init part2
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp init part2
When you resize the frozen column, the same column on the main table view
must resize accordingly, to provide seamless integration. This is
@@ -102,7 +102,7 @@
value from the \l{QHeaderView::}{sectionResized()} signal, emitted by both
the horizontal and vertical header.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp sections
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp sections
Since the width of the frozen column is modified, we adjust the geometry of
the widget accordingly by invoking \c updateFrozenTableGeometry(). This
@@ -112,14 +112,14 @@
\c updateFrozenTableGeometry() after invoking the base class
implementation.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp resize
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp resize
When navigating around the table with the keyboard, we need to ensure that
the current selection does not disappear behind the frozen column. To
synchronize this, we reimplement QTableView::moveCursor() and adjust the
scrollbar positions if needed, after calling the base class implementation.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp navigate
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp navigate
The frozen column's geometry calculation is based on the geometry of the
table underneath, so it always appears in the right place. Using the
@@ -127,7 +127,7 @@
no matter which style is used. We rely on the geometry of the viewport and
headers to set the boundaries for the frozen column.
- \snippet examples/itemviews/frozencolumn/freezetablewidget.cpp geometry
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp geometry
*/
diff --git a/doc/src/examples/gradients.qdoc b/examples/widgets/doc/gradients.qdoc
index 75f78b56ea1..75f78b56ea1 100644
--- a/doc/src/examples/gradients.qdoc
+++ b/examples/widgets/doc/gradients.qdoc
diff --git a/doc/src/examples/groupbox.qdoc b/examples/widgets/doc/groupbox.qdoc
index f2e4ec995e6..d7384d409a9 100644
--- a/doc/src/examples/groupbox.qdoc
+++ b/examples/widgets/doc/groupbox.qdoc
@@ -54,7 +54,7 @@
functions to construct each group box and populate it with different
selections of button widgets:
- \snippet examples/widgets/groupbox/window.h 0
+ \snippet widgets/groupbox/window.h 0
In the example, the widget will be used as a top-level window, so
the constructor is defined so that we do not have to specify a parent
@@ -65,12 +65,12 @@
The constructor creates a grid layout and fills it with each of the
group boxes that are to be displayed:
- \snippet examples/widgets/groupbox/window.cpp 0
+ \snippet widgets/groupbox/window.cpp 0
The functions used to create each group box each return a
QGroupBox to be inserted into the grid layout.
- \snippet examples/widgets/groupbox/window.cpp 1
+ \snippet widgets/groupbox/window.cpp 1
The first group box contains and manages three radio buttons. Since
the group box contains only radio buttons, it is exclusive by
@@ -78,7 +78,7 @@
We check the first radio button to ensure that the button group
contains one checked button.
- \snippet examples/widgets/groupbox/window.cpp 3
+ \snippet widgets/groupbox/window.cpp 3
We use a vertical layout within the group box to present the
buttons in the form of a vertical list, and return the group
@@ -89,52 +89,52 @@
unchecked, so the group box itself must be checked before any of
the radio buttons inside can be checked.
- \snippet examples/widgets/groupbox/window.cpp 4
+ \snippet widgets/groupbox/window.cpp 4
The group box contains three exclusive radio buttons, and an
independent checkbox. For consistency, one radio button must be
checked at all times, so we ensure that the first one is initially
checked.
- \snippet examples/widgets/groupbox/window.cpp 5
+ \snippet widgets/groupbox/window.cpp 5
The buttons are arranged in the same way as those in the first
group box.
- \snippet examples/widgets/groupbox/window.cpp 6
+ \snippet widgets/groupbox/window.cpp 6
The third group box is constructed with a "flat" style that is
better suited to certain types of dialog.
- \snippet examples/widgets/groupbox/window.cpp 7
+ \snippet widgets/groupbox/window.cpp 7
This group box contains only checkboxes, so it is non-exclusive by
default. This means that each checkbox can be checked independently
of the others.
- \snippet examples/widgets/groupbox/window.cpp 8
+ \snippet widgets/groupbox/window.cpp 8
Again, we use a vertical layout within the group box to present
the buttons in the form of a vertical list.
- \snippet examples/widgets/groupbox/window.cpp 9
+ \snippet widgets/groupbox/window.cpp 9
The final group box contains only push buttons and, like the
second group box, it is checkable.
- \snippet examples/widgets/groupbox/window.cpp 10
+ \snippet widgets/groupbox/window.cpp 10
We create a normal button, a toggle button, and a flat push button:
- \snippet examples/widgets/groupbox/window.cpp 11
+ \snippet widgets/groupbox/window.cpp 11
Push buttons can be used to display popup menus. We create one, and
attach a simple menu to it:
- \snippet examples/widgets/groupbox/window.cpp 12
+ \snippet widgets/groupbox/window.cpp 12
Finally, we lay out the widgets vertically, and return the group box
that we created:
- \snippet examples/widgets/groupbox/window.cpp 13
+ \snippet widgets/groupbox/window.cpp 13
*/
diff --git a/doc/src/examples/icons.qdoc b/examples/widgets/doc/icons.qdoc
index daabb1651ce..2ccf8cac43e 100644
--- a/doc/src/examples/icons.qdoc
+++ b/examples/widgets/doc/icons.qdoc
@@ -246,7 +246,7 @@
\image icons_preview_area.png Screenshot of IconPreviewArea.
- \snippet examples/widgets/icons/iconpreviewarea.h 0
+ \snippet widgets/icons/iconpreviewarea.h 0
The \c IconPreviewArea class inherits QWidget. It displays the
generated pixmaps corresponding to an icon's possible states and
@@ -264,7 +264,7 @@
\section2 IconPreviewArea Class Implementation
- \snippet examples/widgets/icons/iconpreviewarea.cpp 0
+ \snippet widgets/icons/iconpreviewarea.cpp 0
In the constructor we create the labels displaying the headers and
the icon's generated pixmaps, and add them to a grid layout.
@@ -293,24 +293,24 @@
Another approach is to add this line directly to the \c .pro
file.
- \snippet examples/widgets/icons/iconpreviewarea.cpp 1
+ \snippet widgets/icons/iconpreviewarea.cpp 1
\codeline
- \snippet examples/widgets/icons/iconpreviewarea.cpp 2
+ \snippet widgets/icons/iconpreviewarea.cpp 2
The public \c setIcon() and \c setSize() functions change the icon
or the icon size, and make sure that the generated pixmaps are
updated.
- \snippet examples/widgets/icons/iconpreviewarea.cpp 3
+ \snippet widgets/icons/iconpreviewarea.cpp 3
\codeline
- \snippet examples/widgets/icons/iconpreviewarea.cpp 4
+ \snippet widgets/icons/iconpreviewarea.cpp 4
We use the \c createHeaderLabel() and \c createPixmapLabel()
functions to create the preview area's labels displaying the
headers and the icon's generated pixmaps. Both functions return
the QLabel that is created.
- \snippet examples/widgets/icons/iconpreviewarea.cpp 5
+ \snippet widgets/icons/iconpreviewarea.cpp 5
We use the private \c updatePixmapLabel() function to update the
generated pixmaps displayed in the preview area.
@@ -326,7 +326,7 @@
\image icons-example.png Screenshot of the Icons example
- \snippet examples/widgets/icons/mainwindow.h 0
+ \snippet widgets/icons/mainwindow.h 0
The MainWindow class inherits from QMainWindow. We reimplement the
constructor, and declare several private slots:
@@ -347,7 +347,7 @@
\section2 MainWindow Class Implementation
- \snippet examples/widgets/icons/mainwindow.cpp 0
+ \snippet widgets/icons/mainwindow.cpp 0
In the constructor we first create the main window's central
widget and its child widgets, and put them in a grid layout. Then
@@ -359,7 +359,7 @@
associated radio button, making the current value of the spin box
the icon's initial size.
- \snippet examples/widgets/icons/mainwindow.cpp 1
+ \snippet widgets/icons/mainwindow.cpp 1
The \c about() slot displays a message box using the static
QMessageBox::about() function. In this example it displays a
@@ -371,7 +371,7 @@
parent, and if that fails, it tries the active window. As a last
resort it uses the QMessageBox's Information icon.
- \snippet examples/widgets/icons/mainwindow.cpp 2
+ \snippet widgets/icons/mainwindow.cpp 2
In the \c changeStyle() slot we first check the slot's
parameter. If it is false we immediately return, otherwise we find
@@ -387,8 +387,8 @@
pointers are much easier to diagnose than crashes due to unsafe
casts.
- \snippet examples/widgets/icons/mainwindow.cpp 3
- \snippet examples/widgets/icons/mainwindow.cpp 4
+ \snippet widgets/icons/mainwindow.cpp 3
+ \snippet widgets/icons/mainwindow.cpp 4
Once we have the action, we extract the style name using
QAction::data(). Then we create a QStyle object using the static
@@ -407,7 +407,7 @@
group box and in the end call the \c changeSize() slot to update
the icon's size.
- \snippet examples/widgets/icons/mainwindow.cpp 5
+ \snippet widgets/icons/mainwindow.cpp 5
The \c changeSize() slot sets the size for the preview area's
icon.
@@ -420,7 +420,7 @@
based on the extent, and use that object to set the size of the
preview area's icon.
- \snippet examples/widgets/icons/mainwindow.cpp 12
+ \snippet widgets/icons/mainwindow.cpp 12
The first thing we do when the \c addImage() slot is called, is to
show a file dialog to the user. The easiest way to create a file
@@ -432,8 +432,8 @@
table widget. The table widget is listing the images the user has
loaded into the application.
- \snippet examples/widgets/icons/mainwindow.cpp 13
- \snippet examples/widgets/icons/mainwindow.cpp 14
+ \snippet widgets/icons/mainwindow.cpp 13
+ \snippet widgets/icons/mainwindow.cpp 14
We retrieve the image name using the QFileInfo::baseName()
function that returns the base name of the file without the path,
@@ -446,9 +446,9 @@
We also make sure that the item is not editable by removing the
Qt::ItemIsEditable flag. Table items are editable by default.
- \snippet examples/widgets/icons/mainwindow.cpp 15
- \snippet examples/widgets/icons/mainwindow.cpp 16
- \snippet examples/widgets/icons/mainwindow.cpp 17
+ \snippet widgets/icons/mainwindow.cpp 15
+ \snippet widgets/icons/mainwindow.cpp 16
+ \snippet widgets/icons/mainwindow.cpp 17
Then we create the second and third items in the row making the
default mode Normal and the default state Off. But if the \uicontrol
@@ -458,8 +458,8 @@
"_on", the state is changed to On. The sample files in the
example's \c images subdirectory respect this naming convension.
- \snippet examples/widgets/icons/mainwindow.cpp 18
- \snippet examples/widgets/icons/mainwindow.cpp 19
+ \snippet widgets/icons/mainwindow.cpp 18
+ \snippet widgets/icons/mainwindow.cpp 19
In the end we add the items to the associated row, and use the
QTableWidget::openPersistentEditor() function to create
@@ -472,8 +472,8 @@
in the preview area. So, corresponding to this fact, we need to
make sure that the new image's check box is enabled.
- \snippet examples/widgets/icons/mainwindow.cpp 6
- \snippet examples/widgets/icons/mainwindow.cpp 7
+ \snippet widgets/icons/mainwindow.cpp 6
+ \snippet widgets/icons/mainwindow.cpp 7
The \c changeIcon() slot is called when the user alters the set
of images listed in the QTableWidget, to update the QIcon object
@@ -483,9 +483,9 @@
QTableWidget, which lists the images the user has loaded into the
application.
- \snippet examples/widgets/icons/mainwindow.cpp 8
- \snippet examples/widgets/icons/mainwindow.cpp 9
- \snippet examples/widgets/icons/mainwindow.cpp 10
+ \snippet widgets/icons/mainwindow.cpp 8
+ \snippet widgets/icons/mainwindow.cpp 9
+ \snippet widgets/icons/mainwindow.cpp 10
We also extract the image file's name using the
QTableWidgetItem::data() function. This function takes a
@@ -500,12 +500,12 @@
with its associated mode and state, to the QIcon's set of
available pixmaps.
- \snippet examples/widgets/icons/mainwindow.cpp 11
+ \snippet widgets/icons/mainwindow.cpp 11
After running through the entire list of images, we change the
icon of the preview area to the one we just created.
- \snippet examples/widgets/icons/mainwindow.cpp 20
+ \snippet widgets/icons/mainwindow.cpp 20
In the \c removeAllImages() slot, we simply set the table widget's
row count to zero, automatically removing all the images the user
@@ -520,7 +520,7 @@
QTableWidget that will keep track of the images the user has
loaded into the application.
- \snippet examples/widgets/icons/mainwindow.cpp 21
+ \snippet widgets/icons/mainwindow.cpp 21
First we create a group box that will contain the table widget.
Then we create a QTableWidget and customize it to suit our
@@ -543,14 +543,14 @@
\c ImageDelegate, provides comboboxes for the mode and state
fields.
- \snippet examples/widgets/icons/mainwindow.cpp 22
- \snippet examples/widgets/icons/mainwindow.cpp 23
+ \snippet widgets/icons/mainwindow.cpp 22
+ \snippet widgets/icons/mainwindow.cpp 23
Then we customize the QTableWidget's horizontal header, and hide
the vertical header.
- \snippet examples/widgets/icons/mainwindow.cpp 24
- \snippet examples/widgets/icons/mainwindow.cpp 25
+ \snippet widgets/icons/mainwindow.cpp 24
+ \snippet widgets/icons/mainwindow.cpp 25
At the end, we connect the QTableWidget::itemChanged() signal to
the \c changeIcon() slot to ensuret that the preview area is in
@@ -562,7 +562,7 @@
constructor. It creates the widgets controlling the size of the
preview area's icon.
- \snippet examples/widgets/icons/mainwindow.cpp 26
+ \snippet widgets/icons/mainwindow.cpp 26
First we create a group box that will contain all the widgets;
then we create the radio buttons and the spin box.
@@ -574,7 +574,7 @@
handle icon sizes, e.g., "32 x 32", instead of plain integer
values.
- \snippet examples/widgets/icons/mainwindow.cpp 27
+ \snippet widgets/icons/mainwindow.cpp 27
Then we connect all of the radio buttons
\l{QRadioButton::toggled()}{toggled()} signals and the spin box's
@@ -584,7 +584,7 @@
In the end we put the widgets in a layout that we install on the
group box.
- \snippet examples/widgets/icons/mainwindow.cpp 28
+ \snippet widgets/icons/mainwindow.cpp 28
In the \c createActions() function we create and customize all the
actions needed to implement the functionality associated with the
@@ -602,7 +602,7 @@
with the style name. We will retrieve it later using
QAction::data().
- \snippet examples/widgets/icons/mainwindow.cpp 29
+ \snippet widgets/icons/mainwindow.cpp 29
In the \c createMenu() function, we add the previously created
actions to the \uicontrol File, \uicontrol View and \uicontrol Help menus.
@@ -612,7 +612,7 @@
application's menu bar, which we retrieve using
QMainWindow::menuBar().
- \snippet examples/widgets/icons/mainwindow.cpp 30
+ \snippet widgets/icons/mainwindow.cpp 30
QWidgets have a \l{QWidget::contextMenuPolicy}{contextMenuPolicy}
property that controls how the widget should behave when the user
@@ -625,7 +625,7 @@
actions to the table widget. They will then appear in the table
widget's context menu.
- \snippet examples/widgets/icons/mainwindow.cpp 31
+ \snippet widgets/icons/mainwindow.cpp 31
In the \c checkCurrentStyle() function we go through the group of
style actions, looking for the current GUI style.
@@ -649,7 +649,7 @@
\section2 IconSizeSpinBox Class Definition
- \snippet examples/widgets/icons/iconsizespinbox.h 0
+ \snippet widgets/icons/iconsizespinbox.h 0
The \c IconSizeSpinBox class is a subclass of QSpinBox. A plain
QSpinBox can only handle integers. But since we want to display
@@ -661,11 +661,11 @@
\section2 IconSizeSpinBox Class Implementation
- \snippet examples/widgets/icons/iconsizespinbox.cpp 0
+ \snippet widgets/icons/iconsizespinbox.cpp 0
The constructor is trivial.
- \snippet examples/widgets/icons/iconsizespinbox.cpp 2
+ \snippet widgets/icons/iconsizespinbox.cpp 2
QSpinBox::textFromValue() is used by the spin box whenever it
needs to display a value. The default implementation returns a
@@ -673,7 +673,7 @@
Our reimplementation returns a QString of the form "32 x 32".
- \snippet examples/widgets/icons/iconsizespinbox.cpp 1
+ \snippet widgets/icons/iconsizespinbox.cpp 1
The QSpinBox::valueFromText() function is used by the spin box
whenever it needs to interpret text typed in by the user. Since
@@ -699,7 +699,7 @@
\section2 ImageDelegate Class Definition
- \snippet examples/widgets/icons/imagedelegate.h 0
+ \snippet widgets/icons/imagedelegate.h 0
The \c ImageDelegate class is a subclass of QItemDelegate. The
QItemDelegate class provides display and editing facilities for
@@ -712,7 +712,7 @@
for this purpose allows the editing mechanism to be customized and
developed independently from the model and view.
- \snippet examples/widgets/icons/imagedelegate.h 1
+ \snippet widgets/icons/imagedelegate.h 1
The default implementation of QItemDelegate creates a QLineEdit.
Since we want the editor to be a QComboBox, we need to subclass
@@ -720,7 +720,7 @@
QItemDelegate::setEditorData() and QItemDelegate::setModelData()
functions.
- \snippet examples/widgets/icons/imagedelegate.h 2
+ \snippet widgets/icons/imagedelegate.h 2
The \c emitCommitData() slot is used to emit the
QImageDelegate::commitData() signal with the appropriate
@@ -728,11 +728,11 @@
\section2 ImageDelegate Class Implementation
- \snippet examples/widgets/icons/imagedelegate.cpp 0
+ \snippet widgets/icons/imagedelegate.cpp 0
The constructor is trivial.
- \snippet examples/widgets/icons/imagedelegate.cpp 1
+ \snippet widgets/icons/imagedelegate.cpp 1
The default QItemDelegate::createEditor() implementation returns
the widget used to edit the item specified by the model and item
@@ -752,7 +752,7 @@
chooses an item using the combobox. This ensures that the rest of
the application notices the change and updates itself.
- \snippet examples/widgets/icons/imagedelegate.cpp 2
+ \snippet widgets/icons/imagedelegate.cpp 2
The QItemDelegate::setEditorData() function is used by
QTableWidget to transfer data from a QTableWidgetItem to the
@@ -765,12 +765,12 @@
items is done implicitly by QTableWidget; we don't need to worry
about it.
- \snippet examples/widgets/icons/imagedelegate.cpp 3
+ \snippet widgets/icons/imagedelegate.cpp 3
The QItemDelegate::setEditorData() function is used by QTableWidget
to transfer data back from the editor to the \l{QTableWidgetItem}.
- \snippet examples/widgets/icons/imagedelegate.cpp 4
+ \snippet widgets/icons/imagedelegate.cpp 4
The \c emitCommitData() slot simply emit the
QAbstractItemDelegate::commitData() signal for the editor that
diff --git a/doc/src/examples/imagecomposition.qdoc b/examples/widgets/doc/imagecomposition.qdoc
index d7700858a0b..2eecfd46aa6 100644
--- a/doc/src/examples/imagecomposition.qdoc
+++ b/examples/widgets/doc/imagecomposition.qdoc
@@ -51,21 +51,21 @@
private slots, \c chooseSource(), \c chooseDestination(), and
\c recalculateResult().
- \snippet examples/painting/imagecomposition/imagecomposer.h 0
+ \snippet painting/imagecomposition/imagecomposer.h 0
In addition, \c ImageComposer consists of five private functions,
\c addOp(), \c chooseImage(), \c loadImage(), \c currentMode(), and
\c imagePos(), as well as private instances of QToolButton, QComboBox,
QLabel, and QImage.
- \snippet examples/painting/imagecomposition/imagecomposer.h 1
+ \snippet painting/imagecomposition/imagecomposer.h 1
\section1 ImageComposer Class Implementation
We declare a QSize object, \c resultSize, as a static constant with width
and height equal to 200.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 0
+ \snippet painting/imagecomposition/imagecomposer.cpp 0
Within the constructor, we instantiate a QToolButton object,
\c sourceButton and set its \l{QAbstractButton::setIconSize()}{iconSize}
@@ -74,7 +74,7 @@
QPainter::CompositionMode, \a mode, and a QString, \a name, representing
the name of the composition mode.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 1
+ \snippet painting/imagecomposition/imagecomposer.cpp 1
The \c destinationButton is instantiated and its
\l{QAbstractButton::setIconSize()}{iconSize} property is set to
@@ -82,7 +82,7 @@
are created and \c{resultLabel}'s \l{QWidget::setMinimumWidth()}
{minimumWidth} is set.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 2
+ \snippet painting/imagecomposition/imagecomposer.cpp 2
We connect the following signals to their corresponding slots:
\list
@@ -94,40 +94,40 @@
is connected to \c chooseDestination().
\endlist
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 3
+ \snippet painting/imagecomposition/imagecomposer.cpp 3
A QGridLayout, \c mainLayout, is used to place all the widgets. Note
that \c{mainLayout}'s \l{QLayout::setSizeConstraint()}{sizeConstraint}
property is set to QLayout::SetFixedSize, which means that
\c{ImageComposer}'s size cannot be resized at all.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 4
+ \snippet painting/imagecomposition/imagecomposer.cpp 4
We create a QImage, \c resultImage, and we invoke \c loadImage() twice
to load both the image files in our \e imagecomposition.qrc file. Then,
we set the \l{QWidget::setWindowTitle()}{windowTitle} property to
"Image Composition".
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 5
+ \snippet painting/imagecomposition/imagecomposer.cpp 5
The \c chooseSource() and \c chooseDestination() functions are
convenience functions that invoke \c chooseImage() with specific
parameters.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 6
+ \snippet painting/imagecomposition/imagecomposer.cpp 6
\codeline
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 7
+ \snippet painting/imagecomposition/imagecomposer.cpp 7
The \c chooseImage() function loads an image of the user's choice,
depending on the \a title, \a image, and \a button.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 10
+ \snippet painting/imagecomposition/imagecomposer.cpp 10
The \c recalculateResult() function is used to calculate amd display the
result of combining the two images together with the user's choice of
composition mode.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 8
+ \snippet painting/imagecomposition/imagecomposer.cpp 8
The \c addOp() function adds an item to the \c operatorComboBox using
\l{QComboBox}'s \l{QComboBox::addItem()}{addItem} function. This function
@@ -135,31 +135,31 @@
rectangle is filled with Qt::Transparent and both the \c sourceImage and
\c destinationImage are painted, before displaying it on \c resultLabel.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 9
+ \snippet painting/imagecomposition/imagecomposer.cpp 9
The \c loadImage() function paints a transparent background using
\l{QPainter::fillRect()}{fillRect()} and draws \c image in a
centralized position using \l{QPainter::drawImage()}{drawImage()}.
This \c image is then set as the \c{button}'s icon.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 11
+ \snippet painting/imagecomposition/imagecomposer.cpp 11
The \c currentMode() function returns the composition mode currently
selected in \c operatorComboBox.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 12
+ \snippet painting/imagecomposition/imagecomposer.cpp 12
We use the \c imagePos() function to ensure that images loaded onto the
QToolButton objects, \c sourceButton and \c destinationButton, are
centralized.
- \snippet examples/painting/imagecomposition/imagecomposer.cpp 13
+ \snippet painting/imagecomposition/imagecomposer.cpp 13
\section1 The \c main() Function
The \c main() function instantiates QApplication and \c ImageComposer
and invokes its \l{QWidget::show()}{show()} function.
- \snippet examples/painting/imagecomposition/main.cpp 0
+ \snippet painting/imagecomposition/main.cpp 0
*/
diff --git a/doc/src/examples/imageviewer.qdoc b/examples/widgets/doc/imageviewer.qdoc
index 554543e2527..8f8e2380462 100644
--- a/doc/src/examples/imageviewer.qdoc
+++ b/examples/widgets/doc/imageviewer.qdoc
@@ -69,7 +69,7 @@
\section1 ImageViewer Class Definition
- \snippet examples/widgets/imageviewer/imageviewer.h 0
+ \snippet widgets/imageviewer/imageviewer.h 0
The \c ImageViewer class inherits from QMainWindow. We reimplement
the constructor, and create several private slots to facilitate
@@ -85,7 +85,7 @@
\section1 ImageViewer Class Implementation
- \snippet examples/widgets/imageviewer/imageviewer.cpp 0
+ \snippet widgets/imageviewer/imageviewer.cpp 0
In the constructor we first create the label and the scroll area.
@@ -109,8 +109,8 @@
we create the associated actions and menus, and customize the \c
{ImageViewer}'s appearance.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 1
- \snippet examples/widgets/imageviewer/imageviewer.cpp 2
+ \snippet widgets/imageviewer/imageviewer.cpp 1
+ \snippet widgets/imageviewer/imageviewer.cpp 2
In the \c open() slot, we show a file dialog to the user. The
easiest way to create a QFileDialog is to use the static
@@ -133,8 +133,8 @@
information message with an \uicontrol OK button (the default) is
sufficient, since the message is part of a normal operation.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 3
- \snippet examples/widgets/imageviewer/imageviewer.cpp 4
+ \snippet widgets/imageviewer/imageviewer.cpp 3
+ \snippet widgets/imageviewer/imageviewer.cpp 4
If the format is supported, we display the image in \c imageLabel
by setting the label's \l {QLabel::pixmap}{pixmap}. Then we enable
@@ -154,8 +154,8 @@
In the \c print() slot, we first make sure that an image has been
loaded into the application:
- \snippet examples/widgets/imageviewer/imageviewer.cpp 5
- \snippet examples/widgets/imageviewer/imageviewer.cpp 6
+ \snippet widgets/imageviewer/imageviewer.cpp 5
+ \snippet widgets/imageviewer/imageviewer.cpp 6
If the application is built in debug mode, the \c Q_ASSERT() macro
will expand to
@@ -175,8 +175,8 @@
Another approach is to add this line directly to the \c .pro
file.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 7
- \snippet examples/widgets/imageviewer/imageviewer.cpp 8
+ \snippet widgets/imageviewer/imageviewer.cpp 7
+ \snippet widgets/imageviewer/imageviewer.cpp 8
Then we present a print dialog allowing the user to choose a
printer and to set a few options. We construct a painter with a
@@ -187,8 +187,8 @@
In the end we draw the pixmap at position (0, 0).
- \snippet examples/widgets/imageviewer/imageviewer.cpp 9
- \snippet examples/widgets/imageviewer/imageviewer.cpp 10
+ \snippet widgets/imageviewer/imageviewer.cpp 9
+ \snippet widgets/imageviewer/imageviewer.cpp 10
We implement the zooming slots using the private \c scaleImage()
function. We set the scaling factors to 1.25 and 0.8,
@@ -207,8 +207,8 @@
\li \inlineimage imageviewer-zoom_in_2.png
\endtable
- \snippet examples/widgets/imageviewer/imageviewer.cpp 11
- \snippet examples/widgets/imageviewer/imageviewer.cpp 12
+ \snippet widgets/imageviewer/imageviewer.cpp 11
+ \snippet widgets/imageviewer/imageviewer.cpp 12
When zooming, we use the QLabel's ability to scale its contents.
Such scaling doesn't change the actual size hint of the contents.
@@ -217,8 +217,8 @@
normal size of the currently displayed image is to call \c
adjustSize() and reset the scale factor to 1.0.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 13
- \snippet examples/widgets/imageviewer/imageviewer.cpp 14
+ \snippet widgets/imageviewer/imageviewer.cpp 13
+ \snippet widgets/imageviewer/imageviewer.cpp 14
The \c fitToWindow() slot is called each time the user toggled
the \uicontrol {Fit to Window} option. If the slot is called to turn on
@@ -257,14 +257,14 @@
label's size to its content. And in the end we update the view
menu entries.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 15
- \snippet examples/widgets/imageviewer/imageviewer.cpp 16
+ \snippet widgets/imageviewer/imageviewer.cpp 15
+ \snippet widgets/imageviewer/imageviewer.cpp 16
We implement the \c about() slot to create a message box
describing what the example is designed to show.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 17
- \snippet examples/widgets/imageviewer/imageviewer.cpp 18
+ \snippet widgets/imageviewer/imageviewer.cpp 17
+ \snippet widgets/imageviewer/imageviewer.cpp 18
In the private \c createAction() function, we create the
actions providing the application features.
@@ -275,8 +275,8 @@
been loaded into the application. In addition we make the \c
fitToWindowAct \l {QAction::checkable}{checkable}.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 19
- \snippet examples/widgets/imageviewer/imageviewer.cpp 20
+ \snippet widgets/imageviewer/imageviewer.cpp 19
+ \snippet widgets/imageviewer/imageviewer.cpp 20
In the private \c createMenu() function, we add the previously
created actions to the \uicontrol File, \uicontrol View and \uicontrol Help menus.
@@ -288,16 +288,16 @@
menu bar which we retrieve with the QMainWindow::menuBar()
function.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 21
- \snippet examples/widgets/imageviewer/imageviewer.cpp 22
+ \snippet widgets/imageviewer/imageviewer.cpp 21
+ \snippet widgets/imageviewer/imageviewer.cpp 22
The private \c updateActions() function enables or disables the
\uicontrol {Zoom In}, \uicontrol {Zoom Out} and \uicontrol {Normal Size} menu
entries depending on whether the \uicontrol {Fit to Window} option is
turned on or off.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 23
- \snippet examples/widgets/imageviewer/imageviewer.cpp 24
+ \snippet widgets/imageviewer/imageviewer.cpp 23
+ \snippet widgets/imageviewer/imageviewer.cpp 24
In \c scaleImage(), we use the \c factor parameter to calculate
the new scaling factor for the displayed image, and resize \c
@@ -312,8 +312,8 @@
image pixmap from becoming too large, consuming too much
resources in the window system.
- \snippet examples/widgets/imageviewer/imageviewer.cpp 25
- \snippet examples/widgets/imageviewer/imageviewer.cpp 26
+ \snippet widgets/imageviewer/imageviewer.cpp 25
+ \snippet widgets/imageviewer/imageviewer.cpp 26
Whenever we zoom in or out, we need to adjust the scroll bars in
consequence. It would have been tempting to simply call
diff --git a/doc/src/examples/interview.qdoc b/examples/widgets/doc/interview.qdoc
index 35721ccfaea..35721ccfaea 100644
--- a/doc/src/examples/interview.qdoc
+++ b/examples/widgets/doc/interview.qdoc
diff --git a/doc/src/examples/licensewizard.qdoc b/examples/widgets/doc/licensewizard.qdoc
index f0ad723d50f..125e0fec8fa 100644
--- a/doc/src/examples/licensewizard.qdoc
+++ b/examples/widgets/doc/licensewizard.qdoc
@@ -65,7 +65,7 @@
registering their copy of a fictitious software product. Here's
the class definition:
- \snippet examples/dialogs/licensewizard/licensewizard.h 1
+ \snippet dialogs/licensewizard/licensewizard.h 1
The class's public API is limited to a constructor and an enum.
The enum defines the IDs associated with the various pages:
@@ -83,30 +83,30 @@
that they must be unique and different from -1. IDs allow us to
refer to pages.
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 2
+ \snippet dialogs/licensewizard/licensewizard.cpp 2
In the constructor, we create the five pages, insert them into
the wizard using QWizard::setPage(), and set \c Page_Intro to be
the first page.
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 3
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 4
+ \snippet dialogs/licensewizard/licensewizard.cpp 3
+ \snippet dialogs/licensewizard/licensewizard.cpp 4
We set the style to \l{QWizard::}{ModernStyle} on all platforms
except Mac OS X,
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 5
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 6
+ \snippet dialogs/licensewizard/licensewizard.cpp 5
+ \snippet dialogs/licensewizard/licensewizard.cpp 6
We configure the QWizard to show a \uicontrol Help button, which is
connected to our \c showHelp() slot. We also set the
\l{QWizard::}{LogoPixmap} for all pages that have a header (i.e.,
\c EvaluatePage, \c RegisterPage, and \c DetailsPage).
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 9
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 11
+ \snippet dialogs/licensewizard/licensewizard.cpp 9
+ \snippet dialogs/licensewizard/licensewizard.cpp 11
\dots
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 13
+ \snippet dialogs/licensewizard/licensewizard.cpp 13
In \c showHelp(), we display help texts that are appropriate for
the current page. If the user clicks \uicontrol Help twice for the same
@@ -120,9 +120,9 @@
Here's the definition and implementation of \c{IntroPage}:
- \snippet examples/dialogs/licensewizard/licensewizard.h 4
+ \snippet dialogs/licensewizard/licensewizard.h 4
\codeline
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 16
+ \snippet dialogs/licensewizard/licensewizard.cpp 16
A page inherits from QWizardPage. We set a
\l{QWizardPage::}{title} and a
@@ -132,8 +132,8 @@
to display a watermark pixmap on the first and last pages, and to
have a header on the other pages.)
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 17
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 19
+ \snippet dialogs/licensewizard/licensewizard.cpp 17
+ \snippet dialogs/licensewizard/licensewizard.cpp 19
The \c nextId() function returns the ID for \c EvaluatePage if
the \uicontrol{Evaluate the product for 30 days} option is checked;
@@ -143,13 +143,13 @@
The \c EvaluatePage is slightly more involved:
- \snippet examples/dialogs/licensewizard/licensewizard.h 5
+ \snippet dialogs/licensewizard/licensewizard.h 5
\codeline
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 20
+ \snippet dialogs/licensewizard/licensewizard.cpp 20
\dots
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 21
+ \snippet dialogs/licensewizard/licensewizard.cpp 21
\dots
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 22
+ \snippet dialogs/licensewizard/licensewizard.cpp 22
First, we set the page's \l{QWizardPage::}{title}
and \l{QWizardPage::}{subTitle}.
@@ -164,7 +164,7 @@
Resetting the page amounts to clearing the two text fields.
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 23
+ \snippet dialogs/licensewizard/licensewizard.cpp 23
The next page is always the \c ConclusionPage.
@@ -173,14 +173,14 @@
The \c RegisterPage and \c DetailsPage are very similar to \c
EvaluatePage. Let's go directly to the \c ConclusionPage:
- \snippet examples/dialogs/licensewizard/licensewizard.h 6
+ \snippet dialogs/licensewizard/licensewizard.h 6
This time, we reimplement QWizardPage::initializePage() and
QWidget::setVisible(), in addition to
\l{QWizardPage::}{nextId()}. We also declare a private slot:
\c printButtonClicked().
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 18
+ \snippet dialogs/licensewizard/licensewizard.cpp 18
The default implementation of QWizardPage::nextId() returns
the page with the next ID, or -1 if the current page has the
@@ -189,7 +189,7 @@
but to avoid relying on such subtle behavior, we reimplement
\l{QWizardPage::}{nextId()} to return -1.
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 27
+ \snippet dialogs/licensewizard/licensewizard.cpp 27
We use QWizard::hasVisitedPage() to determine the type of
license agreement the user has chosen. If the user filled the \c
@@ -199,7 +199,7 @@
upgrade key and skipped the \c DetailsPage, the license text is
an Update License Agreement.
- \snippet examples/dialogs/licensewizard/licensewizard.cpp 28
+ \snippet dialogs/licensewizard/licensewizard.cpp 28
We want to display a \uicontrol Print button in the wizard when the \c
ConclusionPage is up. One way to accomplish this is to reimplement
diff --git a/doc/src/examples/lighting.qdoc b/examples/widgets/doc/lighting.qdoc
index aafa70f38c8..aafa70f38c8 100644
--- a/doc/src/examples/lighting.qdoc
+++ b/examples/widgets/doc/lighting.qdoc
diff --git a/doc/src/examples/lineedits.qdoc b/examples/widgets/doc/lineedits.qdoc
index 70d85cff693..c9cb7b5f439 100644
--- a/doc/src/examples/lineedits.qdoc
+++ b/examples/widgets/doc/lineedits.qdoc
@@ -46,7 +46,7 @@
The \c Window class inherits QWidget and contains a constructor and several
slots:
- \snippet examples/widgets/lineedits/window.h 0
+ \snippet widgets/lineedits/window.h 0
The slots are used to update the type of validator used for a given line edit when
a new validator has been selected in the associated combobox. The line edits
@@ -61,7 +61,7 @@
We begin by constructing a \l{QGroupBox}{group box} to hold a label, combobox,
and line edit so that we can demonstrate the QLineEdit::echoMode property:
- \snippet examples/widgets/lineedits/window.cpp 0
+ \snippet widgets/lineedits/window.cpp 0
At this point, none of these widgets have been arranged in layouts. Eventually,
the \c echoLabel, \c echoComboBox, and \c echoLineEdit will be placed in a
@@ -70,29 +70,29 @@
Similarly, we construct group boxes and collections of widgets to show the
effects of QIntValidator and QDoubleValidator on a line edit's contents:
- \snippet examples/widgets/lineedits/window.cpp 1
+ \snippet widgets/lineedits/window.cpp 1
Text alignment is demonstrated by another group of widgets:
- \snippet examples/widgets/lineedits/window.cpp 2
+ \snippet widgets/lineedits/window.cpp 2
QLineEdit supports the use of \l{QLineEdit::inputMask}{input masks}.
These only allow the user to type characters into the line edit that
follow a simple specification. We construct a group of widgets to
demonstrate a selection of predefined masks:
- \snippet examples/widgets/lineedits/window.cpp 3
+ \snippet widgets/lineedits/window.cpp 3
Another useful feature of QLineEdit is its ability to make its contents
read-only. This property is used to control access to a line edit in the
following group of widgets:
- \snippet examples/widgets/lineedits/window.cpp 4
+ \snippet widgets/lineedits/window.cpp 4
Now that all the child widgets have been constructed, we connect signals
from the comboboxes to slots in the \c Window object:
- \snippet examples/widgets/lineedits/window.cpp 5
+ \snippet widgets/lineedits/window.cpp 5
Each of these connections use the QComboBox::activated() signal that
supplies an integer to the slot. This will be used to efficiently
@@ -101,16 +101,16 @@
We place each combobox, line edit, and label in a layout for each group
box, beginning with the layout for the \c echoGroup group box:
- \snippet examples/widgets/lineedits/window.cpp 6
+ \snippet widgets/lineedits/window.cpp 6
The other layouts are constructed in the same way:
- \snippet examples/widgets/lineedits/window.cpp 7
+ \snippet widgets/lineedits/window.cpp 7
Finally, we place each group box in a grid layout for the \c Window object
and set the window title:
- \snippet examples/widgets/lineedits/window.cpp 8
+ \snippet widgets/lineedits/window.cpp 8
The slots respond to signals emitted when the comboboxes are changed by the
user.
@@ -118,7 +118,7 @@
When the combobox for the \uicontrol{Echo} group box is changed, the \c echoChanged()
slot is called:
- \snippet examples/widgets/lineedits/window.cpp 9
+ \snippet widgets/lineedits/window.cpp 9
The slot updates the line edit in the same group box to use an echo mode that
corresponds to the entry described in the combobox.
@@ -126,7 +126,7 @@
When the combobox for the \uicontrol{Validator} group box is changed, the
\c validatorChanged() slot is called:
- \snippet examples/widgets/lineedits/window.cpp 10
+ \snippet widgets/lineedits/window.cpp 10
The slot either creates a new validator for the line edit to use, or it removes
the validator in use by calling QLineEdit::setValidator() with a zero pointer.
@@ -136,7 +136,7 @@
When the combobox for the \uicontrol{Alignment} group box is changed, the
\c alignmentChanged() slot is called:
- \snippet examples/widgets/lineedits/window.cpp 11
+ \snippet widgets/lineedits/window.cpp 11
This changes the way that text is displayed in the line edit to correspond with
the description selected in the combobox.
@@ -144,7 +144,7 @@
The \c inputMaskChanged() slot handles changes to the combobox in the
\uicontrol{Input Mask} group box:
- \snippet examples/widgets/lineedits/window.cpp 12
+ \snippet widgets/lineedits/window.cpp 12
Each entry in the relevant combobox is associated with an input mask. We set
a new mask by calling the QLineEdit::setMask() function with a suitable string;
@@ -153,7 +153,7 @@
The \c accessChanged() slot handles changes to the combobox in the
\uicontrol{Access} group box:
- \snippet examples/widgets/lineedits/window.cpp 13
+ \snippet widgets/lineedits/window.cpp 13
Here, we simply associate the \uicontrol{False} and \uicontrol{True} entries in the combobox
with \c false and \c true values to be passed to QLineEdit::setReadOnly(). This
diff --git a/doc/src/examples/mainwindow.qdoc b/examples/widgets/doc/mainwindow.qdoc
index b4f6aebed14..b4f6aebed14 100644
--- a/doc/src/examples/mainwindow.qdoc
+++ b/examples/widgets/doc/mainwindow.qdoc
diff --git a/doc/src/examples/mdi.qdoc b/examples/widgets/doc/mdi.qdoc
index e8b1b5c9efc..e8b1b5c9efc 100644
--- a/doc/src/examples/mdi.qdoc
+++ b/examples/widgets/doc/mdi.qdoc
diff --git a/doc/src/examples/menus.qdoc b/examples/widgets/doc/menus.qdoc
index 575a1f02193..3531e439c1d 100644
--- a/doc/src/examples/menus.qdoc
+++ b/examples/widgets/doc/menus.qdoc
@@ -57,7 +57,7 @@
tool bars, dock widgets and a status bar around a large central
widget.
- \snippet examples/mainwindows/menus/mainwindow.h 0
+ \snippet mainwindows/menus/mainwindow.h 0
In this example, we will see how to implement pull-down menus as
well as a context menu. In order to implement a custom context
@@ -65,7 +65,7 @@
{QWidget::}{contextMenuEvent()} function to receive the context
menu events for our main window.
- \snippet examples/mainwindows/menus/mainwindow.h 1
+ \snippet mainwindows/menus/mainwindow.h 1
We must also implement a collection of private slots to respond to
the user activating any of our menu entries. Note that these
@@ -73,14 +73,14 @@
i.e., most of them are only displaying the action's path in the
main window's central widget.
- \snippet examples/mainwindows/menus/mainwindow.h 2
+ \snippet mainwindows/menus/mainwindow.h 2
We have chosen to simplify the constructor by implementing two
private convenience functions to create the various actions, to
add them to menus and to insert the menus into our main window's
menu bar.
- \snippet examples/mainwindows/menus/mainwindow.h 3
+ \snippet mainwindows/menus/mainwindow.h 3
Finally, we declare the various menus and actions as well as a
simple information label in the application wide scope.
@@ -104,9 +104,9 @@
window takes ownership of the widget pointer and deletes it at the
appropriate time.
- \snippet examples/mainwindows/menus/mainwindow.cpp 0
+ \snippet mainwindows/menus/mainwindow.cpp 0
\codeline
- \snippet examples/mainwindows/menus/mainwindow.cpp 1
+ \snippet mainwindows/menus/mainwindow.cpp 1
Then we create the information label as well as a top and bottom
filler that we add to a layout which we install on the central
@@ -115,7 +115,7 @@
layout with a main window as a parent, is considered an error. You
should always set your own layout on the central widget instead.
- \snippet examples/mainwindows/menus/mainwindow.cpp 2
+ \snippet mainwindows/menus/mainwindow.cpp 2
To create the actions and menus we call our two convenience
functions: \c createActions() and \c createMenus(). We will get
@@ -132,7 +132,7 @@
Now, let's take a closer look at the \c createActions() convenience
function that creates the various actions:
- \snippet examples/mainwindows/menus/mainwindow.cpp 4
+ \snippet mainwindows/menus/mainwindow.cpp 4
\dots
A QAction object may contain an icon, a text, a shortcut, a status
@@ -151,7 +151,7 @@
The rest of the actions are created in a similar manner. Please
see the source code for details.
- \snippet examples/mainwindows/menus/mainwindow.cpp 7
+ \snippet mainwindows/menus/mainwindow.cpp 7
Once we have created the \uicontrol {Left Align}, \uicontrol {Right Align},
@@ -169,7 +169,7 @@
function to add the actions to the menus and to insert the menus
into the menu bar:
- \snippet examples/mainwindows/menus/mainwindow.cpp 8
+ \snippet mainwindows/menus/mainwindow.cpp 8
QMenuBar's \l {QMenuBar::addMenu()}{addMenu()} function appends a
new QMenu with the given title, to the menu bar (note that the
@@ -189,7 +189,7 @@
returns true, and adds the new action to the menu's list of
actions.
- \snippet examples/mainwindows/menus/mainwindow.cpp 12
+ \snippet mainwindows/menus/mainwindow.cpp 12
Note the \uicontrol Format menu. First of all, it is added as a submenu
to the \uicontrol Edit Menu using QMenu's \l
@@ -200,7 +200,7 @@
to the menu separately while the action group does its magic
behind the scene.
- \snippet examples/mainwindows/menus/mainwindow.cpp 3
+ \snippet mainwindows/menus/mainwindow.cpp 3
To provide a custom context menu, we must reimplement QWidget's \l
{QWidget::}{contextMenuEvent()} function to receive the widget's
diff --git a/doc/src/examples/moveblocks.qdoc b/examples/widgets/doc/moveblocks.qdoc
index 38551abd28f..8c12280989d 100644
--- a/doc/src/examples/moveblocks.qdoc
+++ b/examples/widgets/doc/moveblocks.qdoc
@@ -62,7 +62,7 @@
After QApplication has been initialized, we set up the
QGraphicsScene with its \c{QGraphicsRectWidget}s.
- \snippet examples/animation/moveblocks/main.cpp 1
+ \snippet animation/moveblocks/main.cpp 1
After adding the scene to a QGraphicsView, it is time to build the
state graph. Let's first look at a statechart of what we are
@@ -75,7 +75,7 @@
graph will be examined line-by-line, and will show how the graph
works. First off, we construct the \c group state:
- \snippet examples/animation/moveblocks/main.cpp 2
+ \snippet animation/moveblocks/main.cpp 2
The timer is used to add a delay between each time the blocks are
moved. The timer is started when \c group is entered. As we will
@@ -84,9 +84,9 @@
machine, so an animation will be scheduled when the example is
started.
- \snippet examples/animation/moveblocks/main.cpp 3
+ \snippet animation/moveblocks/main.cpp 3
\dots
- \snippet examples/animation/moveblocks/main.cpp 4
+ \snippet animation/moveblocks/main.cpp 4
\c createGeometryState() returns a QState that will set the
geometry of our items upon entry. It also assigns \c group as the
@@ -98,20 +98,20 @@
properties and the values in the target state. We add animated
transitions to the state graph later.
- \snippet examples/animation/moveblocks/main.cpp 5
+ \snippet animation/moveblocks/main.cpp 5
We move the items in parallel. Each item is added to \c
animationGroup, which is the animation that is inserted into the
transitions.
- \snippet examples/animation/moveblocks/main.cpp 6
+ \snippet animation/moveblocks/main.cpp 6
The sequential animation group, \c subGroup, helps us insert a
delay between the animation of each item.
- \snippet examples/animation/moveblocks/main.cpp 7
+ \snippet animation/moveblocks/main.cpp 7
\dots
- \snippet examples/animation/moveblocks/main.cpp 8
+ \snippet animation/moveblocks/main.cpp 8
A StateSwitchTransition is added to the state switcher
in \c StateSwitcher::addState(). We also add the animation in this
@@ -122,7 +122,7 @@
As mentioned previously, we add a transition to the state switcher
that triggers when the timer times out.
- \snippet examples/animation/moveblocks/main.cpp 9
+ \snippet animation/moveblocks/main.cpp 9
Finally, we can create the state machine, add our initial state,
and start execution of the state graph.
@@ -132,7 +132,7 @@
In \c createGeometryState(), we set up the geometry for each
graphics item.
- \snippet examples/animation/moveblocks/main.cpp 13
+ \snippet animation/moveblocks/main.cpp 13
As mentioned before, QAbstractTransition will set up an animation
added with \l{QAbstractTransition::}{addAnimation()} using
@@ -147,20 +147,20 @@
All functions in \c StateSwitcher are inlined. We'll step through
its definition.
- \snippet examples/animation/moveblocks/main.cpp 10
+ \snippet animation/moveblocks/main.cpp 10
\c StateSwitcher is a state designed for a particular purpose and
will always be a top-level state. We use \c m_stateCount to keep
track of how many states we are managing, and \c m_lastIndex to
remember which state was the last state to which we transitioned.
- \snippet examples/animation/moveblocks/main.cpp 11
+ \snippet animation/moveblocks/main.cpp 11
We select the next state we are going to transition to, and post a
\c StateSwitchEvent, which we know will trigger the \c
StateSwitchTransition to the selected state.
- \snippet examples/animation/moveblocks/main.cpp 12
+ \snippet animation/moveblocks/main.cpp 12
This is where the magic happens. We assign a number to each state
added. This number is given to both a StateSwitchTransition and to
@@ -174,7 +174,7 @@
let's take a look at its \l{QAbstractTransition::}{eventTest()}
function, which is the only function that we define..
- \snippet examples/animation/moveblocks/main.cpp 14
+ \snippet animation/moveblocks/main.cpp 14
\c eventTest is called by QStateMachine when it checks whether a
transition should be triggered--a return value of true means that
@@ -188,7 +188,7 @@
\c StateSwitcher. We have already seen how it is used to trigger
\c{StateSwitchTransition}s in \c StateSwitcher.
- \snippet examples/animation/moveblocks/main.cpp 15
+ \snippet animation/moveblocks/main.cpp 15
We only have inlined functions in this class, so a look at its
definition will do.
@@ -200,7 +200,7 @@
which is the only function we define. Here is the
QGraphicsRectWidget class definition:
- \snippet examples/animation/moveblocks/main.cpp 16
+ \snippet animation/moveblocks/main.cpp 16
\section1 Moving On
diff --git a/doc/src/examples/movie.qdoc b/examples/widgets/doc/movie.qdoc
index 7573d796c30..7573d796c30 100644
--- a/doc/src/examples/movie.qdoc
+++ b/examples/widgets/doc/movie.qdoc
diff --git a/doc/src/examples/orderform.qdoc b/examples/widgets/doc/orderform.qdoc
index c9ef75640fc..ed40c650935 100644
--- a/doc/src/examples/orderform.qdoc
+++ b/examples/widgets/doc/orderform.qdoc
@@ -43,7 +43,7 @@
\c verify() to allow contents of the \c DetailsDialog to be verified later.
This is further explained in \c DetailsDialog Implementation.
- \snippet examples/richtext/orderform/detailsdialog.h 0
+ \snippet richtext/orderform/detailsdialog.h 0
The constructor of \c DetailsDialog accepts parameters \a title and
\a parent. The class defines four \e{getter} functions: \c orderItems(),
@@ -72,11 +72,11 @@
\c rejected() signals are connected to the \c verify() and \c reject()
slots in \c DetailsDialog.
- \snippet examples/richtext/orderform/detailsdialog.cpp 0
+ \snippet richtext/orderform/detailsdialog.cpp 0
A QGridLayout is used to place all the objects on the \c DetailsDialog.
- \snippet examples/richtext/orderform/detailsdialog.cpp 1
+ \snippet richtext/orderform/detailsdialog.cpp 1
The \c setupItemsTable() function instantiates the QTableWidget object,
\c itemsTable, and sets the number of rows based on the QStringList
@@ -88,29 +88,29 @@
\c itemsTable have this value for quantity; but this can be modified by
editing the contents of the cells at run time.
- \snippet examples/richtext/orderform/detailsdialog.cpp 2
+ \snippet richtext/orderform/detailsdialog.cpp 2
The \c orderItems() function extracts data from the \c itemsTable and
returns it in the form of a QList<QPair<QString,int>> where each QPair
corresponds to an item and the quantity ordered.
- \snippet examples/richtext/orderform/detailsdialog.cpp 3
+ \snippet richtext/orderform/detailsdialog.cpp 3
The \c senderName() function is used to return the value of the QLineEdit
used to store the name field for the order form.
- \snippet examples/richtext/orderform/detailsdialog.cpp 4
+ \snippet richtext/orderform/detailsdialog.cpp 4
The \c senderAddress() function is used to return the value of the
QTextEdit containing the address for the order form.
- \snippet examples/richtext/orderform/detailsdialog.cpp 5
+ \snippet richtext/orderform/detailsdialog.cpp 5
The \c sendOffers() function is used to return a \c true or \c false
value that is used to determine if the customer in the order form
wishes to receive more information on the company's offers and promotions.
- \snippet examples/richtext/orderform/detailsdialog.cpp 6
+ \snippet richtext/orderform/detailsdialog.cpp 6
The \c verify() function is an additionally implemented slot used to
verify the details entered by the user into the \c DetailsDialog. If
@@ -118,7 +118,7 @@
providing the user the option to discard the \c DetailsDialog. Otherwise,
the details are accepted and the \c accept() function is invoked.
- \snippet examples/richtext/orderform/detailsdialog.cpp 7
+ \snippet richtext/orderform/detailsdialog.cpp 7
\section1 MainWindow Definition
@@ -126,7 +126,7 @@
slots - \c openDialog() and \c printFile(). It also contains a private
instance of QTabWidget, \c letters.
- \snippet examples/richtext/orderform/mainwindow.h 0
+ \snippet richtext/orderform/mainwindow.h 0
\section1 MainWindow Implementation
@@ -136,20 +136,20 @@
and the default close() slot. The QTabWidget, \c letters, is
instantiated and set as the window's central widget.
- \snippet examples/richtext/orderform/mainwindow.cpp 0
+ \snippet richtext/orderform/mainwindow.cpp 0
The \c createLetter() function creates a new QTabWidget with a QTextEdit,
\c editor, as the parent. This function accepts four parameters that
correspond to we obtained through \c DetailsDialog, in order to "fill"
the \c editor.
- \snippet examples/richtext/orderform/mainwindow.cpp 1
+ \snippet richtext/orderform/mainwindow.cpp 1
We then obtain the cursor for the \c editor using QTextEdit::textCursor().
The \c cursor is then moved to the start of the document using
QTextCursor::Start.
- \snippet examples/richtext/orderform/mainwindow.cpp 2
+ \snippet richtext/orderform/mainwindow.cpp 2
Recall the structure of a \l{Rich Text Document Structure}
{Rich Text Document}, where sequences of frames and
@@ -180,7 +180,7 @@
This is accomplished with the following code:
- \snippet examples/richtext/orderform/mainwindow.cpp 3
+ \snippet richtext/orderform/mainwindow.cpp 3
Note that \c topFrame is the \c {editor}'s top-level frame and is not shown
in the document structure.
@@ -189,7 +189,7 @@
\c topFrame and fill in the customer's name (provided by the constructor)
and address - using a \c foreach loop to traverse the QString, \c address.
- \snippet examples/richtext/orderform/mainwindow.cpp 4
+ \snippet richtext/orderform/mainwindow.cpp 4
The \c cursor is now back in \c topFrame and the document structure for
the above portion of code is:
@@ -209,12 +209,12 @@
{setWidth()} to increase the width of \c bodyFrameFormat and we insert
a new frame with that width.
- \snippet examples/richtext/orderform/mainwindow.cpp 5
+ \snippet richtext/orderform/mainwindow.cpp 5
The following code inserts standard text into the order form.
- \snippet examples/richtext/orderform/mainwindow.cpp 6
- \snippet examples/richtext/orderform/mainwindow.cpp 7
+ \snippet richtext/orderform/mainwindow.cpp 6
+ \snippet richtext/orderform/mainwindow.cpp 7
This part of the document structure now contains the date, a frame with
\c bodyFrameFormat, as well as the standard text.
@@ -241,17 +241,17 @@
A QTextTableFormat object, \c orderTableFormat, is used to hold the type
of item and the quantity ordered.
- \snippet examples/richtext/orderform/mainwindow.cpp 8
+ \snippet richtext/orderform/mainwindow.cpp 8
We use \l{QTextTable::cellAt()}{cellAt()} to set the headers for the
\c orderTable.
- \snippet examples/richtext/orderform/mainwindow.cpp 9
+ \snippet richtext/orderform/mainwindow.cpp 9
Then, we iterate through the QList of QPair objects to populate
\c orderTable.
- \snippet examples/richtext/orderform/mainwindow.cpp 10
+ \snippet richtext/orderform/mainwindow.cpp 10
The resulting document structure for this section is:
@@ -284,13 +284,13 @@
\l{QTextFrame::lastPosition()}{lastPosition()} and more standard text
is inserted.
- \snippet examples/richtext/orderform/mainwindow.cpp 11
- \snippet examples/richtext/orderform/mainwindow.cpp 12
+ \snippet richtext/orderform/mainwindow.cpp 11
+ \snippet richtext/orderform/mainwindow.cpp 12
Another QTextTable is inserted, to display the customer's
preference regarding offers.
- \snippet examples/richtext/orderform/mainwindow.cpp 13
+ \snippet richtext/orderform/mainwindow.cpp 13
The document structure for this portion is:
@@ -315,7 +315,7 @@
name. More blocks are inserted for spacing purposes. The \c printAction
is enabled to indicate that an order form can now be printed.
- \snippet examples/richtext/orderform/mainwindow.cpp 14
+ \snippet richtext/orderform/mainwindow.cpp 14
The bottom portion of the document structure is:
@@ -337,18 +337,18 @@
The \c createSample() function is used for illustration purposes, to create
a sample order form.
- \snippet examples/richtext/orderform/mainwindow.cpp 15
+ \snippet richtext/orderform/mainwindow.cpp 15
The \c openDialog() function opens a \c DetailsDialog object. If the
details in \c dialog are accepted, the \c createLetter() function is
invoked using the parameters extracted from \c dialog.
- \snippet examples/richtext/orderform/mainwindow.cpp 16
+ \snippet richtext/orderform/mainwindow.cpp 16
In order to print out the order form, a \c printFile() function is
included, as shown below:
- \snippet examples/richtext/orderform/mainwindow.cpp 17
+ \snippet richtext/orderform/mainwindow.cpp 17
This function also allows the user to print a selected area with
QTextCursor::hasSelection(), instead of printing the entire document.
@@ -359,6 +359,6 @@
640x480 pixels before invoking the \c show() function and
\c createSample() function.
- \snippet examples/richtext/orderform/main.cpp 0
+ \snippet richtext/orderform/main.cpp 0
*/
diff --git a/doc/src/examples/padnavigator.qdoc b/examples/widgets/doc/padnavigator.qdoc
index 840c16b0c91..8b1da516b52 100644
--- a/doc/src/examples/padnavigator.qdoc
+++ b/examples/widgets/doc/padnavigator.qdoc
@@ -60,7 +60,7 @@
Let's start by reviewing the \c RoundRectItem class declaration.
- \snippet examples/graphicsview/padnavigator/roundrectitem.h 0
+ \snippet graphicsview/padnavigator/roundrectitem.h 0
\c RoundRectItem inherits QGraphicsObject, which makes it easy to control
its properties using QPropertyAnimation. Its constructor takes a rectangle
@@ -76,7 +76,7 @@
Otherwise the contents are filled using a gradient based on the color
passed to \c RoundRectItem's constructor.
- \snippet examples/graphicsview/padnavigator/roundrectitem.h 1
+ \snippet graphicsview/padnavigator/roundrectitem.h 1
The private data members are:
@@ -91,7 +91,7 @@
We will now review the \c RoundRectItem implementation. Let's start by
looking at its constructor:
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 0
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 0
The constructor initializes its member variables and forwards the \c parent
argument to QGraphicsObject's constructor. It then constructs the linear
@@ -110,24 +110,24 @@
remains persistent as we move and transform the item. This mode is ideal
for this example, and works particularly well with OpenGL and OpenGL ES.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 1
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 1
The \c pixmap property implementation simple returns the member pixmap, or
sets it and then calls \l{QGraphicsItem::update()}{update()}.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 2
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 2
As the \l{QGraphicsItem::paint()}{paint()} implementation below draws a
simple drop shadow down and to the right of the item, we return a slightly
adjusted rectangle from \l{QGraphicsItem::boundingRect()}{boundingRect()}.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 3
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 3
The \l{QGraphicsItem::paint()}{paint()} implementation starts by rendering
a semi transparent black round rectangle drop shadow, two units down and to
the right of the main item.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 4
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 4
We then draw the "foreground" round rectangle itself. The fill depends on
the \c fill property; if true, we will with a plain QPalette::Window color.
@@ -135,14 +135,14 @@
unit wide pen for the stroke, assign the brush, and then draw the
rectangle.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 5
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 5
If a pixmap has been assigned to the \e pixmap property, we draw this
pixmap in the center of the rectangle item. The pixmaps are scaled to match
the size of the icons; in arguably a better approach would have been to
store the icons with the right size in the first places.
- \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 6
+ \snippet graphicsview/padnavigator/roundrectitem.cpp 6
Finally, for completeness we include the \c fill property implementation.
It returns the \c fill member variable's value, and when assigned to, it
@@ -157,7 +157,7 @@
\c FlippablePad is, in addition to its inherited \c RoundRectItem
responsibilities, responsible for creating and managing a grid of icons.
- \snippet examples/graphicsview/padnavigator/flippablepad.h 0
+ \snippet graphicsview/padnavigator/flippablepad.h 0
Its declaration is very simple: It inherits \c RoundRectItem and does not
need any special polymorphic behavior. It's suitable to declare its own
@@ -175,26 +175,26 @@
starts with two helper functions: \c boundsFromSize() and \c
posForLocation():
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 0
+ \snippet graphicsview/padnavigator/flippablepad.cpp 0
\c boundsForSize() takes a QSize argument, and returns the bounding
rectangle of the flippable pad item. The QSize determines how many rows and
columns the icon grid should have. Each icon is given 150x150 units of
space, and this determines the bounds.
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 1
+ \snippet graphicsview/padnavigator/flippablepad.cpp 1
\c posForLocation() returns the position of an icon given its row and
column position. Like \c boundsForSize(), the function assumes each icon is
given 150x150 units of space, and that all icons are centered around the
flippable pad item's origin (0, 0).
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 2
+ \snippet graphicsview/padnavigator/flippablepad.cpp 2
The \c FlippablePad constructor passes suitable bounds (using \c
boundsForSize()) and specific color to \c RoundRectItem's constructor.
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 3
+ \snippet graphicsview/padnavigator/flippablepad.cpp 3
It then loads pixmaps from compiled-in resources to use for its icons.
QDirIterator is very useful in this context, as it allows us to fetch all
@@ -203,7 +203,7 @@
We also make sure not to load more pixmaps than we need.
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 4
+ \snippet graphicsview/padnavigator/flippablepad.cpp 4
Now that we have the pixmaps, we can create icons, position then and assign
pixmaps. We start by finding a suitable size and color for the icons, and
@@ -222,7 +222,7 @@
natural to assign the pixmaps directly, or that the icons themselves
provide suitable pixmaps.
- \snippet examples/graphicsview/padnavigator/flippablepad.cpp 5
+ \snippet graphicsview/padnavigator/flippablepad.cpp 5
Finally, the \c iconAt() function returns a pointer to the icon at a
specific row and column. It makes a somewhat bold assumption that the input
@@ -238,7 +238,7 @@
started, and disappears after pressing any key. The animation is controlled
by \c PadNavigator; this class is very simple by itself.
- \snippet examples/graphicsview/padnavigator/splashitem.h 0
+ \snippet graphicsview/padnavigator/splashitem.h 0
The class declaration shows that \c SplashItem inherits QGraphicsObject to
allow it to be controlled by QPropertyAnimation. It reimplements the
@@ -249,7 +249,7 @@
Let's look at its implementation.
- \snippet examples/graphicsview/padnavigator/splashitem.cpp 0
+ \snippet graphicsview/padnavigator/splashitem.cpp 0
The constructor forwards to QGraphicsObject as expected, assigns a text
message to the \c text member variable, and enables
@@ -263,11 +263,11 @@
We use caching to avoid having to relayout and rerender the text for each
frame. An alterative approach would be to use the new QStaticText class.
- \snippet examples/graphicsview/padnavigator/splashitem.cpp 1
+ \snippet graphicsview/padnavigator/splashitem.cpp 1
\c SplashItem's bounding rectangle is fixed at (400x175).
- \snippet examples/graphicsview/padnavigator/splashitem.cpp 2
+ \snippet graphicsview/padnavigator/splashitem.cpp 2
The \l{QGraphicsItem::paint()}{paint()} implementation draws a clipped
round rectangle with a thick 2-unit border and a semi-transparent white
@@ -284,7 +284,7 @@
application. It creates and controls a somewhat complex state machine, and
several animations. Its class declaration is very simple:
- \snippet examples/graphicsview/padnavigator/padnavigator.h 0
+ \snippet graphicsview/padnavigator/padnavigator.h 0
It inherits QGraphicsView and reimplements only one function:
\l{QGraphicsView::resizeEvent()}{resizeEvent()}, to ensure the scene is
@@ -296,7 +296,7 @@
It also keeps a private member instance, \c form, which is the generated
code for the pad's back side item's QGraphicsProxyWidget-embedded form.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 0
+ \snippet graphicsview/padnavigator/padnavigator.cpp 0
\c PadNavigator's constructor is a bit long. In short, its job is to create
all items, including the \c FlippablePad, the \c SplashItem and the
@@ -305,13 +305,13 @@
It starts out simple, by forwarding to QGraphicsView's constructor.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 1
+ \snippet graphicsview/padnavigator/padnavigator.cpp 1
The first item to be created is \c SplashItem. This is going to be a top-level
item in the scene, next to \c FlippablePad, and stacked on top of it, so we
assign it a \l{QGraphicsItem::zValue()}{Z-value} of 1.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 2
+ \snippet graphicsview/padnavigator/padnavigator.cpp 2
Now we construct the \c FlippablePad item, passing its column-row count to
its constructor.
@@ -334,7 +334,7 @@
The combination of all three rotations is assigned via
QGraphicsItem::setTransformations().
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 3
+ \snippet graphicsview/padnavigator/padnavigator.cpp 3
Now we construct the QGraphicsProxyWidget-embedded \c backItem. The proxy
widget is created as a child of the pad. We create a new QWidget and
@@ -353,7 +353,7 @@
We enable \l{QGraphicsItem::ItemCoordinateCache}{ItemCoordinateCache} to
ensure the flip animation can run smoothly.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 4
+ \snippet graphicsview/padnavigator/padnavigator.cpp 4
We now create the selection item. This is simply another instance of \c
RoundRectItem that is slightly larger than the icons on the pad. We create
@@ -364,7 +364,7 @@
What follows now is a series of animation initializations.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 5
+ \snippet graphicsview/padnavigator/padnavigator.cpp 5
We begin with the animations that apply to the splash item. The first
animation, \c smoothSplashMove, ensures that the "y" property of \c splash
@@ -375,14 +375,14 @@
The values are assigned by \c PadNavigator's state machine, which is
created later.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 6
+ \snippet graphicsview/padnavigator/padnavigator.cpp 6
These are the animations that control the selection item's movement and the
\c xRotation and \c yRotation QGraphicsRotation objects that tilt the pad.
All animations have a duration of 125 milliseconds, and they all use the
\l{QEasingCurve::InOutQuad}{InOutQuad} easing function.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 7
+ \snippet graphicsview/padnavigator/padnavigator.cpp 7
We now create the animations that control the flip-effect when you press
the enter key. The main goal is to rotate the pad by 180 degrees or back,
@@ -407,7 +407,7 @@
duration, or 250 milliseconds, the pad will be scaled down to 0.7x of its
original size, which gives a great visual effect while flipping.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 8
+ \snippet graphicsview/padnavigator/padnavigator.cpp 8
This section uses a trick to ensure that certain properties are assigned
precisely when the flip animation passes 50%, or 90 degrees, rotation. In
@@ -424,7 +424,7 @@
This approach can also be used to call functions or set any other
properties at a specific time while an animation is running.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 9
+ \snippet graphicsview/padnavigator/padnavigator.cpp 9
We will now create the state machine. The whole \c PadNavigator state
machinery is controlled by one single state machine that has a
@@ -440,7 +440,7 @@
can interact with the QGraphicsProxyWidget-embedded form.
\endlist
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 10
+ \snippet graphicsview/padnavigator/padnavigator.cpp 10
Each state assigns specific properties to objects on entry. Most
interesting perhaps is the assignment of the value 0.0 to the pad's \c
@@ -454,7 +454,7 @@
before we start the state engine. We proceed with creating some
transitions.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 11
+ \snippet graphicsview/padnavigator/padnavigator.cpp 11
QEventTransition defines a very flexible transition type. You can use this
class to trigger a transition based on an object receiving an event of a
@@ -465,7 +465,7 @@
We register the \c splashItem's animations to this transition to ensure they
are used to animate the item's movement and opacity.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 12
+ \snippet graphicsview/padnavigator/padnavigator.cpp 12
We use QKeyEventTransition to capture specific key events. In this case, we
detect that the user presses Qt::Key_Return or Qt::Key_Enter, and use this
@@ -475,7 +475,7 @@
We continue by defining the states for each of the icons in the grid.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 13
+ \snippet graphicsview/padnavigator/padnavigator.cpp 13
We will use state groups to control transitions between icons. Each icon
represents a \e substate of \c frontState. We will then define transitions
@@ -491,7 +491,7 @@
substate. We initialze the selection item's position to be exactly where
the top-left icon is.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 14
+ \snippet graphicsview/padnavigator/padnavigator.cpp 14
We can now create four transitions for each icon. Each transition ensures
that we move to the state corresponding to which arrow key has been
@@ -499,7 +499,7 @@
specific transitions to and from each of the sub states depending on these
and other keys.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 15
+ \snippet graphicsview/padnavigator/padnavigator.cpp 15
Also, for each of the icons, we assign suitable values to the \c xRotation
and \c yRotation objects' "angle"-properties. If you recall, these
@@ -509,7 +509,7 @@
assigned at the right time, we add property-controlling animations to the
\c setVariableSequence animation defined earlier.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 16
+ \snippet graphicsview/padnavigator/padnavigator.cpp 16
We are now finished with all states, transitions, and animations. We now
create the scene that will contain all our items. The scene gets a defined
@@ -521,12 +521,12 @@
Then the scene is assigned to the view, or in our case, \c PadNavigator
itself.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 17
+ \snippet graphicsview/padnavigator/padnavigator.cpp 17
Now that the scene has received its final size, we can position the splash
item at the very top, find its fade-out position, and add it to the scene.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 18
+ \snippet graphicsview/padnavigator/padnavigator.cpp 18
The view toggles a few necessary properties:
@@ -547,7 +547,7 @@
Finally, we start the state engine.
- \snippet examples/graphicsview/padnavigator/padnavigator.cpp 19
+ \snippet graphicsview/padnavigator/padnavigator.cpp 19
The \l{QGraphicsView::resizeEvent()}{resizeEvent()} implementation calls
the base implementation, and then calls QGraphicsView::fitInView() to scale
@@ -559,7 +559,7 @@
\section1 The main() Function
- \snippet examples/graphicsview/padnavigator/main.cpp 0
+ \snippet graphicsview/padnavigator/main.cpp 0
The \c main function creates the QApplication instance, uses
Q_INIT_RESOURCE to ensure our compiled-in resources aren't removed by the
diff --git a/doc/src/examples/painterpaths.qdoc b/examples/widgets/doc/painterpaths.qdoc
index 1bee28f0298..45b0697cee5 100644
--- a/doc/src/examples/painterpaths.qdoc
+++ b/examples/widgets/doc/painterpaths.qdoc
@@ -66,7 +66,7 @@
user to manipulate the painter paths' filling, pen, color and
rotation angle.
- \snippet examples/painting/painterpaths/window.h 0
+ \snippet painting/painterpaths/window.h 0
We declare three private slots to respond to user input regarding
filling and color: \c fillRuleChanged(), \c fillGradientChanged()
@@ -80,14 +80,14 @@
argument; so we need to retrieve the new value, or values, before
we can update the \c RenderArea widgets.
- \snippet examples/painting/painterpaths/window.h 1
+ \snippet painting/painterpaths/window.h 1
We also declare a couple of private convenience functions: \c
populateWithColors() populates a given QComboBox with items
corresponding to the color names Qt knows about, and \c
currentItemData() returns the current item for a given QComboBox.
- \snippet examples/painting/painterpaths/window.h 2
+ \snippet painting/painterpaths/window.h 2
Then we declare the various components of the main window
widget. We also declare a convenience constant specifying the
@@ -98,13 +98,13 @@
In the implementation of the \c Window class we first declare the
constant \c Pi with six significant figures:
- \snippet examples/painting/painterpaths/window.cpp 0
+ \snippet painting/painterpaths/window.cpp 0
In the constructor, we then define the various painter paths and
create corresponding \c RenderArea widgets which will render the
graphical shapes:
- \snippet examples/painting/painterpaths/window.cpp 1
+ \snippet painting/painterpaths/window.cpp 1
We construct a rectangle with sharp corners using the
QPainterPath::moveTo() and QPainterPath::lineTo()
@@ -135,7 +135,7 @@
painter path's current position after the rect has been added is
at the top-left corner of the rectangle.
- \snippet examples/painting/painterpaths/window.cpp 2
+ \snippet painting/painterpaths/window.cpp 2
Then we construct a rectangle with rounded corners. As before, we
use the QPainterPath::moveTo() and QPainterPath::lineTo()
@@ -150,7 +150,7 @@
current point to the starting point of the arc if they are not
already connected.
- \snippet examples/painting/painterpaths/window.cpp 3
+ \snippet painting/painterpaths/window.cpp 3
We also use the QPainterPath::arcTo() function to construct the
ellipse path. First we move the current point starting a new
@@ -164,7 +164,7 @@
is composed of a clockwise curve, starting and finishing at zero
degrees (the 3 o'clock position).
- \snippet examples/painting/painterpaths/window.cpp 4
+ \snippet painting/painterpaths/window.cpp 4
When constructing the pie chart path we continue to use a
combination of the mentioned functions: First we move the current
@@ -173,7 +173,7 @@
the subpath, we implicitly construct the last line back to the
center of the chart.
- \snippet examples/painting/painterpaths/window.cpp 5
+ \snippet painting/painterpaths/window.cpp 5
Constructing a polygon is equivalent to constructing a rectangle.
@@ -182,7 +182,7 @@
new subpath. Current position after the polygon has been added is
the last point in polygon.
- \snippet examples/painting/painterpaths/window.cpp 6
+ \snippet painting/painterpaths/window.cpp 6
Then we create a path consisting of a group of subpaths: First we
move the current point, and create a circle using the
@@ -201,7 +201,7 @@
QPainterPath::addPath() which adds a given path to the path that
calls the function.
- \snippet examples/painting/painterpaths/window.cpp 7
+ \snippet painting/painterpaths/window.cpp 7
When creating the text path, we first create the font. Then we set
the font's style strategy which tells the font matching algorithm
@@ -214,7 +214,7 @@
that the left end of the text's baseline lies at the specified
point.
- \snippet examples/painting/painterpaths/window.cpp 8
+ \snippet painting/painterpaths/window.cpp 8
To create the Bezier path, we use the QPainterPath::cubicTo()
function which adds a Bezier curve between the current point and
@@ -228,21 +228,21 @@
when filling the path as can be seen in the applications main
window.
- \snippet examples/painting/painterpaths/window.cpp 9
+ \snippet painting/painterpaths/window.cpp 9
The final path that we construct shows that you can use
QPainterPath to construct rather complex shapes using only the
previous mentioned QPainterPath::moveTo(), QPainterPath::lineTo()
and QPainterPath::closeSubpath() functions.
- \snippet examples/painting/painterpaths/window.cpp 10
+ \snippet painting/painterpaths/window.cpp 10
Now that we have created all the painter paths that we need, we
create a corresponding \c RenderArea widget for each. In the end,
we make sure that the number of render areas is correct using the
Q_ASSERT() macro.
- \snippet examples/painting/painterpaths/window.cpp 11
+ \snippet painting/painterpaths/window.cpp 11
Then we create the widgets associated with the painter paths' fill
rule.
@@ -264,12 +264,12 @@
The Qt::WindingFill rule can in most cases be considered as the
intersection of closed shapes.
- \snippet examples/painting/painterpaths/window.cpp 12
+ \snippet painting/painterpaths/window.cpp 12
We also create the other widgets associated with the filling, the
pen and the rotation angle.
- \snippet examples/painting/painterpaths/window.cpp 16
+ \snippet painting/painterpaths/window.cpp 16
We connect the comboboxes \l {QComboBox::activated()}{activated()}
signals to the associated slots in the \c Window class, while we
@@ -277,23 +277,23 @@
{QSpinBox::valueChanged()}{valueChanged()} signal directly to the
\c RenderArea widget's respective slots.
- \snippet examples/painting/painterpaths/window.cpp 17
+ \snippet painting/painterpaths/window.cpp 17
We add the \c RenderArea widgets to a separate layout which we
then add to the main layout along with the rest of the widgets.
- \snippet examples/painting/painterpaths/window.cpp 18
+ \snippet painting/painterpaths/window.cpp 18
Finally, we initialize the \c RenderArea widgets by calling the \c
fillRuleChanged(), \c fillGradientChanged() and \c
penColorChanged() slots, and we set the initial pen width and
window title.
- \snippet examples/painting/painterpaths/window.cpp 19
+ \snippet painting/painterpaths/window.cpp 19
\codeline
- \snippet examples/painting/painterpaths/window.cpp 20
+ \snippet painting/painterpaths/window.cpp 20
\codeline
- \snippet examples/painting/painterpaths/window.cpp 21
+ \snippet painting/painterpaths/window.cpp 21
The private slots are implemented to retrieve the new value, or
values, from the associated comboboxes and update the RenderArea
@@ -304,13 +304,13 @@
function. Then we call the associated slot for each of the \c
RenderArea widgets to update the painter paths.
- \snippet examples/painting/painterpaths/window.cpp 22
+ \snippet painting/painterpaths/window.cpp 22
The \c populateWithColors() function populates the given combobox
with items corresponding to the color names Qt knows about
provided by the static QColor::colorNames() function.
- \snippet examples/painting/painterpaths/window.cpp 23
+ \snippet painting/painterpaths/window.cpp 23
The \c currentItemData() function simply return the current item
of the given combobox.
@@ -320,7 +320,7 @@
The \c RenderArea class inherits QWidget, and is a custom widget
displaying a single painter path.
- \snippet examples/painting/painterpaths/renderarea.h 0
+ \snippet painting/painterpaths/renderarea.h 0
We declare several public slots updating the \c RenderArea
widget's associated painter path. In addition we reimplement the
@@ -329,7 +329,7 @@
application, and we reimplement the QWidget::paintEvent() event
handler to draw its painter path.
- \snippet examples/painting/painterpaths/renderarea.h 1
+ \snippet painting/painterpaths/renderarea.h 1
Each instance of the \c RenderArea class has a QPainterPath, a
couple of fill colors, a pen width, a pen color and a rotation
@@ -340,7 +340,7 @@
The constructor takes a QPainterPath as argument (in addition to
the optional QWidget parent):
- \snippet examples/painting/painterpaths/renderarea.cpp 0
+ \snippet painting/painterpaths/renderarea.cpp 0
In the constructor we initialize the \c RenderArea widget with the
QPainterPath parameter as well as initializing the pen width and
@@ -348,23 +348,23 @@
{QWidget::backgroundRole()}{background role}; QPalette::Base is
typically white.
- \snippet examples/painting/painterpaths/renderarea.cpp 1
+ \snippet painting/painterpaths/renderarea.cpp 1
\codeline
- \snippet examples/painting/painterpaths/renderarea.cpp 2
+ \snippet painting/painterpaths/renderarea.cpp 2
Then we reimplement the QWidget::minimumSizeHint() and
QWidget::sizeHint() functions to give the \c RenderArea widget a
reasonable size within our application.
- \snippet examples/painting/painterpaths/renderarea.cpp 3
+ \snippet painting/painterpaths/renderarea.cpp 3
\codeline
- \snippet examples/painting/painterpaths/renderarea.cpp 4
+ \snippet painting/painterpaths/renderarea.cpp 4
\codeline
- \snippet examples/painting/painterpaths/renderarea.cpp 5
+ \snippet painting/painterpaths/renderarea.cpp 5
\codeline
- \snippet examples/painting/painterpaths/renderarea.cpp 6
+ \snippet painting/painterpaths/renderarea.cpp 6
\codeline
- \snippet examples/painting/painterpaths/renderarea.cpp 7
+ \snippet painting/painterpaths/renderarea.cpp 7
The various public slots updates the \c RenderArea widget's
painter path by setting the associated property and make a call to
@@ -375,7 +375,7 @@
instead it schedules a paint event for processing when Qt returns
to the main event loop.
- \snippet examples/painting/painterpaths/renderarea.cpp 8
+ \snippet painting/painterpaths/renderarea.cpp 8
A paint event is a request to repaint all or parts of the
widget. The paintEvent() function is an event handler that can be
@@ -390,7 +390,7 @@
should anti-alias the edges of primitives if possible, i.e. put
additional pixels around the original ones to smooth the edges.
- \snippet examples/painting/painterpaths/renderarea.cpp 9
+ \snippet painting/painterpaths/renderarea.cpp 9
Then we scale the QPainter's coordinate system to ensure that the
painter path is rendered in the right size, i.e that it grows with
@@ -407,7 +407,7 @@
performed the rotation, we must remember to translate the
coordinate system back again.
- \snippet examples/painting/painterpaths/renderarea.cpp 10
+ \snippet painting/painterpaths/renderarea.cpp 10
Then we set the QPainter's pen with the instance's rendering
preferences. We create a QLinearGradient and set its colors
diff --git a/doc/src/examples/pathstroke.qdoc b/examples/widgets/doc/pathstroke.qdoc
index 89a0182934d..89a0182934d 100644
--- a/doc/src/examples/pathstroke.qdoc
+++ b/examples/widgets/doc/pathstroke.qdoc
diff --git a/doc/src/examples/pingpong.qdoc b/examples/widgets/doc/pingpong.qdoc
index 87358684c0f..c56085d8cfd 100644
--- a/doc/src/examples/pingpong.qdoc
+++ b/examples/widgets/doc/pingpong.qdoc
@@ -48,35 +48,35 @@
ponger state will respond by posting a \c pong event; this will cause the
\c pinger state to post a new \c ping event; and so on.
- \snippet examples/statemachine/pingpong/main.cpp 0
+ \snippet statemachine/pingpong/main.cpp 0
Two custom events are defined, \c PingEvent and \c PongEvent.
- \snippet examples/statemachine/pingpong/main.cpp 1
+ \snippet statemachine/pingpong/main.cpp 1
The \c Pinger class defines a state that posts a \c PingEvent to the state
machine when the state is entered.
- \snippet examples/statemachine/pingpong/main.cpp 2
+ \snippet statemachine/pingpong/main.cpp 2
The \c PingTransition class defines a transition that is triggered by
events of type \c PingEvent, and that posts a \c PongEvent (with a delay
of 500 milliseconds) to the state machine when the transition is
triggered.
- \snippet examples/statemachine/pingpong/main.cpp 3
+ \snippet statemachine/pingpong/main.cpp 3
The \c PongTransition class defines a transition that is triggered by
events of type \c PongEvent, and that posts a \c PingEvent (with a delay
of 500 milliseconds) to the state machine when the transition is
triggered.
- \snippet examples/statemachine/pingpong/main.cpp 4
+ \snippet statemachine/pingpong/main.cpp 4
The main() function begins by creating a state machine and a parallel
state group.
- \snippet examples/statemachine/pingpong/main.cpp 5
+ \snippet statemachine/pingpong/main.cpp 5
Next, the \c pinger and \c ponger states are created, with the parallel
state group as their parent state. Note that the transitions are \e
@@ -85,7 +85,7 @@
be called, and the state machine's configuration will remain the same,
which is precisely what we want in this case.
- \snippet examples/statemachine/pingpong/main.cpp 6
+ \snippet statemachine/pingpong/main.cpp 6
Finally, the group is added to the state machine, the machine is started,
and the application event loop is entered.
diff --git a/doc/src/examples/pixelator.qdoc b/examples/widgets/doc/pixelator.qdoc
index 35031a09d86..099c382c820 100644
--- a/doc/src/examples/pixelator.qdoc
+++ b/examples/widgets/doc/pixelator.qdoc
@@ -60,7 +60,7 @@
The \c ImageModel class is defined as follows:
- \snippet examples/itemviews/pixelator/imagemodel.h 0
+ \snippet itemviews/pixelator/imagemodel.h 0
Since we only require a simple, read-only table model, we only need to implement
functions to indicate the dimensions of the image and supply data to other
@@ -70,11 +70,11 @@
The constructor is trivial:
- \snippet examples/itemviews/pixelator/imagemodel.cpp 0
+ \snippet itemviews/pixelator/imagemodel.cpp 0
The \c setImage() function sets the image that will be used by the model:
- \snippet examples/itemviews/pixelator/imagemodel.cpp 1
+ \snippet itemviews/pixelator/imagemodel.cpp 1
The QAbstractItemModel::reset() call tells the view(s) that the model
has changed.
@@ -82,8 +82,8 @@
The \c rowCount() and \c columnCount() functions return the height and width of
the image respectively:
- \snippet examples/itemviews/pixelator/imagemodel.cpp 2
- \snippet examples/itemviews/pixelator/imagemodel.cpp 3
+ \snippet itemviews/pixelator/imagemodel.cpp 2
+ \snippet itemviews/pixelator/imagemodel.cpp 3
Since the image is a simple two-dimensional structure, the \c parent arguments
to these functions are unused. They both simply return the relevant size from
@@ -92,7 +92,7 @@
The \c data() function returns data for the item that corresponds to a given
model index in a format that is suitable for a particular role:
- \snippet examples/itemviews/pixelator/imagemodel.cpp 4
+ \snippet itemviews/pixelator/imagemodel.cpp 4
In this implementation, we only check that the model index is valid, and that
the role requested is the \l{Qt::ItemDataRole}{DisplayRole}. If so, the function
@@ -105,7 +105,7 @@
The \c headerData() function is also reimplemented:
- \snippet examples/itemviews/pixelator/imagemodel.cpp 5
+ \snippet itemviews/pixelator/imagemodel.cpp 5
We return (1, 1) as the size hint for a header item. If we
didn't, the headers would default to a larger size, preventing
@@ -116,7 +116,7 @@
The \c PixelDelegate class is defined as follows:
- \snippet examples/itemviews/pixelator/pixeldelegate.h 0
+ \snippet itemviews/pixelator/pixeldelegate.h 0
This class provides only basic features for a delegate so, unlike the
\l{Spin Box Delegate Example}{Spin Box Delegate} example, we subclass
@@ -134,7 +134,7 @@
also called to ensure that the delegate is set up with a parent object,
if one is supplied:
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 0
+ \snippet itemviews/pixelator/pixeldelegate.cpp 0
Each item is rendered by the delegate's
\l{QAbstractItemDelegate::paint()}{paint()} function. The view calls this
@@ -142,7 +142,7 @@
delegate should use to correctly draw the item, and an index to the item in
the model:
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 1
+ \snippet itemviews/pixelator/pixeldelegate.cpp 1
The first task the delegate has to perform is to draw the item's background
correctly. Usually, selected items appear differently to non-selected items,
@@ -151,8 +151,8 @@
The radius of each circle is calculated in the following lines of code:
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 3
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 4
+ \snippet itemviews/pixelator/pixeldelegate.cpp 3
+ \snippet itemviews/pixelator/pixeldelegate.cpp 4
First, the largest possible radius of the circle is determined by taking the
smallest dimension of the style option's \c rect attribute.
@@ -161,22 +161,22 @@
scaling the brightness to fit within the item and subtracting it from the
largest possible radius.
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 5
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 6
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 7
+ \snippet itemviews/pixelator/pixeldelegate.cpp 5
+ \snippet itemviews/pixelator/pixeldelegate.cpp 6
+ \snippet itemviews/pixelator/pixeldelegate.cpp 7
We save the painter's state, turn on antialiasing (to obtain smoother
curves), and turn off the pen.
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 8
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 9
+ \snippet itemviews/pixelator/pixeldelegate.cpp 8
+ \snippet itemviews/pixelator/pixeldelegate.cpp 9
The foreground of the item (the circle representing a pixel) must be
rendered using an appropriate brush. For unselected items, we will use a
solid black brush; selected items are drawn using a predefined brush from
the style option's palette.
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 10
+ \snippet itemviews/pixelator/pixeldelegate.cpp 10
Finally, we paint the circle within the rectangle specified by the style
option and we call \l{QPainter::}{restore()} on the painter.
@@ -191,12 +191,12 @@
returns a size for the item based on the predefined pixel size, initially set
up in the constructor:
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 11
+ \snippet itemviews/pixelator/pixeldelegate.cpp 11
The delegate's size is updated whenever the pixel size is changed.
We provide a custom slot to do this:
- \snippet examples/itemviews/pixelator/pixeldelegate.cpp 12
+ \snippet itemviews/pixelator/pixeldelegate.cpp 12
\section1 Using The Custom Delegate
@@ -210,9 +210,9 @@
In the constructor, we set up a table view, turn off its grid, and hide its
headers:
- \snippet examples/itemviews/pixelator/mainwindow.cpp 0
+ \snippet itemviews/pixelator/mainwindow.cpp 0
\dots
- \snippet examples/itemviews/pixelator/mainwindow.cpp 1
+ \snippet itemviews/pixelator/mainwindow.cpp 1
This enables the items to be drawn without any gaps between them. Removing
the headers also prevents the user from adjusting the sizes of individual
@@ -226,7 +226,7 @@
The custom delegate is constructed with the main window as its parent, so
that it will be deleted correctly later, and we set it on the table view.
- \snippet examples/itemviews/pixelator/mainwindow.cpp 2
+ \snippet itemviews/pixelator/mainwindow.cpp 2
Each item in the table view will be rendered by the \c PixelDelegate
instance.
@@ -234,21 +234,21 @@
We construct a spin box to allow the user to change the size of each "pixel"
drawn by the delegate:
- \snippet examples/itemviews/pixelator/mainwindow.cpp 3
+ \snippet itemviews/pixelator/mainwindow.cpp 3
This spin box is connected to the custom slot we implemented in the
\c PixelDelegate class. This ensures that the delegate always draws each
pixel at the currently specified size:
- \snippet examples/itemviews/pixelator/mainwindow.cpp 4
+ \snippet itemviews/pixelator/mainwindow.cpp 4
\dots
- \snippet examples/itemviews/pixelator/mainwindow.cpp 5
+ \snippet itemviews/pixelator/mainwindow.cpp 5
We also connect the spin box to a slot in the \c MainWindow class. This
forces the view to take into account the new size hints for each item;
these are provided by the delegate in its \c sizeHint() function.
- \snippet examples/itemviews/pixelator/mainwindow.cpp 6
+ \snippet itemviews/pixelator/mainwindow.cpp 6
We explicitly resize the columns and rows to match the
\uicontrol{Pixel size} combobox.
diff --git a/doc/src/examples/recentfiles.qdoc b/examples/widgets/doc/recentfiles.qdoc
index e2e876b088c..e2e876b088c 100644
--- a/doc/src/examples/recentfiles.qdoc
+++ b/examples/widgets/doc/recentfiles.qdoc
diff --git a/doc/src/examples/rogue.qdoc b/examples/widgets/doc/rogue.qdoc
index 44e371c6679..4c65dd2d6eb 100644
--- a/doc/src/examples/rogue.qdoc
+++ b/examples/widgets/doc/rogue.qdoc
@@ -95,7 +95,7 @@
connects the states in the machine. It is the key events from this
widget that are used by the machine.
- \snippet examples/statemachine/rogue/window.h 0
+ \snippet statemachine/rogue/window.h 0
\c Direction specifies the direction in which the rogue is to
move. We use this in \c movePlayer(), which moves the rogue and
@@ -105,7 +105,7 @@
setting any Qt \l{Qt's Property System}{property} when entered.
More on this later.
- \snippet examples/statemachine/rogue/window.h 1
+ \snippet statemachine/rogue/window.h 1
The \c map is an array with the characters that are currently
displayed. We set up the array in \c setupMap(), and update it
@@ -124,15 +124,15 @@
Here is the constructor of \c Window:
- \snippet examples/statemachine/rogue/window.cpp 0
+ \snippet statemachine/rogue/window.cpp 0
\dots
- \snippet examples/statemachine/rogue/window.cpp 1
+ \snippet statemachine/rogue/window.cpp 1
The player starts off at position (5, 5). We then set up the map
and statemachine. Let's proceed with the \c buildMachine()
function:
- \snippet examples/statemachine/rogue/window.cpp 2
+ \snippet statemachine/rogue/window.cpp 2
We enter \c inputState when the machine is started and from the \c
quitState if the user wants to continue playing. We then set the
@@ -147,7 +147,7 @@
inputState as the target state, we would first have left and then
entered the \c inputState again.
- \snippet examples/statemachine/rogue/window.cpp 3
+ \snippet statemachine/rogue/window.cpp 3
When we enter \c quitState, we update the status bar of the
window.
@@ -157,12 +157,12 @@
specify the key on which the transition should trigger and the
target state of the transition.
- \snippet examples/statemachine/rogue/window.cpp 4
+ \snippet statemachine/rogue/window.cpp 4
The transition from \c inputState allows triggering the quit state
when the player types \c {q}.
- \snippet examples/statemachine/rogue/window.cpp 5
+ \snippet statemachine/rogue/window.cpp 5
The machine is set up, so it's time to start it.
@@ -172,13 +172,13 @@
rogue to be moved (by typing 2, 4, 6, or 8) when the machine is in
the \c inputState.
- \snippet examples/statemachine/rogue/movementtransition.h 0
+ \snippet statemachine/rogue/movementtransition.h 0
In the constructor, we tell QEventTransition to only send
\l{QEvent::}{KeyPress} events to the
\l{QAbstractTransition::}{eventTest()} function:
- \snippet examples/statemachine/rogue/movementtransition.h 1
+ \snippet statemachine/rogue/movementtransition.h 1
The KeyPress events come wrapped in \l{QStateMachine::WrappedEvent}s. \c event
must be confirmed to be a wrapped event because Qt uses other
@@ -187,7 +187,7 @@
Let's move on to the \c onTransition() function:
- \snippet examples/statemachine/rogue/movementtransition.h 2
+ \snippet statemachine/rogue/movementtransition.h 2
When \c onTransition() is invoked, we know that we have a
\l{QEvent::}{KeyPress} event with 2, 4, 6, or 8, and can ask \c
diff --git a/doc/src/examples/screenshot.qdoc b/examples/widgets/doc/screenshot.qdoc
index 4723d3d43ce..2d41cf0d85a 100644
--- a/doc/src/examples/screenshot.qdoc
+++ b/examples/widgets/doc/screenshot.qdoc
@@ -51,7 +51,7 @@
\section1 Screenshot Class Definition
- \snippet examples/desktop/screenshot/screenshot.h 0
+ \snippet desktop/screenshot/screenshot.h 0
The \c Screenshot class inherits QWidget and is the application's
main widget. It displays the application options and a preview of
@@ -84,7 +84,7 @@
\section1 Screenshot Class Implementation
- \snippet examples/desktop/screenshot/screenshot.cpp 0
+ \snippet desktop/screenshot/screenshot.cpp 0
In the constructor we first create the QLabel displaying the
screenshot preview.
@@ -103,7 +103,7 @@
delay and the window title, before we resize the widget to a
suitable size.
- \snippet examples/desktop/screenshot/screenshot.cpp 1
+ \snippet desktop/screenshot/screenshot.cpp 1
The \c resizeEvent() function is reimplemented to receive the
resize events dispatched to the widget. The purpose is to scale
@@ -121,7 +121,7 @@
only is repainted (using the private \c updateScreenshotLabel()
function) when it actually changes its size.
- \snippet examples/desktop/screenshot/screenshot.cpp 2
+ \snippet desktop/screenshot/screenshot.cpp 2
The private \c newScreenshot() slot is called when the user
requests a new screenshot; but the slot only prepares a new
@@ -139,7 +139,7 @@
specified by the \uicontrol {Screenshot Delay} option. It is \c
shootScreen() that actually performs the screenshot.
- \snippet examples/desktop/screenshot/screenshot.cpp 3
+ \snippet desktop/screenshot/screenshot.cpp 3
The \c saveScreenshot() slot is called when the user push the \uicontrol
Save button, and it presents a file dialog using the QFileDialog
@@ -158,7 +158,7 @@
name is valid, we use the QPixmap::save() function to save the
screenshot's original pixmap in that file.
- \snippet examples/desktop/screenshot/screenshot.cpp 4
+ \snippet desktop/screenshot/screenshot.cpp 4
The \c shootScreen() slot is called to take the screenshot. If the
user has chosen to delay the screenshot, we make the application
@@ -170,7 +170,7 @@
events from the window system and other sources are processed and
dispatched.
- \snippet examples/desktop/screenshot/screenshot.cpp 5
+ \snippet desktop/screenshot/screenshot.cpp 5
Using the static function QApplication::primaryScreen(), we
obtain the QScreen object for the application's main screen.
@@ -187,7 +187,7 @@
Screenshot} button, and finally we make the \c Screenshot widget
visible if it was hidden during the screenshot.
- \snippet examples/desktop/screenshot/screenshot.cpp 6
+ \snippet desktop/screenshot/screenshot.cpp 6
The \uicontrol {Hide This Window} option is enabled or disabled
depending on the delay of the screenshot. If there is no delay,
@@ -197,7 +197,7 @@
The \c updateCheckBox() slot is called whenever the user changes
the delay using the \uicontrol {Screenshot Delay} option.
- \snippet examples/desktop/screenshot/screenshot.cpp 7
+ \snippet desktop/screenshot/screenshot.cpp 7
The private \c createOptionsGroupBox() function is called from the
constructor.
@@ -215,20 +215,20 @@
widgets are automatically reparented to the widget the layout is
installed on.
- \snippet examples/desktop/screenshot/screenshot.cpp 8
+ \snippet desktop/screenshot/screenshot.cpp 8
The private \c createButtonsLayout() function is called from the
constructor. We create the application's buttons using the private
\c createButton() function, and add them to a QHBoxLayout.
- \snippet examples/desktop/screenshot/screenshot.cpp 9
+ \snippet desktop/screenshot/screenshot.cpp 9
The private \c createButton() function is called from the \c
createButtonsLayout() function. It simply creates a QPushButton
with the provided text, connects it to the provided receiver and
slot, and returns a pointer to the button.
- \snippet examples/desktop/screenshot/screenshot.cpp 10
+ \snippet desktop/screenshot/screenshot.cpp 10
The private \c updateScreenshotLabel() function is called whenever
the screenshot changes, or when a resize event changes the size of
diff --git a/doc/src/examples/scribble.qdoc b/examples/widgets/doc/scribble.qdoc
index 4c4df891b2b..5749b9ed077 100644
--- a/doc/src/examples/scribble.qdoc
+++ b/examples/widgets/doc/scribble.qdoc
@@ -65,7 +65,7 @@
\section1 ScribbleArea Class Definition
- \snippet examples/widgets/scribble/scribblearea.h 0
+ \snippet widgets/scribble/scribblearea.h 0
The \c ScribbleArea class inherits from QWidget. We reimplement
the \c mousePressEvent(), \c mouseMoveEvent() and \c
@@ -98,7 +98,7 @@
\section1 ScribbleArea Class Implementation
- \snippet examples/widgets/scribble/scribblearea.cpp 0
+ \snippet widgets/scribble/scribblearea.cpp 0
In the constructor, we set the Qt::WA_StaticContents
attribute for the widget, indicating that the widget contents are
@@ -108,8 +108,8 @@
for widgets whose contents are static and rooted to the top-left
corner.
- \snippet examples/widgets/scribble/scribblearea.cpp 1
- \snippet examples/widgets/scribble/scribblearea.cpp 2
+ \snippet widgets/scribble/scribblearea.cpp 1
+ \snippet widgets/scribble/scribblearea.cpp 2
In the \c openImage() function, we load the given image. Then we
resize the loaded QImage to be at least as large as the widget in
@@ -117,8 +117,8 @@
we set the \c image member variable to be the loaded image. At
the end, we call QWidget::update() to schedule a repaint.
- \snippet examples/widgets/scribble/scribblearea.cpp 3
- \snippet examples/widgets/scribble/scribblearea.cpp 4
+ \snippet widgets/scribble/scribblearea.cpp 3
+ \snippet widgets/scribble/scribblearea.cpp 4
The \c saveImage() function creates a QImage object that covers
only the visible section of the actual \c image and saves it using
@@ -126,26 +126,26 @@
scribble area's \c modified variable to \c false, because there is
no unsaved data.
- \snippet examples/widgets/scribble/scribblearea.cpp 5
- \snippet examples/widgets/scribble/scribblearea.cpp 6
+ \snippet widgets/scribble/scribblearea.cpp 5
+ \snippet widgets/scribble/scribblearea.cpp 6
\codeline
- \snippet examples/widgets/scribble/scribblearea.cpp 7
- \snippet examples/widgets/scribble/scribblearea.cpp 8
+ \snippet widgets/scribble/scribblearea.cpp 7
+ \snippet widgets/scribble/scribblearea.cpp 8
The \c setPenColor() and \c setPenWidth() functions set the
current pen color and width. These values will be used for future
drawing operations.
- \snippet examples/widgets/scribble/scribblearea.cpp 9
- \snippet examples/widgets/scribble/scribblearea.cpp 10
+ \snippet widgets/scribble/scribblearea.cpp 9
+ \snippet widgets/scribble/scribblearea.cpp 10
The public \c clearImage() slot clears the image displayed in the
scribble area. We simply fill the entire image with white, which
corresponds to RGB value (255, 255, 255). As usual when we modify
the image, we set \c modified to \c true and schedule a repaint.
- \snippet examples/widgets/scribble/scribblearea.cpp 11
- \snippet examples/widgets/scribble/scribblearea.cpp 12
+ \snippet widgets/scribble/scribblearea.cpp 11
+ \snippet widgets/scribble/scribblearea.cpp 12
For mouse press and mouse release events, we use the
QMouseEvent::button() function to find out which button caused
@@ -163,8 +163,8 @@
releases the button, we call the private \c drawLineTo() function
to draw.
- \snippet examples/widgets/scribble/scribblearea.cpp 13
- \snippet examples/widgets/scribble/scribblearea.cpp 14
+ \snippet widgets/scribble/scribblearea.cpp 13
+ \snippet widgets/scribble/scribblearea.cpp 14
In the reimplementation of the \l
{QWidget::paintEvent()}{paintEvent()} function, we simply create
@@ -195,8 +195,8 @@
QWidget into a QImage again, we might lose some information.
\endlist
- \snippet examples/widgets/scribble/scribblearea.cpp 15
- \snippet examples/widgets/scribble/scribblearea.cpp 16
+ \snippet widgets/scribble/scribblearea.cpp 15
+ \snippet widgets/scribble/scribblearea.cpp 16
When the user starts the Scribble application, a resize event is
generated and an image is created and displayed in the scribble
@@ -206,8 +206,8 @@
would be very inefficient). But when the main window becomes
larger than this initial size, the image needs to be resized.
- \snippet examples/widgets/scribble/scribblearea.cpp 17
- \snippet examples/widgets/scribble/scribblearea.cpp 18
+ \snippet widgets/scribble/scribblearea.cpp 17
+ \snippet widgets/scribble/scribblearea.cpp 18
In \c drawLineTo(), we draw a line from the point where the mouse
was located when the last mouse press or mouse move occurred, we
@@ -220,8 +220,8 @@
inside the scribble are needs updating, to avoid a complete
repaint of the widget.
- \snippet examples/widgets/scribble/scribblearea.cpp 19
- \snippet examples/widgets/scribble/scribblearea.cpp 20
+ \snippet widgets/scribble/scribblearea.cpp 19
+ \snippet widgets/scribble/scribblearea.cpp 20
QImage has no nice API for resizing an image. There's a
QImage::copy() function that could do the trick, but when used to
@@ -237,7 +237,7 @@
Printing is handled by the \c print() slot:
- \snippet examples/widgets/scribble/scribblearea.cpp 21
+ \snippet widgets/scribble/scribblearea.cpp 21
We construct a high resolution QPrinter object for the required
output format, using a QPrintDialog to ask the user to specify a
@@ -246,7 +246,7 @@
If the dialog is accepted, we perform the task of printing to the paint
device:
- \snippet examples/widgets/scribble/scribblearea.cpp 22
+ \snippet widgets/scribble/scribblearea.cpp 22
Printing an image to a file in this way is simply a matter of
painting onto the QPrinter. We scale the image to fit within the
@@ -255,7 +255,7 @@
\section1 MainWindow Class Definition
- \snippet examples/widgets/scribble/mainwindow.h 0
+ \snippet widgets/scribble/mainwindow.h 0
The \c MainWindow class inherits from QMainWindow. We reimplement
the \l{QWidget::closeEvent()}{closeEvent()} handler from QWidget.
@@ -272,14 +272,14 @@
\section1 MainWindow Class Implementation
- \snippet examples/widgets/scribble/mainwindow.cpp 0
+ \snippet widgets/scribble/mainwindow.cpp 0
In the constructor, we create a scribble area which we make the
central widget of the \c MainWindow widget. Then we create the
associated actions and menus.
- \snippet examples/widgets/scribble/mainwindow.cpp 1
- \snippet examples/widgets/scribble/mainwindow.cpp 2
+ \snippet widgets/scribble/mainwindow.cpp 1
+ \snippet widgets/scribble/mainwindow.cpp 2
Close events are sent to widgets that the users want to close,
usually by clicking \uicontrol{File|Exit} or by clicking the \uicontrol X
@@ -294,16 +294,16 @@
\c maybeSave() returns false, the user clicked \uicontrol Cancel, so we
"ignore" the event, leaving the application unaffected by it.
- \snippet examples/widgets/scribble/mainwindow.cpp 3
- \snippet examples/widgets/scribble/mainwindow.cpp 4
+ \snippet widgets/scribble/mainwindow.cpp 3
+ \snippet widgets/scribble/mainwindow.cpp 4
In the \c open() slot we first give the user the opportunity to
save any modifications to the currently displayed image, before a
new image is loaded into the scribble area. Then we ask the user
to choose a file and we load the file in the \c ScribbleArea.
- \snippet examples/widgets/scribble/mainwindow.cpp 5
- \snippet examples/widgets/scribble/mainwindow.cpp 6
+ \snippet widgets/scribble/mainwindow.cpp 5
+ \snippet widgets/scribble/mainwindow.cpp 6
The \c save() slot is called when the users choose the \uicontrol {Save
As} menu entry, and then choose an entry from the format menu. The
@@ -326,15 +326,15 @@
Now that we know the format, we call the private \c saveFile()
function to save the currently displayed image.
- \snippet examples/widgets/scribble/mainwindow.cpp 7
- \snippet examples/widgets/scribble/mainwindow.cpp 8
+ \snippet widgets/scribble/mainwindow.cpp 7
+ \snippet widgets/scribble/mainwindow.cpp 8
We use the \c penColor() slot to retrieve a new color from the
user with a QColorDialog. If the user chooses a new color, we
make it the scribble area's color.
- \snippet examples/widgets/scribble/mainwindow.cpp 9
- \snippet examples/widgets/scribble/mainwindow.cpp 10
+ \snippet widgets/scribble/mainwindow.cpp 9
+ \snippet widgets/scribble/mainwindow.cpp 10
To retrieve a new pen width in the \c penWidth() slot, we use
QInputDialog. The QInputDialog class provides a simple
@@ -348,14 +348,14 @@
The boolean \c ok variable will be set to \c true if the user
clicked \uicontrol OK and to \c false if the user pressed \uicontrol Cancel.
- \snippet examples/widgets/scribble/mainwindow.cpp 11
- \snippet examples/widgets/scribble/mainwindow.cpp 12
+ \snippet widgets/scribble/mainwindow.cpp 11
+ \snippet widgets/scribble/mainwindow.cpp 12
We implement the \c about() slot to create a message box
describing what the example is designed to show.
- \snippet examples/widgets/scribble/mainwindow.cpp 13
- \snippet examples/widgets/scribble/mainwindow.cpp 14
+ \snippet widgets/scribble/mainwindow.cpp 13
+ \snippet widgets/scribble/mainwindow.cpp 14
In the \c createAction() function we create the actions
representing the menu entries and connect them to the appropriate
@@ -369,8 +369,8 @@
deduced the file format from the action's text, by truncating the
"...", but that would have been inelegant.
- \snippet examples/widgets/scribble/mainwindow.cpp 15
- \snippet examples/widgets/scribble/mainwindow.cpp 16
+ \snippet widgets/scribble/mainwindow.cpp 15
+ \snippet widgets/scribble/mainwindow.cpp 16
In the \c createMenu() function, we add the previously created
format actions to the \c saveAsMenu. Then we add the rest of the
@@ -384,8 +384,8 @@
{MainWindow}'s menu bar, which we retrieve using the
QMainWindow::menuBar() function.
- \snippet examples/widgets/scribble/mainwindow.cpp 17
- \snippet examples/widgets/scribble/mainwindow.cpp 18
+ \snippet widgets/scribble/mainwindow.cpp 17
+ \snippet widgets/scribble/mainwindow.cpp 18
In \c mayBeSave(), we check if there are any unsaved changes. If
there are any, we use QMessageBox to give the user a warning that
@@ -407,8 +407,8 @@
The \c maybeSave() function returns \c false if the user clicks
\uicontrol Cancel; otherwise it returns \c true.
- \snippet examples/widgets/scribble/mainwindow.cpp 19
- \snippet examples/widgets/scribble/mainwindow.cpp 20
+ \snippet widgets/scribble/mainwindow.cpp 19
+ \snippet widgets/scribble/mainwindow.cpp 20
In \c saveFile(), we pop up a file dialog with a file name
suggestion. The static QFileDialog::getSaveFileName() function
diff --git a/doc/src/examples/sdi.qdoc b/examples/widgets/doc/sdi.qdoc
index b6868887970..b6868887970 100644
--- a/doc/src/examples/sdi.qdoc
+++ b/examples/widgets/doc/sdi.qdoc
diff --git a/doc/src/examples/shapedclock.qdoc b/examples/widgets/doc/shapedclock.qdoc
index b83178b44d0..8d7b856fd68 100644
--- a/doc/src/examples/shapedclock.qdoc
+++ b/examples/widgets/doc/shapedclock.qdoc
@@ -50,7 +50,7 @@
\l{Analog Clock Example}{Analog Clock} example. The whole class definition is
presented below:
- \snippet examples/widgets/shapedclock/shapedclock.h 0
+ \snippet widgets/shapedclock/shapedclock.h 0
The \l{QWidget::paintEvent()}{paintEvent()} implementation is the same as that found
in the \c AnalogClock class. We implement \l{QWidget::sizeHint()}{sizeHint()}
@@ -68,7 +68,7 @@
The \c ShapedClock constructor performs many of the same tasks as the \c AnalogClock
constructor. We set up a timer and connect it to the widget's update() slot:
- \snippet examples/widgets/shapedclock/shapedclock.cpp 0
+ \snippet widgets/shapedclock/shapedclock.cpp 0
We inform the window manager that the widget is not to be decorated with a window
frame by setting the Qt::FramelessWindowHint flag on the widget. As a result, we need
@@ -76,7 +76,7 @@
Mouse button events are delivered to the \c mousePressEvent() handler:
- \snippet examples/widgets/shapedclock/shapedclock.cpp 1
+ \snippet widgets/shapedclock/shapedclock.cpp 1
If the left mouse button is pressed over the widget, we record the displacement in
global (screen) coordinates between the top-left position of the widget's frame (even
@@ -88,7 +88,7 @@
The \c mouseMoveEvent() handler is called if the mouse is moved over the widget.
- \snippet examples/widgets/shapedclock/shapedclock.cpp 2
+ \snippet widgets/shapedclock/shapedclock.cpp 2
If the left button is held down while the mouse is moved, the top-left corner of the
widget is moved to the point given by subtracting the \c dragPosition from the current
@@ -98,12 +98,12 @@
\l{Analog Clock Example}{Analog Clock} example for a description of the process used
to render the clock.
- \snippet examples/widgets/shapedclock/shapedclock.cpp 3
+ \snippet widgets/shapedclock/shapedclock.cpp 3
In the \c resizeEvent() handler, we re-use some of the code from the \c paintEvent()
to determine the region of the widget that is visible to the user:
- \snippet examples/widgets/shapedclock/shapedclock.cpp 4
+ \snippet widgets/shapedclock/shapedclock.cpp 4
Since the clock face is a circle drawn in the center of the widget, this is the region
we use as the mask.
@@ -117,7 +117,7 @@
Finally, we implement the \c sizeHint() for the widget so that it is given a reasonable
default size when it is first shown:
- \snippet examples/widgets/shapedclock/shapedclock.cpp 5
+ \snippet widgets/shapedclock/shapedclock.cpp 5
\section1 Notes on Widget Masks
diff --git a/doc/src/examples/simpledommodel.qdoc b/examples/widgets/doc/simpledommodel.qdoc
index b49750d5a54..2564c654fa4 100644
--- a/doc/src/examples/simpledommodel.qdoc
+++ b/examples/widgets/doc/simpledommodel.qdoc
@@ -69,7 +69,7 @@
Let us begin by examining the \c DomModel class:
- \snippet examples/itemviews/simpledommodel/dommodel.h 0
+ \snippet itemviews/simpledommodel/dommodel.h 0
The class definition contains all the basic functions that are needed for a
read-only model. Only the constructor and \c document() function are specific to
@@ -82,7 +82,7 @@
The \c DomItem class is used to hold information about a specific QDomNode in
the document:
- \snippet examples/itemviews/simpledommodel/domitem.h 0
+ \snippet itemviews/simpledommodel/domitem.h 0
Each \c DomItem provides a wrapper for a QDomNode obtained from the underlying
document which contains a reference to the node, it's location in the parent node's
@@ -105,18 +105,18 @@
The constructor simply records details of the QDomNode that needs to be wrapped:
- \snippet examples/itemviews/simpledommodel/domitem.cpp 0
- \snippet examples/itemviews/simpledommodel/domitem.cpp 1
+ \snippet itemviews/simpledommodel/domitem.cpp 0
+ \snippet itemviews/simpledommodel/domitem.cpp 1
As a result, functions to provide the parent wrapper, the row number occupied by
the item in its parent's list of children, and the underlying QDomNode for each item
are straightforward to write:
- \snippet examples/itemviews/simpledommodel/domitem.cpp 4
+ \snippet itemviews/simpledommodel/domitem.cpp 4
\codeline
- \snippet examples/itemviews/simpledommodel/domitem.cpp 6
+ \snippet itemviews/simpledommodel/domitem.cpp 6
\codeline
- \snippet examples/itemviews/simpledommodel/domitem.cpp 3
+ \snippet itemviews/simpledommodel/domitem.cpp 3
It is necessary to maintain a collection of items which can be consistently identified
by the model. For that reason, we maintain a hash of child wrapper items that, to
@@ -125,7 +125,7 @@
of the item's QDomNode, relating the row number of each child to the newly-constructed
wrapper:
- \snippet examples/itemviews/simpledommodel/domitem.cpp 5
+ \snippet itemviews/simpledommodel/domitem.cpp 5
If a QDomNode was previously wrapped, the cached wrapper is returned; otherwise, a
new wrapper is constructed and stored for valid children, and zero is returned for
@@ -133,7 +133,7 @@
The class's destructor deletes all the child items of the wrapper:
- \snippet examples/itemviews/simpledommodel/domitem.cpp 2
+ \snippet itemviews/simpledommodel/domitem.cpp 2
These, in turn, will delete their children and free any QDomNode objects in use.
@@ -145,7 +145,7 @@
The constructor accepts an existing document and a parent object for the model:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 0
+ \snippet itemviews/simpledommodel/dommodel.cpp 0
A shallow copy of the document is stored for future reference, and a root item is
created to provide a wrapper around the document. We assign the root item a row
@@ -154,7 +154,7 @@
Since the model only contains information about the root item, the destructor only
needs to delete this one item:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 1
+ \snippet itemviews/simpledommodel/dommodel.cpp 1
All of the child items in the tree will be deleted by the \c DomItem destructor as
their parent items are deleted.
@@ -167,7 +167,7 @@
The number of columns exposed by the model is returned by the \c columnCount()
function:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 2
+ \snippet itemviews/simpledommodel/dommodel.cpp 2
This value is fixed, and does not depend on the location or type of the underlying
node in the document. We will use these three columns to display different kinds of
@@ -176,12 +176,12 @@
Since we only implement a read-only model, the \c flags() function is straightforward
to write:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 5
+ \snippet itemviews/simpledommodel/dommodel.cpp 5
Since the model is intended for use in a tree view, the \c headerData() function only
provides a horizontal header:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 6
+ \snippet itemviews/simpledommodel/dommodel.cpp 6
The model presents the names of nodes in the first column, element attributes in the
second, and any node values in the third.
@@ -191,7 +191,7 @@
The index() function creates a model index for the item with the given row, column,
and parent in the model:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 7
+ \snippet itemviews/simpledommodel/dommodel.cpp 7
The function first has to relate the parent index to an item that contains a node
from the underlying document. If the parent index is invalid, it refers to the root
@@ -201,7 +201,7 @@
will have been created by this function, and we store pointers to item objects in
any new indexes that we create with QAbstractItemModel::createIndex():
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 8
+ \snippet itemviews/simpledommodel/dommodel.cpp 8
A child item for the given row is provided by the parent item's \c child() function.
If a suitable child item was found then we call
@@ -217,7 +217,7 @@
function, and is the number of child nodes contained by the node that corresponds to
the specified model index:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 10
+ \snippet itemviews/simpledommodel/dommodel.cpp 10
To obtain the relevant node in the underlying document, we access the item via the
internal pointer stored in the model index. If an invalid index is supplied, the
@@ -228,7 +228,7 @@
provide an implementation for the \c parent() function. This returns a model index
that corresponds to the parent of a child model index supplied as its argument:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 9
+ \snippet itemviews/simpledommodel/dommodel.cpp 9
For valid indexes other than the index corresponding to the root item, we obtain
a pointer to the relevant item using the method described in the \c index() function,
@@ -243,13 +243,13 @@
the \l{Qt::DisplayRole}{display role}, returning an invalid variant for all other
requests:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 3
+ \snippet itemviews/simpledommodel/dommodel.cpp 3
As before, we obtain an item pointer for the index supplied, and use it to obtain
the underlying document node. Depending on the column specified, the data we return
is obtained in different ways:
- \snippet examples/itemviews/simpledommodel/dommodel.cpp 4
+ \snippet itemviews/simpledommodel/dommodel.cpp 4
For the first column, we return the node's name. For the second column, we read any
attributes that the node may have, and return a string that contains a space-separated
diff --git a/doc/src/examples/simpletreemodel.qdoc b/examples/widgets/doc/simpletreemodel.qdoc
index ed584a3307a..a2b60104411 100644
--- a/doc/src/examples/simpletreemodel.qdoc
+++ b/examples/widgets/doc/simpletreemodel.qdoc
@@ -93,7 +93,7 @@
The \c TreeItem class is defined as follows:
- \snippet examples/itemviews/simpletreemodel/treeitem.h 0
+ \snippet itemviews/simpletreemodel/treeitem.h 0
The class is a basic C++ class. It does not inherit from QObject or
provide signals and slots. It is used to hold a list of QVariants,
@@ -121,19 +121,19 @@
The constructor is only used to record the item's parent and the data
associated with each column.
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 0
+ \snippet itemviews/simpletreemodel/treeitem.cpp 0
A pointer to each of the child items belonging to this item will be
stored in the \c childItems private member variable. When the class's
destructor is called, it must delete each of these to ensure that
their memory is reused:
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 1
+ \snippet itemviews/simpletreemodel/treeitem.cpp 1
Since each of the child items are constructed when the model is initially
populated with data, the function to add child items is straightforward:
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 2
+ \snippet itemviews/simpletreemodel/treeitem.cpp 2
Each item is able to return any of its child items when given a suitable
row number. For example, in the \l{#SimpleTreeModelStructure}{above diagram},
@@ -144,11 +144,11 @@
The \c child() function returns the child that corresponds to
the specified row number in the item's list of child items:
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 3
+ \snippet itemviews/simpletreemodel/treeitem.cpp 3
The number of child items held can be found with \c childCount():
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 4
+ \snippet itemviews/simpletreemodel/treeitem.cpp 4
The \c TreeModel uses this function to determine the number of rows that
exist for a given parent item.
@@ -156,7 +156,7 @@
The \c row() function reports the item's location within its parent's
list of items:
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 8
+ \snippet itemviews/simpletreemodel/treeitem.cpp 8
Note that, although the root item (with no parent item) is automatically
assigned a row number of 0, this information is never used by the model.
@@ -164,17 +164,17 @@
The number of columns of data in the item is trivially returned by the
\c columnCount() function.
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 5
+ \snippet itemviews/simpletreemodel/treeitem.cpp 5
Column data is returned by the \c data() function, taking advantage of
QList's ability to provide sensible default values if the column number
is out of range:
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 6
+ \snippet itemviews/simpletreemodel/treeitem.cpp 6
The item's parent is found with \c parent():
- \snippet examples/itemviews/simpletreemodel/treeitem.cpp 7
+ \snippet itemviews/simpletreemodel/treeitem.cpp 7
Note that, since the root item in the model will not have a parent, this
function will return zero in that case. We need to ensure that the model
@@ -185,7 +185,7 @@
The \c TreeModel class is defined as follows:
- \snippet examples/itemviews/simpletreemodel/treemodel.h 0
+ \snippet itemviews/simpletreemodel/treemodel.h 0
This class is similar to most other subclasses of QAbstractItemModel that
provide read-only models. Only the form of the constructor and the
@@ -198,7 +198,7 @@
result, the constructor takes an argument containing the data that the
model will share with views and delegates:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 0
+ \snippet itemviews/simpletreemodel/treemodel.cpp 0
It is up to the constructor to create a root item for the model. This
item only contains vertical header data for convenience. We also use it
@@ -213,7 +213,7 @@
The destructor ensures that the root item and all of its descendants
are deleted when the model is destroyed:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 1
+ \snippet itemviews/simpletreemodel/treemodel.cpp 1
Since we cannot add data to the model after it is constructed and set
up, this simplifies the way that the internal tree of items is managed.
@@ -234,7 +234,7 @@
so we can guarantee that any valid model indexes that we receive will
contain a valid data pointer.
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 6
+ \snippet itemviews/simpletreemodel/treemodel.cpp 6
Since the row and column arguments to this function refer to a
child item of the corresponding parent item, we obtain the item using
@@ -247,7 +247,7 @@
The way that the \c TreeItem objects are defined makes writing the
\c parent() function easy:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 7
+ \snippet itemviews/simpletreemodel/treemodel.cpp 7
We only need to ensure that we never return a model index corresponding
to the root item. To be consistent with the way that the \c index()
@@ -266,7 +266,7 @@
for the \c TreeItem that corresponds to a given model index, or the
number of top-level items if an invalid index is specified:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 8
+ \snippet itemviews/simpletreemodel/treemodel.cpp 8
Since each item manages its own column data, the \c columnCount()
function has to call the item's own \c columnCount() function to
@@ -275,13 +275,13 @@
specified, the number of columns returned is determined from the
root item:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 2
+ \snippet itemviews/simpletreemodel/treemodel.cpp 2
Data is obtained from the model via \c data(). Since the item manages
its own columns, we need to use the column number to retrieve the data
with the \c TreeItem::data() function:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 3
+ \snippet itemviews/simpletreemodel/treemodel.cpp 3
Note that we only support the \l{Qt::ItemDataRole}{DisplayRole}
in this implementation, and we also return invalid QVariant objects for
@@ -290,12 +290,12 @@
We use the \c flags() function to ensure that views know that the
model is read-only:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 4
+ \snippet itemviews/simpletreemodel/treemodel.cpp 4
The \c headerData() function returns data that we conveniently stored
in the root item:
- \snippet examples/itemviews/simpletreemodel/treemodel.cpp 5
+ \snippet itemviews/simpletreemodel/treemodel.cpp 5
This information could have been supplied in a different way: either
specified in the constructor, or hard coded into the \c headerData()
diff --git a/doc/src/examples/simplewidgetmapper.qdoc b/examples/widgets/doc/simplewidgetmapper.qdoc
index 2b24dbcecd3..2b7cd2d79a9 100644
--- a/doc/src/examples/simplewidgetmapper.qdoc
+++ b/examples/widgets/doc/simplewidgetmapper.qdoc
@@ -50,7 +50,7 @@
The class provides a constructor, a slot to keep the buttons up to date,
and a private function to set up the model:
- \snippet examples/itemviews/simplewidgetmapper/window.h Window definition
+ \snippet itemviews/simplewidgetmapper/window.h Window definition
In addition to the QDataWidgetMapper object and the controls used to make
up the user interface, we use a QStandardItemModel to hold our data.
@@ -62,7 +62,7 @@
The constructor of the \c Window class can be explained in three parts.
In the first part, we set up the widgets used for the user interface:
- \snippet examples/itemviews/simplewidgetmapper/window.cpp Set up widgets
+ \snippet itemviews/simplewidgetmapper/window.cpp Set up widgets
We also set up the buddy relationships between various labels and the
corresponding input widgets.
@@ -70,7 +70,7 @@
Next, we set up the widget mapper, relating each input widget to a column
in the model specified by the call to \l{QDataWidgetMapper::}{setModel()}:
- \snippet examples/itemviews/simplewidgetmapper/window.cpp Set up the mapper
+ \snippet itemviews/simplewidgetmapper/window.cpp Set up the mapper
We also connect the mapper to the \uicontrol{Next} and \uicontrol{Previous} buttons
via its \l{QDataWidgetMapper::}{toNext()} and
@@ -81,7 +81,7 @@
In the final part of the constructor, we set up the layout, placing each
of the widgets in a grid (we could also use a QFormLayout for this):
- \snippet examples/itemviews/simplewidgetmapper/window.cpp Set up the layout
+ \snippet itemviews/simplewidgetmapper/window.cpp Set up the layout
Lastly, we set the window title and initialize the mapper by setting it to
refer to the first row in the model.
@@ -90,7 +90,7 @@
we create a standard model with 5 rows and 3 columns, and we insert some
sample names, addresses and ages into each row:
- \snippet examples/itemviews/simplewidgetmapper/window.cpp Set up the model
+ \snippet itemviews/simplewidgetmapper/window.cpp Set up the model
As a result, each row can be treated like a record in a database, and the
widget mapper will read the data from each row, using the column numbers
@@ -104,7 +104,7 @@
user-friendly, we implement the \c{updateButtons()} slot to show when the
user is viewing the first or last records:
- \snippet examples/itemviews/simplewidgetmapper/window.cpp Slot for updating the buttons
+ \snippet itemviews/simplewidgetmapper/window.cpp Slot for updating the buttons
If the mapper is referring to the first row in the model, the \uicontrol{Previous}
button is disabled. Similarly, the \uicontrol{Next} button is disabled if the
diff --git a/doc/src/examples/sipdialog.qdoc b/examples/widgets/doc/sipdialog.qdoc
index b5f18cb4bef..b5f18cb4bef 100644
--- a/doc/src/examples/sipdialog.qdoc
+++ b/examples/widgets/doc/sipdialog.qdoc
diff --git a/doc/src/examples/sliders.qdoc b/examples/widgets/doc/sliders.qdoc
index 383efc6140e..efc52e24d73 100644
--- a/doc/src/examples/sliders.qdoc
+++ b/examples/widgets/doc/sliders.qdoc
@@ -62,7 +62,7 @@
\section1 Window Class Definition
- \snippet examples/widgets/sliders/window.h 0
+ \snippet widgets/sliders/window.h 0
The \c Window class inherits from QWidget. It displays the slider
widgets and allows the user to set their minimum, maximum and
@@ -73,7 +73,7 @@
\section1 Window Class Implementation
- \snippet examples/widgets/sliders/window.cpp 0
+ \snippet widgets/sliders/window.cpp 0
In the constructor we first create the two \c SlidersGroup
widgets that display the slider widgets horizontally and
@@ -85,8 +85,8 @@
widgets. The rest of the controlling mechanisms is implemented by
the same function call.
- \snippet examples/widgets/sliders/window.cpp 1
- \snippet examples/widgets/sliders/window.cpp 2
+ \snippet widgets/sliders/window.cpp 1
+ \snippet widgets/sliders/window.cpp 2
Then we connect the \c horizontalSliders, \c verticalSliders and
\c valueSpinBox to each other, so that the slider widgets and the
@@ -104,8 +104,8 @@
minimum and maximum values propagate through the connections we
created with \c createControls().
- \snippet examples/widgets/sliders/window.cpp 3
- \snippet examples/widgets/sliders/window.cpp 4
+ \snippet widgets/sliders/window.cpp 3
+ \snippet widgets/sliders/window.cpp 4
In the private \c createControls() function, we let a QGroupBox
(\c controlsGroup) display the control widgets. A group box can
@@ -150,8 +150,8 @@
bindings are inverted by default: \uicontrol PageDown increases the
current value, and \uicontrol PageUp decreases it.
- \snippet examples/widgets/sliders/window.cpp 5
- \snippet examples/widgets/sliders/window.cpp 6
+ \snippet widgets/sliders/window.cpp 5
+ \snippet widgets/sliders/window.cpp 6
Then we create the spin boxes. QSpinBox allows the user to choose
a value by clicking the up and down buttons or pressing the \key
@@ -166,8 +166,8 @@
a list of options to the user in a way that takes up the minimum
amount of screen space.
- \snippet examples/widgets/sliders/window.cpp 7
- \snippet examples/widgets/sliders/window.cpp 8
+ \snippet widgets/sliders/window.cpp 7
+ \snippet widgets/sliders/window.cpp 8
We synchronize the behavior of the control widgets and the slider
widgets through their signals and slots. We connect each control
@@ -179,7 +179,7 @@
\section1 SlidersGroup Class Definition
- \snippet examples/widgets/sliders/slidersgroup.h 0
+ \snippet widgets/sliders/slidersgroup.h 0
The \c SlidersGroup class inherits from QGroupBox. It provides a
frame and a title, and contains a QSlider, a QScrollBar and a
@@ -193,7 +193,7 @@
\section1 SlidersGroup Class Implementation
- \snippet examples/widgets/sliders/slidersgroup.cpp 0
+ \snippet widgets/sliders/slidersgroup.cpp 0
First we create the slider-like widgets with the appropriate
properties. In particular we set the focus policy for each
@@ -205,24 +205,24 @@
Then we connect the widgets with each other, so that they will
stay synchronized when the current value of one of them changes.
- \snippet examples/widgets/sliders/slidersgroup.cpp 1
- \snippet examples/widgets/sliders/slidersgroup.cpp 2
+ \snippet widgets/sliders/slidersgroup.cpp 1
+ \snippet widgets/sliders/slidersgroup.cpp 2
We connect \c {dial}'s \c valueChanged() signal to the
\c{SlidersGroup}'s \c valueChanged() signal, to notify the other
widgets in the application (i.e., the control widgets) of the
changed value.
- \snippet examples/widgets/sliders/slidersgroup.cpp 3
+ \snippet widgets/sliders/slidersgroup.cpp 3
\codeline
- \snippet examples/widgets/sliders/slidersgroup.cpp 4
+ \snippet widgets/sliders/slidersgroup.cpp 4
Finally, depending on the \l {Qt::Orientation}{orientation} given
at the time of construction, we choose and create the layout for
the slider widgets within the group box.
- \snippet examples/widgets/sliders/slidersgroup.cpp 5
- \snippet examples/widgets/sliders/slidersgroup.cpp 6
+ \snippet widgets/sliders/slidersgroup.cpp 5
+ \snippet widgets/sliders/slidersgroup.cpp 6
The \c setValue() slot sets the value of the QSlider. We don't
need to explicitly call
@@ -231,21 +231,21 @@
\l{QAbstractSlider::valueChanged()}{valueChanged()} signal when
its value changes, triggering a domino effect.
- \snippet examples/widgets/sliders/slidersgroup.cpp 7
- \snippet examples/widgets/sliders/slidersgroup.cpp 8
+ \snippet widgets/sliders/slidersgroup.cpp 7
+ \snippet widgets/sliders/slidersgroup.cpp 8
\codeline
- \snippet examples/widgets/sliders/slidersgroup.cpp 9
- \snippet examples/widgets/sliders/slidersgroup.cpp 10
+ \snippet widgets/sliders/slidersgroup.cpp 9
+ \snippet widgets/sliders/slidersgroup.cpp 10
The \c setMinimum() and \c setMaximum() slots are used by the \c
Window class to set the range of the QSlider, QScrollBar, and
QDial widgets.
- \snippet examples/widgets/sliders/slidersgroup.cpp 11
- \snippet examples/widgets/sliders/slidersgroup.cpp 12
+ \snippet widgets/sliders/slidersgroup.cpp 11
+ \snippet widgets/sliders/slidersgroup.cpp 12
\codeline
- \snippet examples/widgets/sliders/slidersgroup.cpp 13
- \snippet examples/widgets/sliders/slidersgroup.cpp 14
+ \snippet widgets/sliders/slidersgroup.cpp 13
+ \snippet widgets/sliders/slidersgroup.cpp 14
The \c invertAppearance() and \c invertKeyBindings() slots
control the child widgets'
diff --git a/doc/src/examples/spinboxdelegate.qdoc b/examples/widgets/doc/spinboxdelegate.qdoc
index b36176b0426..95e764dd830 100644
--- a/doc/src/examples/spinboxdelegate.qdoc
+++ b/examples/widgets/doc/spinboxdelegate.qdoc
@@ -49,7 +49,7 @@
The definition of the delegate is as follows:
- \snippet examples/itemviews/spinboxdelegate/delegate.h 0
+ \snippet itemviews/spinboxdelegate/delegate.h 0
The delegate class declares only those functions that are needed to
create an editor widget, display it at the correct location in a view,
@@ -66,7 +66,7 @@
call the base class's constructor with the parent QObject as its
argument:
- \snippet examples/itemviews/spinboxdelegate/delegate.cpp 0
+ \snippet itemviews/spinboxdelegate/delegate.cpp 0
Since the delegate is a subclass of QItemDelegate, the data it retrieves
from the model is displayed in a default style, and we do not need to
@@ -76,7 +76,7 @@
spin box that restricts values from the model to integers from 0 to 100
inclusive.
- \snippet examples/itemviews/spinboxdelegate/delegate.cpp 1
+ \snippet itemviews/spinboxdelegate/delegate.cpp 1
We install an event filter on the spin box to ensure that it behaves in
a way that is consistent with other delegates. The implementation for
@@ -85,7 +85,7 @@
The \c setEditorData() function reads data from the model, converts it
to an integer value, and writes it to the editor widget.
- \snippet examples/itemviews/spinboxdelegate/delegate.cpp 2
+ \snippet itemviews/spinboxdelegate/delegate.cpp 2
Since the view treats delegates as ordinary QWidget instances, we have
to use a static cast before we can set the value in the spin box.
@@ -93,7 +93,7 @@
The \c setModelData() function reads the contents of the spin box, and
writes it to the model.
- \snippet examples/itemviews/spinboxdelegate/delegate.cpp 3
+ \snippet itemviews/spinboxdelegate/delegate.cpp 3
We call \l{QSpinBox::interpretText()}{interpretText()} to make sure that
we obtain the most up-to-date value in the spin box.
@@ -102,7 +102,7 @@
geometry using the information supplied in the style option. This is the
minimum that the delegate must do in this case.
- \snippet examples/itemviews/spinboxdelegate/delegate.cpp 4
+ \snippet itemviews/spinboxdelegate/delegate.cpp 4
More complex editor widgets may divide the rectangle available in
\c{option.rect} between different child widgets if required.
@@ -118,7 +118,7 @@
model to hold some data, set up a table view to use the data in the
model, and construct a custom delegate to use for editing:
- \snippet examples/itemviews/spinboxdelegate/main.cpp 0
+ \snippet itemviews/spinboxdelegate/main.cpp 0
The table view is informed about the delegate, and will use it to
display each of the items. Since the delegate is a subclass of
@@ -127,13 +127,13 @@
We insert some arbitrary data into the model for demonstration purposes:
- \snippet examples/itemviews/spinboxdelegate/main.cpp 1
- \snippet examples/itemviews/spinboxdelegate/main.cpp 2
+ \snippet itemviews/spinboxdelegate/main.cpp 1
+ \snippet itemviews/spinboxdelegate/main.cpp 2
Finally, the table view is displayed with a window title, and we start
the application's event loop:
- \snippet examples/itemviews/spinboxdelegate/main.cpp 3
+ \snippet itemviews/spinboxdelegate/main.cpp 3
Each of the cells in the table can now be edited in the usual way, but
the spin box ensures that the data returned to the model is always
diff --git a/doc/src/examples/spinboxes.qdoc b/examples/widgets/doc/spinboxes.qdoc
index 9bdc1e3aff2..ed4eea6a60a 100644
--- a/doc/src/examples/spinboxes.qdoc
+++ b/examples/widgets/doc/spinboxes.qdoc
@@ -43,7 +43,7 @@
The \c Window class inherits QWidget and contains two slots that are used
to provide interactive features:
- \snippet examples/widgets/spinboxes/window.h 0
+ \snippet widgets/spinboxes/window.h 0
The private functions are used to set up each type of spin box in the window.
We use member variables to keep track of various widgets so that they can
@@ -54,7 +54,7 @@
The constructor simply calls private functions to set up the different types
of spin box used in the example, and places each group in a layout:
- \snippet examples/widgets/spinboxes/window.cpp 0
+ \snippet widgets/spinboxes/window.cpp 0
We use the layout to manage the arrangement of the window's child widgets,
and change the window title.
@@ -63,7 +63,7 @@
QSpinBox widgets inside it with descriptive labels to indicate the types of
input they expect.
- \snippet examples/widgets/spinboxes/window.cpp 1
+ \snippet widgets/spinboxes/window.cpp 1
The first spin box shows the simplest way to use QSpinBox. It accepts values
from -20 to 20, the current value can be increased or decreased by 1 with
@@ -73,7 +73,7 @@
The second spin box uses a larger step size and displays a suffix to
provide more information about the type of data the number represents:
- \snippet examples/widgets/spinboxes/window.cpp 2
+ \snippet widgets/spinboxes/window.cpp 2
This spin box also displays a
\l{QAbstractSpinBox::specialValueText}{special value} instead of the minimum
@@ -82,12 +82,12 @@
The third spin box shows how a prefix can be used:
- \snippet examples/widgets/spinboxes/window.cpp 4
+ \snippet widgets/spinboxes/window.cpp 4
For simplicity, we show a spin box with a prefix and no suffix. It is also
possible to use both at the same time.
- \snippet examples/widgets/spinboxes/window.cpp 5
+ \snippet widgets/spinboxes/window.cpp 5
The rest of the function sets up a layout for the group box and places each
of the widgets inside it.
@@ -95,7 +95,7 @@
The \c createDateTimeEdits() function constructs another group box with a
selection of spin boxes used for editing dates and times.
- \snippet examples/widgets/spinboxes/window.cpp 6
+ \snippet widgets/spinboxes/window.cpp 6
The first spin box is a QDateEdit widget that is able to accept dates
within a given range specified using QDate values. The arrow buttons and
@@ -104,7 +104,7 @@
The second spin box is a QTimeEdit widget:
- \snippet examples/widgets/spinboxes/window.cpp 7
+ \snippet widgets/spinboxes/window.cpp 7
Acceptable values for the time are defined using QTime values.
@@ -113,19 +113,19 @@
times for a meeting. These widgets will be updated when the user changes a
format string.
- \snippet examples/widgets/spinboxes/window.cpp 8
+ \snippet widgets/spinboxes/window.cpp 8
The format string used for the date time editor, which is also shown in the
string displayed by the label, is chosen from a set of strings in a combobox:
- \snippet examples/widgets/spinboxes/window.cpp 9
+ \snippet widgets/spinboxes/window.cpp 9
\codeline
- \snippet examples/widgets/spinboxes/window.cpp 10
+ \snippet widgets/spinboxes/window.cpp 10
A signal from this combobox is connected to a slot in the \c Window class
(shown later).
- \snippet examples/widgets/spinboxes/window.cpp 11
+ \snippet widgets/spinboxes/window.cpp 11
Each child widget of the group box in placed in a layout.
@@ -133,13 +133,13 @@
format string in the combobox. The display format for the QDateTimeEdit
widget is set using the raw string passed by the signal:
- \snippet examples/widgets/spinboxes/window.cpp 12
+ \snippet widgets/spinboxes/window.cpp 12
Depending on the visible sections in the widget, we set a new date or time
range, and update the associated label to provide relevant information for
the user:
- \snippet examples/widgets/spinboxes/window.cpp 13
+ \snippet widgets/spinboxes/window.cpp 13
When the format string is changed, there will be an appropriate label and
entry widget for dates, times, or both types of input.
@@ -147,7 +147,7 @@
The \c createDoubleSpinBoxes() function constructs three spin boxes that are
used to input double-precision floating point numbers:
- \snippet examples/widgets/spinboxes/window.cpp 14
+ \snippet widgets/spinboxes/window.cpp 14
Before the QDoubleSpinBox widgets are constructed, we create a spin box to
control how many decimal places they show. By default, only two decimal places
@@ -158,23 +158,23 @@
same range, step size, and default value as the first spin box in the
\c createSpinBoxes() function:
- \snippet examples/widgets/spinboxes/window.cpp 15
+ \snippet widgets/spinboxes/window.cpp 15
However, this spin box also allows non-integer values to be entered.
The second spin box displays a suffix and shows a special value instead
of the minimum value:
- \snippet examples/widgets/spinboxes/window.cpp 16
+ \snippet widgets/spinboxes/window.cpp 16
The third spin box displays a prefix instead of a suffix:
- \snippet examples/widgets/spinboxes/window.cpp 17
+ \snippet widgets/spinboxes/window.cpp 17
We connect the QSpinBox widget that specifies the precision to a slot in
the \c Window class.
- \snippet examples/widgets/spinboxes/window.cpp 18
+ \snippet widgets/spinboxes/window.cpp 18
The rest of the function places each of the widgets into a layout for the
group box.
@@ -182,7 +182,7 @@
The \c changePrecision() slot is called when the user changes the value in
the precision spin box:
- \snippet examples/widgets/spinboxes/window.cpp 19
+ \snippet widgets/spinboxes/window.cpp 19
This function simply uses the integer supplied by the signal to specify the
number of decimal places in each of the QDoubleSpinBox widgets. Each one
diff --git a/doc/src/examples/spreadsheet.qdoc b/examples/widgets/doc/spreadsheet.qdoc
index 7364f022cb4..7364f022cb4 100644
--- a/doc/src/examples/spreadsheet.qdoc
+++ b/examples/widgets/doc/spreadsheet.qdoc
diff --git a/doc/src/examples/standarddialogs.qdoc b/examples/widgets/doc/standarddialogs.qdoc
index b56642b6ec3..b56642b6ec3 100644
--- a/doc/src/examples/standarddialogs.qdoc
+++ b/examples/widgets/doc/standarddialogs.qdoc
diff --git a/doc/src/examples/stardelegate.qdoc b/examples/widgets/doc/stardelegate.qdoc
index c9cc1f40cf5..aba8864c2bd 100644
--- a/doc/src/examples/stardelegate.qdoc
+++ b/examples/widgets/doc/stardelegate.qdoc
@@ -77,7 +77,7 @@
Here's the definition of the \c StarDelegate class:
- \snippet examples/itemviews/stardelegate/stardelegate.h 0
+ \snippet itemviews/stardelegate/stardelegate.h 0
All public functions are reimplemented virtual functions from
QItemDelegate to provide custom rendering and editing.
@@ -88,7 +88,7 @@
reimplemented from QItemDelegate and is called whenever the view
needs to repaint an item:
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 0
+ \snippet itemviews/stardelegate/stardelegate.cpp 0
The function is invoked once for each item, represented by a
QModelIndex object from the model. If the data stored in the item
@@ -107,7 +107,7 @@
The \l{QAbstractItemDelegate::}{createEditor()} function is
called when the user starts editing an item:
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 2
+ \snippet itemviews/stardelegate/stardelegate.cpp 2
If the item is a \c StarRating, we create a \c StarEditor and
connect its \c editingFinished() signal to our \c
@@ -116,7 +116,7 @@
Here's the implementation of \c commitAndCloseEditor():
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 5
+ \snippet itemviews/stardelegate/stardelegate.cpp 5
When the user is done editing, we emit
\l{QAbstractItemDelegate::}{commitData()} and
@@ -128,7 +128,7 @@
called when an editor is created to initialize it with data
from the model:
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 3
+ \snippet itemviews/stardelegate/stardelegate.cpp 3
We simply call \c setStarRating() on the editor.
@@ -136,11 +136,11 @@
called when editing is finished, to commit data from the editor
to the model:
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 4
+ \snippet itemviews/stardelegate/stardelegate.cpp 4
The \c sizeHint() function returns an item's preferred size:
- \snippet examples/itemviews/stardelegate/stardelegate.cpp 1
+ \snippet itemviews/stardelegate/stardelegate.cpp 1
We simply forward the call to \c StarRating.
@@ -149,7 +149,7 @@
The \c StarEditor class was used when implementing \c
StarDelegate. Here's the class definition:
- \snippet examples/itemviews/stardelegate/stareditor.h 0
+ \snippet itemviews/stardelegate/stareditor.h 0
The class lets the user edit a \c StarRating by moving the mouse
over the editor. It emits the \c editingFinished() signal when
@@ -164,7 +164,7 @@
Let's start with the constructor:
- \snippet examples/itemviews/stardelegate/stareditor.cpp 0
+ \snippet itemviews/stardelegate/stareditor.cpp 0
We enable \l{QWidget::setMouseTracking()}{mouse tracking} on the
widget so we can follow the cursor even when the user doesn't
@@ -176,32 +176,32 @@
The \l{QWidget::}{paintEvent()} function is reimplemented from
QWidget:
- \snippet examples/itemviews/stardelegate/stareditor.cpp 1
+ \snippet itemviews/stardelegate/stareditor.cpp 1
We simply call \c StarRating::paint() to draw the stars, just
like we did when implementing \c StarDelegate.
- \snippet examples/itemviews/stardelegate/stareditor.cpp 2
+ \snippet itemviews/stardelegate/stareditor.cpp 2
In the mouse event handler, we call \c setStarCount() on the
private data member \c myStarRating to reflect the current cursor
position, and we call QWidget::update() to force a repaint.
- \snippet examples/itemviews/stardelegate/stareditor.cpp 3
+ \snippet itemviews/stardelegate/stareditor.cpp 3
When the user releases a mouse button, we simply emit the \c
editingFinished() signal.
- \snippet examples/itemviews/stardelegate/stareditor.cpp 4
+ \snippet itemviews/stardelegate/stareditor.cpp 4
The \c starAtPosition() function uses basic linear algebra to
find out which star is under the cursor.
\section1 StarRating Class Definition
- \snippet examples/itemviews/stardelegate/starrating.h 0
+ \snippet itemviews/stardelegate/starrating.h 0
\codeline
- \snippet examples/itemviews/stardelegate/starrating.h 1
+ \snippet itemviews/stardelegate/starrating.h 1
The \c StarRating class represents a rating as a number of stars.
In addition to holding the data, it is also capable of painting
@@ -219,12 +219,12 @@
The constructor initializes \c myStarCount and \c myMaxStarCount,
and sets up the polygons used to draw stars and diamonds:
- \snippet examples/itemviews/stardelegate/starrating.cpp 0
+ \snippet itemviews/stardelegate/starrating.cpp 0
The \c paint() function paints the stars in this \c StarRating
object on a paint device:
- \snippet examples/itemviews/stardelegate/starrating.cpp 2
+ \snippet itemviews/stardelegate/starrating.cpp 2
We first set the pen and brush we will use for painting. The \c
mode parameter can be either \c Editable or \c ReadOnly. If \c
@@ -239,7 +239,7 @@
The \c sizeHint() function returns the preferred size for an area
to paint the stars on:
- \snippet examples/itemviews/stardelegate/starrating.cpp 1
+ \snippet itemviews/stardelegate/starrating.cpp 1
The preferred size is just enough to paint the maximum number of
stars. The function is called by both \c StarDelegate::sizeHint()
@@ -249,7 +249,7 @@
Here's the program's \c main() function:
- \snippet examples/itemviews/stardelegate/main.cpp 5
+ \snippet itemviews/stardelegate/main.cpp 5
The \c main() function creates a QTableWidget and sets a \c
StarDelegate on it. \l{QAbstractItemView::}{DoubleClicked} and
@@ -261,13 +261,13 @@
The \c populateTableWidget() function fills the QTableWidget with
data:
- \snippet examples/itemviews/stardelegate/main.cpp 0
- \snippet examples/itemviews/stardelegate/main.cpp 1
+ \snippet itemviews/stardelegate/main.cpp 0
+ \snippet itemviews/stardelegate/main.cpp 1
\dots
- \snippet examples/itemviews/stardelegate/main.cpp 2
- \snippet examples/itemviews/stardelegate/main.cpp 3
+ \snippet itemviews/stardelegate/main.cpp 2
+ \snippet itemviews/stardelegate/main.cpp 3
\codeline
- \snippet examples/itemviews/stardelegate/main.cpp 4
+ \snippet itemviews/stardelegate/main.cpp 4
Notice the call to qVariantFromValue to convert a \c
StarRating to a QVariant.
diff --git a/doc/src/examples/states.qdoc b/examples/widgets/doc/states.qdoc
index 52eda087f11..52eda087f11 100644
--- a/doc/src/examples/states.qdoc
+++ b/examples/widgets/doc/states.qdoc
diff --git a/doc/src/examples/stickman.qdoc b/examples/widgets/doc/stickman.qdoc
index 518dd1182ca..cffdb648226 100644
--- a/doc/src/examples/stickman.qdoc
+++ b/examples/widgets/doc/stickman.qdoc
@@ -51,12 +51,12 @@
creating states that assign values to the the "position" properties of each of the nodes in the
skeleton graph.
- \snippet examples/animation/stickman/lifecycle.cpp 1
+ \snippet animation/stickman/lifecycle.cpp 1
The states are then bound together with signal transitions that listen to the
propertiesAssigned() signal.
- \snippet examples/animation/stickman/lifecycle.cpp 2
+ \snippet animation/stickman/lifecycle.cpp 2
The last frame state is given a transition to the first one, so that the animation will loop
until it is interrupted when a transition out from the animation state is taken. To get smooth
@@ -65,7 +65,7 @@
and will be selected by default when taking any transition that leads into a state that assigns
values to these properties.
- \snippet examples/animation/stickman/lifecycle.cpp 3
+ \snippet animation/stickman/lifecycle.cpp 3
Several such animation states are constructed, and are placed together as children of a top
level "alive" state which represents the stickman life cycle. Transitions go from the parent
@@ -81,18 +81,18 @@
a custom transition type called LightningSrikesTransition which samples every second and
triggers at random (one out of fifty times on average.)
- \snippet examples/animation/stickman/lifecycle.cpp 4
+ \snippet animation/stickman/lifecycle.cpp 4
When it triggers, the machine will first enter a "lightningBlink" state which uses a timer to
pause for a brief period of time while the background color of the scene is white. This gives us
a flash effect when the lightning strikes.
- \snippet examples/animation/stickman/lifecycle.cpp 5
+ \snippet animation/stickman/lifecycle.cpp 5
We start and stop a QTimer object when entering and exiting the state. Then we transition into
the "dead" state when the timer times out.
- \snippet examples/animation/stickman/lifecycle.cpp 0
+ \snippet animation/stickman/lifecycle.cpp 0
When the machine is in the "dead" state, it will be unresponsive. This is because the "dead"
state has no transitions leading out.
diff --git a/doc/src/examples/styles.qdoc b/examples/widgets/doc/styles.qdoc
index 0623b34eb45..f8be98d2da0 100644
--- a/doc/src/examples/styles.qdoc
+++ b/examples/widgets/doc/styles.qdoc
@@ -67,7 +67,7 @@
Here's the definition of the \c NorwegianWoodStyle class:
- \snippet examples/widgets/styles/norwegianwoodstyle.h 0
+ \snippet widgets/styles/norwegianwoodstyle.h 0
The public functions are all declared in QStyle (QMotifStyle's
grandparent class) and reimplemented here to override the Motif
@@ -78,7 +78,7 @@
We will now review the implementation of the \c
NorwegianWoodStyle class.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 0
+ \snippet widgets/styles/norwegianwoodstyle.cpp 0
The \c polish() function is reimplemented from QStyle. It takes a
QPalette as a reference and adapts the palette to fit the style.
@@ -114,7 +114,7 @@
buttonImage. This image will be used for filling buttons that the
user is holding down.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 1
+ \snippet widgets/styles/norwegianwoodstyle.cpp 1
We initialize the palette. Palettes have various
\l{QPalette::ColorRole}{color roles}, such as QPalette::Base
@@ -156,8 +156,8 @@
Let's move on to the other functions reimplemented from
QMotifStyle:
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 3
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 4
+ \snippet widgets/styles/norwegianwoodstyle.cpp 3
+ \snippet widgets/styles/norwegianwoodstyle.cpp 4
This QStyle::polish() overload is called once on every widget
drawn using the style. We reimplement it to set the Qt::WA_Hover
@@ -167,8 +167,8 @@
render push buttons and comboboxes differently when the mouse
pointer is over them.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 5
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 6
+ \snippet widgets/styles/norwegianwoodstyle.cpp 5
+ \snippet widgets/styles/norwegianwoodstyle.cpp 6
This QStyle::unpolish() overload is called to undo any
modification done to the widget in \c polish(). For simplicity,
@@ -177,8 +177,8 @@
widgets (e.g., using a QMap<QWidget *, bool>) and restore it in
\c unpolish().
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 7
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 8
+ \snippet widgets/styles/norwegianwoodstyle.cpp 7
+ \snippet widgets/styles/norwegianwoodstyle.cpp 8
The \l{QStyle::pixelMetric()}{pixelMetric()} function returns the
size in pixels for a certain user interface element. By
@@ -197,8 +197,8 @@
For all other QStyle::PixelMetric elements, we use the Motif
settings.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 9
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 10
+ \snippet widgets/styles/norwegianwoodstyle.cpp 9
+ \snippet widgets/styles/norwegianwoodstyle.cpp 10
The \l{QStyle::styleHint()}{styleHint()} function returns some
hints to widgets or to the base style (in our case QMotifStyle)
@@ -209,8 +209,8 @@
QStyle::SH_EtchDisabledText hint, meaning that disabled text is
rendered with an embossed look (as QWindowsStyle does).
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 11
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 12
+ \snippet widgets/styles/norwegianwoodstyle.cpp 11
+ \snippet widgets/styles/norwegianwoodstyle.cpp 12
The \l{QStyle::drawPrimitive()}{drawPrimitive()} function is
called by Qt widgets to draw various fundamental graphical
@@ -241,8 +241,8 @@
QStyle::State_MouseOver flag to be set when the mouse is over the
widget.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 13
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 14
+ \snippet widgets/styles/norwegianwoodstyle.cpp 13
+ \snippet widgets/styles/norwegianwoodstyle.cpp 14
The \c roundRect variable is a QPainterPath. A QPainterPath is is
a vectorial specification of a shape. Any shape (rectangle,
@@ -252,10 +252,10 @@
\c roundRectPath() function is a private function; we will come
back to it later.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 15
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 16
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 17
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 18
+ \snippet widgets/styles/norwegianwoodstyle.cpp 15
+ \snippet widgets/styles/norwegianwoodstyle.cpp 16
+ \snippet widgets/styles/norwegianwoodstyle.cpp 17
+ \snippet widgets/styles/norwegianwoodstyle.cpp 18
We define two variables, \c brush and \c darker, and initialize
them based on the state of the button:
@@ -287,11 +287,11 @@
performs a dynamic cast; if \c option is not a
QStyleOptionButton, qstyleoption_cast() returns a null pointer.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 19
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 20
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 21
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 22
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 23
+ \snippet widgets/styles/norwegianwoodstyle.cpp 19
+ \snippet widgets/styles/norwegianwoodstyle.cpp 20
+ \snippet widgets/styles/norwegianwoodstyle.cpp 21
+ \snippet widgets/styles/norwegianwoodstyle.cpp 22
+ \snippet widgets/styles/norwegianwoodstyle.cpp 23
We turn on antialiasing on QPainter. Antialiasing is a technique
that reduces the visual distortion that occurs when the edges of
@@ -306,8 +306,8 @@
semi-transparent black color (a black color with an alpha channel
of 63) to make the area darker if \c darker is true.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 24
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 25
+ \snippet widgets/styles/norwegianwoodstyle.cpp 24
+ \snippet widgets/styles/norwegianwoodstyle.cpp 25
Next, we draw the outline. The top-left half of the outline and
the bottom-right half of the outline are drawn using different
@@ -318,7 +318,7 @@
\l{QAbstractButton::checked}{checked}, we invert the two
\l{QPen}s to give a sunken look to the button.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 26
+ \snippet widgets/styles/norwegianwoodstyle.cpp 26
We draw the top-left part of the outline by calling
QPainter::drawPath() with an appropriate
@@ -340,9 +340,9 @@
pass the \c -reverse command-line option to the application. This
option is recognized by the QApplication constructor.
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 32
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 33
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 34
+ \snippet widgets/styles/norwegianwoodstyle.cpp 32
+ \snippet widgets/styles/norwegianwoodstyle.cpp 33
+ \snippet widgets/styles/norwegianwoodstyle.cpp 34
The bottom-right part of the outline is drawn in a similar
fashion. Then we draw a one-pixel wide outline around the entire
@@ -354,8 +354,8 @@
base style. Let's now turn to the other \c NorwegianWoodStyle
member functions:
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 35
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 36
+ \snippet widgets/styles/norwegianwoodstyle.cpp 35
+ \snippet widgets/styles/norwegianwoodstyle.cpp 36
We reimplement QStyle::drawControl() to draw the text on a
QPushButton in a bright color when the button is
@@ -368,8 +368,8 @@
QPalette::ButtonText be the same as the QPalette::BrightText
component (unless the widget is disabled).
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 37
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 38
+ \snippet widgets/styles/norwegianwoodstyle.cpp 37
+ \snippet widgets/styles/norwegianwoodstyle.cpp 38
The \c setTexture() function is a private function that sets the
\l{QBrush::texture()}{texture} component of the \l{QBrush}es for
@@ -378,8 +378,8 @@
inactive). We used it to initialize the Norwegian Wood palette in
\c polish(QPalette &).
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 39
- \snippet examples/widgets/styles/norwegianwoodstyle.cpp 40
+ \snippet widgets/styles/norwegianwoodstyle.cpp 39
+ \snippet widgets/styles/norwegianwoodstyle.cpp 40
The \c roundRectPath() function is a private function that
constructs a QPainterPath object for round buttons. The path
@@ -397,13 +397,13 @@
class, which contains the most common Qt widgets and allows the
user to change style dynamically. Here's the class definition:
- \snippet examples/widgets/styles/widgetgallery.h 0
+ \snippet widgets/styles/widgetgallery.h 0
\dots
- \snippet examples/widgets/styles/widgetgallery.h 1
+ \snippet widgets/styles/widgetgallery.h 1
Here's the \c WidgetGallery constructor:
- \snippet examples/widgets/styles/widgetgallery.cpp 0
+ \snippet widgets/styles/widgetgallery.cpp 0
We start by creating child widgets. The \uicontrol Style combobox is
initialized with all the styles known to QStyleFactory, in
@@ -411,8 +411,8 @@
private functions that set up the various parts of the \c
WidgetGallery.
- \snippet examples/widgets/styles/widgetgallery.cpp 1
- \snippet examples/widgets/styles/widgetgallery.cpp 2
+ \snippet widgets/styles/widgetgallery.cpp 1
+ \snippet widgets/styles/widgetgallery.cpp 2
We connect the \uicontrol Style combobox to the \c changeStyle()
private slot, the \uicontrol{Use style's standard palette} check box to
@@ -420,20 +420,20 @@
box to the child widgets'
\l{QWidget::setDisabled()}{setDisabled()} slot.
- \snippet examples/widgets/styles/widgetgallery.cpp 3
- \snippet examples/widgets/styles/widgetgallery.cpp 4
+ \snippet widgets/styles/widgetgallery.cpp 3
+ \snippet widgets/styles/widgetgallery.cpp 4
Finally, we put the child widgets in layouts.
- \snippet examples/widgets/styles/widgetgallery.cpp 5
- \snippet examples/widgets/styles/widgetgallery.cpp 6
+ \snippet widgets/styles/widgetgallery.cpp 5
+ \snippet widgets/styles/widgetgallery.cpp 6
When the user changes the style in the combobox, we call
QApplication::setStyle() to dynamically change the style of the
application.
- \snippet examples/widgets/styles/widgetgallery.cpp 7
- \snippet examples/widgets/styles/widgetgallery.cpp 8
+ \snippet widgets/styles/widgetgallery.cpp 7
+ \snippet widgets/styles/widgetgallery.cpp 8
If the user turns the \uicontrol{Use style's standard palette} on, the
current style's \l{QStyle::standardPalette()}{standard palette}
@@ -443,8 +443,8 @@
always override the palette with our own palette in \c
NorwegianWoodStyle::polish().
- \snippet examples/widgets/styles/widgetgallery.cpp 9
- \snippet examples/widgets/styles/widgetgallery.cpp 10
+ \snippet widgets/styles/widgetgallery.cpp 9
+ \snippet widgets/styles/widgetgallery.cpp 10
The \c advanceProgressBar() slot is called at regular intervals
to advance the progress bar. Since we don't know how long the
@@ -454,8 +454,8 @@
We will review \c createProgressBar() in a moment.
- \snippet examples/widgets/styles/widgetgallery.cpp 11
- \snippet examples/widgets/styles/widgetgallery.cpp 12
+ \snippet widgets/styles/widgetgallery.cpp 11
+ \snippet widgets/styles/widgetgallery.cpp 12
The \c createTopLeftGroupBox() function creates the QGroupBox
that occupies the top-left corner of the \c WidgetGallery. We
@@ -463,7 +463,7 @@
createBottomLeftTabWidget(), and \c createBottomRightGroupBox()
functions, which are very similar.
- \snippet examples/widgets/styles/widgetgallery.cpp 13
+ \snippet widgets/styles/widgetgallery.cpp 13
In \c createProgressBar(), we create a QProgressBar at the bottom
of the \c WidgetGallery and connect its
diff --git a/doc/src/examples/stylesheet.qdoc b/examples/widgets/doc/stylesheet.qdoc
index af45411f8c5..af45411f8c5 100644
--- a/doc/src/examples/stylesheet.qdoc
+++ b/examples/widgets/doc/stylesheet.qdoc
diff --git a/doc/src/examples/sub-attaq.qdoc b/examples/widgets/doc/sub-attaq.qdoc
index ae00eb09260..ae00eb09260 100644
--- a/doc/src/examples/sub-attaq.qdoc
+++ b/examples/widgets/doc/sub-attaq.qdoc
diff --git a/doc/src/examples/syntaxhighlighter.qdoc b/examples/widgets/doc/syntaxhighlighter.qdoc
index 597a1a2bf38..272152a3a13 100644
--- a/doc/src/examples/syntaxhighlighter.qdoc
+++ b/examples/widgets/doc/syntaxhighlighter.qdoc
@@ -53,7 +53,7 @@
\section1 Highlighter Class Definition
- \snippet examples/richtext/syntaxhighlighter/highlighter.h 0
+ \snippet richtext/syntaxhighlighter/highlighter.h 0
To provide your own syntax highlighting, you must subclass
QSyntaxHighlighter, reimplement the \l
@@ -79,8 +79,8 @@
applied. In this example, we have also chosen to define our
highlighting rules in the constructor:
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 0
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 1
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 0
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 1
First we define a keyword rule which recognizes the most common
C++ keywords. We give the \c keywordFormat a bold, dark blue
@@ -88,11 +88,11 @@
format to a HighlightingRule object and append the object to our
list of rules.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 2
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 2
\codeline
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 4
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 4
\codeline
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 5
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 5
Then we create a format that we will apply to Qt class names. The
class names will be rendered with a dark magenta color and a bold
@@ -106,9 +106,9 @@
expressions and are stored in HighlightingRule objects with the
associated format.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 3
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 3
\codeline
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 6
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 6
The C++ language has two variations of comments: The single line
comment (\c //) and the multiline comment (\c{/*...}\starslash). The single
@@ -126,7 +126,7 @@
function. At this point we only specify the multiline comment's
color.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 7
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 7
The highlightBlock() function is called automatically whenever it
is necessary by the rich text engine, i.e. when there are text
@@ -154,7 +154,7 @@
This process is repeated until the last occurrence of the pattern
in the current text block is found.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 8
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 8
To deal with constructs that can span several text blocks (like
the C++ multiline comment), it is necessary to know the end state
@@ -180,7 +180,7 @@
syntax highlighting rules are applied we initialize the current
block state to 0.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 9
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 9
If the previous block state was "in comment" (\c
{previousBlockState() == 1}), we start the search for an end
@@ -188,8 +188,8 @@
previousBlockState() returns 0, we start the search at the
location of the first occurrence of a start expression.
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 10
- \snippet examples/richtext/syntaxhighlighter/highlighter.cpp 11
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 10
+ \snippet richtext/syntaxhighlighter/highlighter.cpp 11
When an end expression is found, we calculate the length of the
comment and apply the multiline comment format. Then we search for
@@ -206,7 +206,7 @@
application with an instance of the class and pass it the document
upon which you want the highlighting to be applied.
- \snippet examples/richtext/syntaxhighlighter/mainwindow.h 0
+ \snippet richtext/syntaxhighlighter/mainwindow.h 0
In this example we declare a pointer to a \c Highlighter instance
which we later will initialize in the private \c setupEditor()
@@ -219,12 +219,12 @@
central widget of the application. Finally we set the main
window's title.
- \snippet examples/richtext/syntaxhighlighter/mainwindow.cpp 0
+ \snippet richtext/syntaxhighlighter/mainwindow.cpp 0
We initialize and install the \c Highlighter object in the private
setupEditor() convenience function:
- \snippet examples/richtext/syntaxhighlighter/mainwindow.cpp 1
+ \snippet richtext/syntaxhighlighter/mainwindow.cpp 1
First we create the font we want to use in the editor, then we
create the editor itself which is an instance of the QTextEdit
diff --git a/doc/src/examples/tabdialog.qdoc b/examples/widgets/doc/tabdialog.qdoc
index ff05d9b4190..98983d124bc 100644
--- a/doc/src/examples/tabdialog.qdoc
+++ b/examples/widgets/doc/tabdialog.qdoc
@@ -52,7 +52,7 @@
only contain the class constructor and a private data member for
the QTabWidget:
- \snippet examples/dialogs/tabdialog/tabdialog.h 3
+ \snippet dialogs/tabdialog/tabdialog.h 3
In the example, the widget will be used as a top-level window, but
we define the constructor so that it can take a parent widget. This
@@ -64,7 +64,7 @@
The constructor calls the QDialog constructor and creates a QFileInfo
object for the specified filename.
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 0
+ \snippet dialogs/tabdialog/tabdialog.cpp 0
The tab widget is populated with three custom widgets that each
contain information about the file. We construct each of these
@@ -74,16 +74,16 @@
We create two standard push buttons, and connect each of them to
the appropriate slots in the dialog:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 1
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 3
+ \snippet dialogs/tabdialog/tabdialog.cpp 1
+ \snippet dialogs/tabdialog/tabdialog.cpp 3
We arrange the tab widget above the buttons in the dialog:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 4
+ \snippet dialogs/tabdialog/tabdialog.cpp 4
Finally, we set the dialog's title:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 5
+ \snippet dialogs/tabdialog/tabdialog.cpp 5
Each of the tabs are subclassed from QWidget, and only provide
constructors.
@@ -93,7 +93,7 @@
The GeneralTab widget definition is simple because we are only interested
in displaying the contents of a widget within a tab:
- \snippet examples/dialogs/tabdialog/tabdialog.h 0
+ \snippet dialogs/tabdialog/tabdialog.h 0
\section1 GeneralTab Class Implementation
@@ -101,14 +101,14 @@
passed by the TabDialog. Various widgets for this purpose, and these
are arranged within a vertical layout:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 6
+ \snippet dialogs/tabdialog/tabdialog.cpp 6
\section1 PermissionsTab Class Definition
Like the GeneralTab, the PermissionsTab is just used as a placeholder
widget for its children:
- \snippet examples/dialogs/tabdialog/tabdialog.h 1
+ \snippet dialogs/tabdialog/tabdialog.h 1
\section1 PermissionsTab Class Implementation
@@ -116,19 +116,19 @@
displaying details of the file permissions and owner in widgets that are
arranged in nested layouts:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 7
+ \snippet dialogs/tabdialog/tabdialog.cpp 7
\section1 ApplicationsTab Class Definition
The ApplicationsTab is another placeholder widget that is mostly
cosmetic:
- \snippet examples/dialogs/tabdialog/tabdialog.h 2
+ \snippet dialogs/tabdialog/tabdialog.h 2
\section1 ApplicationsTab Class Implementation
The ApplicationsTab does not show any useful information, but could be
used as a template for a more complicated example:
- \snippet examples/dialogs/tabdialog/tabdialog.cpp 8
+ \snippet dialogs/tabdialog/tabdialog.cpp 8
*/
diff --git a/doc/src/examples/tablet.qdoc b/examples/widgets/doc/tablet.qdoc
index 57fa7d5eca1..846a9a357b5 100644
--- a/doc/src/examples/tablet.qdoc
+++ b/examples/widgets/doc/tablet.qdoc
@@ -79,7 +79,7 @@
The \c MainWindow creates a \c TabletCanvas and sets it as its
center widget.
- \snippet examples/widgets/tablet/mainwindow.h 0
+ \snippet widgets/tablet/mainwindow.h 0
The QActions let the user select if the tablets pressure and
tilt should change the pen width, color alpha component and color
@@ -97,7 +97,7 @@
We start width a look at the constructor \c MainWindow():
- \snippet examples/widgets/tablet/mainwindow.cpp 0
+ \snippet widgets/tablet/mainwindow.cpp 0
In the constructor we create the canvas, actions, and menus.
We set the canvas as the center widget. We also initialize the
@@ -106,14 +106,14 @@
Here is the implementation of \c brushColorAct():
- \snippet examples/widgets/tablet/mainwindow.cpp 1
+ \snippet widgets/tablet/mainwindow.cpp 1
We let the user pick a color with a QColorDialog. If it is valid,
we set a new drawing color with \c setColor().
Here is the implementation of \c alphaActionTriggered():
- \snippet examples/widgets/tablet/mainwindow.cpp 2
+ \snippet widgets/tablet/mainwindow.cpp 2
The \c TabletCanvas class supports two ways by which the alpha
channel of the drawing color can be changed: tablet pressure and
@@ -122,14 +122,14 @@
Here is the implementation of \c lineWidthActionTriggered():
- \snippet examples/widgets/tablet/mainwindow.cpp 3
+ \snippet widgets/tablet/mainwindow.cpp 3
We check which action is selected in \c lineWidthGroup, and set
how the canvas should change the drawing line width.
Here is the implementation of \c saturationActionTriggered():
- \snippet examples/widgets/tablet/mainwindow.cpp 4
+ \snippet widgets/tablet/mainwindow.cpp 4
We check which action is selected in \c colorSaturationGroup, and
set how the canvas should change the color saturation of the
@@ -137,7 +137,7 @@
Here is the implementation of \c saveAct():
- \snippet examples/widgets/tablet/mainwindow.cpp 5
+ \snippet widgets/tablet/mainwindow.cpp 5
We use the QFileDialog to let the user select a file to save the
drawing in. It is the \c TabletCanvas that save the drawing, so we
@@ -145,7 +145,7 @@
Here is the implementation of \c loadAct():
- \snippet examples/widgets/tablet/mainwindow.cpp 6
+ \snippet widgets/tablet/mainwindow.cpp 6
We let the user select the image file to be opened with
a QFileDialog; we then ask the canvas to load the image with \c
@@ -153,7 +153,7 @@
Here is the implementation of \c aboutAct():
- \snippet examples/widgets/tablet/mainwindow.cpp 7
+ \snippet widgets/tablet/mainwindow.cpp 7
We show a message box with a short description of the example.
@@ -164,9 +164,9 @@
Here is the implementation of \c createActions:
- \snippet examples/widgets/tablet/mainwindow.cpp 8
+ \snippet widgets/tablet/mainwindow.cpp 8
\dots
- \snippet examples/widgets/tablet/mainwindow.cpp 9
+ \snippet widgets/tablet/mainwindow.cpp 9
We want the user to be able to choose if the drawing color's
alpha component should be changed by the tablet pressure or tilt.
@@ -177,11 +177,11 @@
triggered() signal is emitted when an action is checked.
\dots
- \snippet examples/widgets/tablet/mainwindow.cpp 10
+ \snippet widgets/tablet/mainwindow.cpp 10
Here is the implementation of \c createMenus():
- \snippet examples/widgets/tablet/mainwindow.cpp 11
+ \snippet widgets/tablet/mainwindow.cpp 11
We create the menus of the example and add the actions to them.
@@ -191,7 +191,7 @@
The \c TabletCanvas class provides a surface on which the
user can draw with a tablet.
- \snippet examples/widgets/tablet/tabletcanvas.h 0
+ \snippet widgets/tablet/tabletcanvas.h 0
The canvas can change the alpha channel, color saturation,
and line width of the drawing. We have one enum for each of
@@ -217,28 +217,28 @@
We start with a look at the constructor:
- \snippet examples/widgets/tablet/tabletcanvas.cpp 0
+ \snippet widgets/tablet/tabletcanvas.cpp 0
In the constructor we initialize our class variables. We need
to draw the background of our pixmap, as the default is gray.
Here is the implementation of \c saveImage():
- \snippet examples/widgets/tablet/tabletcanvas.cpp 1
+ \snippet widgets/tablet/tabletcanvas.cpp 1
QPixmap implements functionality to save itself to disk, so we
simply call \l{QPixmap::}{save()}.
Here is the implementation of \c loadImage():
- \snippet examples/widgets/tablet/tabletcanvas.cpp 2
+ \snippet widgets/tablet/tabletcanvas.cpp 2
We simply call \l{QPixmap::}{load()}, which loads the image in \a
file.
Here is the implementation of \c tabletEvent():
- \snippet examples/widgets/tablet/tabletcanvas.cpp 3
+ \snippet widgets/tablet/tabletcanvas.cpp 3
We get three kind of events to this function: TabletPress,
TabletRelease, and TabletMove, which is generated when a device
@@ -251,13 +251,13 @@
Here is the implementation of \c paintEvent():
- \snippet examples/widgets/tablet/tabletcanvas.cpp 4
+ \snippet widgets/tablet/tabletcanvas.cpp 4
We simply draw the pixmap to the top left of the widget.
Here is the implementation of \c paintPixmap():
- \snippet examples/widgets/tablet/tabletcanvas.cpp 5
+ \snippet widgets/tablet/tabletcanvas.cpp 5
In this function we draw on the pixmap based on the movement of the
device. If the device used on the tablet is a stylus we want to draw a
@@ -272,7 +272,7 @@
density; we select the style based on the tangential pressure in
\c brushPattern().
- \snippet examples/widgets/tablet/tabletcanvas.cpp 6
+ \snippet widgets/tablet/tabletcanvas.cpp 6
We return a brush style with a point density that increases with
the tangential pressure.
@@ -282,7 +282,7 @@
colorSaturationType, and \c myColor. We will examine the code to
set up \c myBrush and \c myPen for each of these variables:
- \snippet examples/widgets/tablet/tabletcanvas.cpp 7
+ \snippet widgets/tablet/tabletcanvas.cpp 7
We fetch the current drawingcolor's hue, saturation, value,
and alpha values. \c hValue and \c vValue are set to the
@@ -292,7 +292,7 @@
is between the device and the perpendicular of the tablet (see
QTabletEvent for an illustration).
- \snippet examples/widgets/tablet/tabletcanvas.cpp 8
+ \snippet widgets/tablet/tabletcanvas.cpp 8
The alpha channel of QColor is given as a number between 0
and 255 where 0 is transparent and 255 is opaque.
@@ -303,20 +303,20 @@
the tablet. We select the largest of the vertical and horizontal
tilt value.
- \snippet examples/widgets/tablet/tabletcanvas.cpp 9
+ \snippet widgets/tablet/tabletcanvas.cpp 9
The colorsaturation is given as a number between 0 and 255. It is
set with \l{QColor::}{setHsv()}. We can set the tilt values
directly, but must multiply the pressure to a number between 0 and
255.
- \snippet examples/widgets/tablet/tabletcanvas.cpp 10
+ \snippet widgets/tablet/tabletcanvas.cpp 10
The width of the pen increases with the pressure. When the pen
width is controlled with the tilt we let the width increse with
the angle between the device and the perpendicular of the tablet.
- \snippet examples/widgets/tablet/tabletcanvas.cpp 11
+ \snippet widgets/tablet/tabletcanvas.cpp 11
We finally check whether the pointer is the stylus or the eraser.
If it is the eraser, we set the color to the background color of
@@ -329,7 +329,7 @@
We inherit QApplication in this class because we want to
reimplement the \l{QApplication::}{event()} function.
- \snippet examples/widgets/tablet/tabletapplication.h 0
+ \snippet widgets/tablet/tabletapplication.h 0
We keep a \c TabletCanvas we send the device type of the events we
handle in the \c event() function to. The TabletEnterProximity
@@ -344,7 +344,7 @@
Here is the implementation of \c event():
- \snippet examples/widgets/tablet/tabletapplication.cpp 0
+ \snippet widgets/tablet/tabletapplication.cpp 0
We use this function to handle the TabletEnterProximity and
TabletLeaveProximity events, which is generated when a device
@@ -359,7 +359,7 @@
Here is the examples \c main() function:
- \snippet examples/widgets/tablet/main.cpp 0
+ \snippet widgets/tablet/main.cpp 0
In the \c main() function we create a \c MainWinow and display it
as a top level window. We use the \c TabletApplication class. We
diff --git a/doc/src/examples/tetrix.qdoc b/examples/widgets/doc/tetrix.qdoc
index 1b9c3a661d3..1a30845024b 100644
--- a/doc/src/examples/tetrix.qdoc
+++ b/examples/widgets/doc/tetrix.qdoc
@@ -70,7 +70,7 @@
The \c TetrixWindow class is used to display the game information and contains
the playing area:
- \snippet examples/widgets/tetrix/tetrixwindow.h 0
+ \snippet widgets/tetrix/tetrixwindow.h 0
We use private member variables for the board, various display widgets, and
buttons to allow the user to start a new game, pause the current game, and quit.
@@ -83,7 +83,7 @@
The constructor sets up the user interface elements for the game:
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 0
+ \snippet widgets/tetrix/tetrixwindow.cpp 0
We begin by constructing a \c TetrixBoard instance for the playing area and a
label that shows the next piece to be dropped into the playing area; the label
@@ -93,13 +93,13 @@
lines removed. These initially show default values, and will be filled in
when a game begins:
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 1
+ \snippet widgets/tetrix/tetrixwindow.cpp 1
Three buttons with shortcuts are constructed so that the user can start a
new game, pause the current game, and quit the application:
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 2
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 3
+ \snippet widgets/tetrix/tetrixwindow.cpp 2
+ \snippet widgets/tetrix/tetrixwindow.cpp 3
These buttons are configured so that they never receive the keyboard focus;
we want the keyboard focus to remain with the \c TetrixBoard instance so that
@@ -110,8 +110,8 @@
and \uicontrol{Pause} buttons to the board, and from the \uicontrol{Quit} button to the
application's \l{QApplication::}{quit()} slot.
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 4
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 5
+ \snippet widgets/tetrix/tetrixwindow.cpp 4
+ \snippet widgets/tetrix/tetrixwindow.cpp 5
Signals from the board are also connected to the LCD widgets for the purpose of
updating the score, number of lives, and lines removed from the playing area.
@@ -120,7 +120,7 @@
along with some labels that we create with the \c createLabel() convenience
function:
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 6
+ \snippet widgets/tetrix/tetrixwindow.cpp 6
Finally, we set the grid layout on the widget, give the window a title, and
resize it to an appropriate size.
@@ -128,7 +128,7 @@
The \c createLabel() convenience function simply creates a new label on the
heap, gives it an appropriate alignment, and returns it to the caller:
- \snippet examples/widgets/tetrix/tetrixwindow.cpp 7
+ \snippet widgets/tetrix/tetrixwindow.cpp 7
Since each label will be used in the widget's layout, it will become a child
of the \c TetrixWindow widget and, as a result, it will be deleted when the
@@ -140,7 +140,7 @@
playing area, including its shape, position, and the range of positions it can
occupy on the board:
- \snippet examples/widgets/tetrix/tetrixpiece.h 0
+ \snippet widgets/tetrix/tetrixpiece.h 0
Each shape contains four blocks, and these are defined by the \c coords private
member variable. Additionally, each piece has a high-level description that is
@@ -155,7 +155,7 @@
The \c setRandomShape() function is used to select a random shape for a piece:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 0
+ \snippet widgets/tetrix/tetrixpiece.cpp 0
For convenience, it simply chooses a random shape from the \c TetrixShape enum
and calls the \c setShape() function to perform the task of positioning the
@@ -164,8 +164,8 @@
The \c setShape() function uses a look-up table of pieces to associate each
shape with an array of block positions:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 1
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 2
+ \snippet widgets/tetrix/tetrixpiece.cpp 1
+ \snippet widgets/tetrix/tetrixpiece.cpp 2
These positions are read from the table into the piece's own array of positions,
and the piece's internal shape information is updated to use the new shape.
@@ -179,24 +179,24 @@
The \c minX() and \c maxX() functions return the minimum and maximum horizontal
coordinates occupied by the blocks that make up the piece:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 3
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 4
+ \snippet widgets/tetrix/tetrixpiece.cpp 3
+ \snippet widgets/tetrix/tetrixpiece.cpp 4
Similarly, the \c minY() and \c maxY() functions return the minimum and maximum
vertical coordinates occupied by the blocks:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 5
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 6
+ \snippet widgets/tetrix/tetrixpiece.cpp 5
+ \snippet widgets/tetrix/tetrixpiece.cpp 6
The \c rotatedLeft() function returns a new piece with the same shape as an
existing piece, but rotated counter-clockwise by 90 degrees:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 7
+ \snippet widgets/tetrix/tetrixpiece.cpp 7
Similarly, the \c rotatedRight() function returns a new piece with the same
shape as an existing piece, but rotated clockwise by 90 degrees:
- \snippet examples/widgets/tetrix/tetrixpiece.cpp 9
+ \snippet widgets/tetrix/tetrixpiece.cpp 9
These last two functions enable each piece to create rotated copies of itself.
@@ -204,7 +204,7 @@
The \c TetrixBoard class inherits from QFrame and contains the game logic and display features:
- \snippet examples/widgets/tetrix/tetrixboard.h 0
+ \snippet widgets/tetrix/tetrixboard.h 0
Apart from the \c setNextPieceLabel() function and the \c start() and \c pause()
public slots, we only provide public functions to reimplement QWidget::sizeHint()
@@ -214,7 +214,7 @@
The rest of the functionality is provided by reimplementations of protected event
handlers and private functions:
- \snippet examples/widgets/tetrix/tetrixboard.h 1
+ \snippet widgets/tetrix/tetrixboard.h 1
The board is composed of a fixed-size array whose elements correspond to
spaces for individual blocks. Each element in the array contains a \c TetrixShape
@@ -233,20 +233,20 @@
keyboard input will be received by the widget by using Qt::StrongFocus for the
focus policy, and initialize the game state:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 0
+ \snippet widgets/tetrix/tetrixboard.cpp 0
The first (next) piece is also set up with a random shape.
The \c setNextPieceLabel() function is used to pass in an externally-constructed
label to the board, so that it can be shown alongside the playing area:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 1
+ \snippet widgets/tetrix/tetrixboard.cpp 1
We provide a reasonable size hint and minimum size hint for the board, based on
the size of the space for each block in the playing area:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 2
- \snippet examples/widgets/tetrix/tetrixboard.cpp 3
+ \snippet widgets/tetrix/tetrixboard.cpp 2
+ \snippet widgets/tetrix/tetrixboard.cpp 3
By using a minimum size hint, we indicate to the layout in the parent widget
that the board should not shrink below a minimum size.
@@ -254,7 +254,7 @@
A new game is started when the \c start() slot is called. This resets the
game's state, the player's score and level, and the contents of the board:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 4
+ \snippet widgets/tetrix/tetrixboard.cpp 4
We also emit signals to inform other components of these changes before creating
a new piece that is ready to be dropped into the playing area. We start the
@@ -263,8 +263,8 @@
The \c pause() slot is used to temporarily stop the current game by stopping the
internal timer:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 5
- \snippet examples/widgets/tetrix/tetrixboard.cpp 6
+ \snippet widgets/tetrix/tetrixboard.cpp 5
+ \snippet widgets/tetrix/tetrixboard.cpp 6
We perform checks to ensure that the game can only be paused if it is already
running and not already paused.
@@ -273,7 +273,7 @@
calling the base class's implementation of \l{QWidget::}{paintEvent()} before
constructing a QPainter for use on the board:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 7
+ \snippet widgets/tetrix/tetrixboard.cpp 7
Since the board is a subclass of QFrame, we obtain a QRect that covers the area
\e inside the frame decoration before drawing our own content.
@@ -287,22 +287,22 @@
For each space on the board that is occupied by a piece, we call the
\c drawSquare() function to draw a block at that position.
- \snippet examples/widgets/tetrix/tetrixboard.cpp 8
- \snippet examples/widgets/tetrix/tetrixboard.cpp 9
+ \snippet widgets/tetrix/tetrixboard.cpp 8
+ \snippet widgets/tetrix/tetrixboard.cpp 9
Spaces that are not occupied by blocks are left blank.
Unlike the existing pieces on the board, the current piece is drawn
block-by-block at its current position:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 10
- \snippet examples/widgets/tetrix/tetrixboard.cpp 11
- \snippet examples/widgets/tetrix/tetrixboard.cpp 12
+ \snippet widgets/tetrix/tetrixboard.cpp 10
+ \snippet widgets/tetrix/tetrixboard.cpp 11
+ \snippet widgets/tetrix/tetrixboard.cpp 12
The \c keyPressEvent() handler is called whenever the player presses a key while
the \c TetrixBoard widget has the keyboard focus.
- \snippet examples/widgets/tetrix/tetrixboard.cpp 13
+ \snippet widgets/tetrix/tetrixboard.cpp 13
If there is no current game, the game is running but paused, or if there is no
current shape to control, we simply pass on the event to the base class.
@@ -311,7 +311,7 @@
control the current piece and, if so, we call the relevant function to handle
the input:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 14
+ \snippet widgets/tetrix/tetrixboard.cpp 14
In the case where the player presses a key that we are not interested in, we
again pass on the event to the base class's implementation of
@@ -321,9 +321,9 @@
instance times out. We need to check that the event we receive corresponds to
our timer. If it does, we can update the board:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 15
- \snippet examples/widgets/tetrix/tetrixboard.cpp 16
- \snippet examples/widgets/tetrix/tetrixboard.cpp 17
+ \snippet widgets/tetrix/tetrixboard.cpp 15
+ \snippet widgets/tetrix/tetrixboard.cpp 16
+ \snippet widgets/tetrix/tetrixboard.cpp 17
If a row (or line) has just been filled, we create a new piece and reset the
timer; otherwise we move the current piece down by one row. We let the base
@@ -332,14 +332,14 @@
The \c clearBoard() function simply fills the board with the
\c TetrixShape::NoShape value:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 18
+ \snippet widgets/tetrix/tetrixboard.cpp 18
The \c dropDown() function moves the current piece down as far as possible on
the board, either until it is touching the bottom of the playing area or it is
stacked on top of another piece:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 19
- \snippet examples/widgets/tetrix/tetrixboard.cpp 20
+ \snippet widgets/tetrix/tetrixboard.cpp 19
+ \snippet widgets/tetrix/tetrixboard.cpp 20
The number of rows the piece has dropped is recorded and passed to the
\c pieceDropped() function so that the player's score can be updated.
@@ -348,7 +348,7 @@
(line), either when the user presses the \uicontrol{D} key or when the piece is
scheduled to move:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 21
+ \snippet widgets/tetrix/tetrixboard.cpp 21
If the piece cannot drop down by one line, we call the \c pieceDropped() function
with zero as the argument to indicate that it cannot fall any further, and that
@@ -359,23 +359,23 @@
and, if no lines have been removed, creating a new piece to replace the current
one:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 22
- \snippet examples/widgets/tetrix/tetrixboard.cpp 23
+ \snippet widgets/tetrix/tetrixboard.cpp 22
+ \snippet widgets/tetrix/tetrixboard.cpp 23
We call \c removeFullLines() each time a piece has been dropped. This scans
the board from bottom to top, looking for blank spaces on each row.
- \snippet examples/widgets/tetrix/tetrixboard.cpp 24
- \snippet examples/widgets/tetrix/tetrixboard.cpp 25
- \snippet examples/widgets/tetrix/tetrixboard.cpp 26
- \snippet examples/widgets/tetrix/tetrixboard.cpp 27
+ \snippet widgets/tetrix/tetrixboard.cpp 24
+ \snippet widgets/tetrix/tetrixboard.cpp 25
+ \snippet widgets/tetrix/tetrixboard.cpp 26
+ \snippet widgets/tetrix/tetrixboard.cpp 27
If a row contains no blank spaces, the rows above it are copied down by one row
to compress the stack of pieces, the top row on the board is cleared, and the
number of full lines found is incremented.
- \snippet examples/widgets/tetrix/tetrixboard.cpp 28
- \snippet examples/widgets/tetrix/tetrixboard.cpp 29
+ \snippet widgets/tetrix/tetrixboard.cpp 28
+ \snippet widgets/tetrix/tetrixboard.cpp 29
If some lines have been removed, the player's score and the total number of lines
removed are updated. The \c linesRemoved() and \c scoreChanged() signals are
@@ -390,8 +390,8 @@
The \c newPiece() function places the next available piece at the top of the
board, and creates a new piece with a random shape:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 30
- \snippet examples/widgets/tetrix/tetrixboard.cpp 31
+ \snippet widgets/tetrix/tetrixboard.cpp 30
+ \snippet widgets/tetrix/tetrixboard.cpp 31
We place a new piece in the middle of the board at the top. The game is over if
the piece can't move, so we unset its shape to prevent it from being drawn, stop
@@ -400,21 +400,21 @@
The \c showNextPiece() function updates the label that shows the next piece to
be dropped:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 32
- \snippet examples/widgets/tetrix/tetrixboard.cpp 33
+ \snippet widgets/tetrix/tetrixboard.cpp 32
+ \snippet widgets/tetrix/tetrixboard.cpp 33
We draw the piece's component blocks onto a pixmap that is then set on the label.
The \c tryMove() function is used to determine whether a piece can be positioned
at the specified coordinates:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 34
+ \snippet widgets/tetrix/tetrixboard.cpp 34
We examine the spaces on the board that the piece needs to occupy and, if they
are already occupied by other pieces, we return \c false to indicate that the
move has failed.
- \snippet examples/widgets/tetrix/tetrixboard.cpp 35
+ \snippet widgets/tetrix/tetrixboard.cpp 35
If the piece could be placed on the board at the desired location, we update the
current piece and its position, update the widget, and return \c true to indicate
@@ -423,7 +423,7 @@
The \c drawSquare() function draws the blocks (normally squares) that make up
each piece using different colors for pieces with different shapes:
- \snippet examples/widgets/tetrix/tetrixboard.cpp 36
+ \snippet widgets/tetrix/tetrixboard.cpp 36
We obtain the color to use from a look-up table that relates each shape to an
RGB value, and use the painter provided to draw the block at the specified
diff --git a/doc/src/examples/textedit.qdoc b/examples/widgets/doc/textedit.qdoc
index 1bb596eb6e5..1bb596eb6e5 100644
--- a/doc/src/examples/textedit.qdoc
+++ b/examples/widgets/doc/textedit.qdoc
diff --git a/doc/src/examples/tooltips.qdoc b/examples/widgets/doc/tooltips.qdoc
index cfa1884097e..e06f080a93f 100644
--- a/doc/src/examples/tooltips.qdoc
+++ b/examples/widgets/doc/tooltips.qdoc
@@ -63,7 +63,7 @@
\section1 SortingBox Class Definition
- \snippet examples/widgets/tooltips/sortingbox.h 0
+ \snippet widgets/tooltips/sortingbox.h 0
The \c SortingBox class inherits QWidget, and it is the Tooltips
application's main widget. We reimplement several of the event
@@ -79,7 +79,7 @@
In addition we need three private slots to make the user able to
create new shape items.
- \snippet examples/widgets/tooltips/sortingbox.h 1
+ \snippet widgets/tooltips/sortingbox.h 1
We also create several private functions: We use the \c
initialItemPosition(), \c initialItemColor() and \c
@@ -93,7 +93,7 @@
randomItemPosition() and \c randomItemColor() functions to create
new shape items.
- \snippet examples/widgets/tooltips/sortingbox.h 2
+ \snippet widgets/tooltips/sortingbox.h 2
We keep all the shape items in a QList, and we keep three
QPainterPath objects holding the shapes of a circle, a square and
@@ -102,7 +102,7 @@
\section1 SortingBox Class Implementation
- \snippet examples/widgets/tooltips/sortingbox.cpp 0
+ \snippet widgets/tooltips/sortingbox.cpp 0
In the constructor, we first set the Qt::WA_StaticContents
attribute on the widget. This attribute indicates that the widget
@@ -110,7 +110,7 @@
widget will receive paint events only for the newly visible part
of itself.
- \snippet examples/widgets/tooltips/sortingbox.cpp 1
+ \snippet widgets/tooltips/sortingbox.cpp 1
To be able to show the appropriate tooltips while the user is
moving the cursor around, we need to enable mouse tracking for the
@@ -122,13 +122,13 @@
enabled, the widget receives mouse move events even if no buttons
are pressed.
- \snippet examples/widgets/tooltips/sortingbox.cpp 2
+ \snippet widgets/tooltips/sortingbox.cpp 2
A widget's background role defines the brush from the widget's
palette that is used to render the background, and QPalette::Base
is typically white.
- \snippet examples/widgets/tooltips/sortingbox.cpp 3
+ \snippet widgets/tooltips/sortingbox.cpp 3
After creating the application's tool buttons using the private \c
createToolButton() function, we construct the shapes of a circle,
@@ -141,14 +141,14 @@
but they can be drawn many times using only calls to
QPainter::drawPath().
- \snippet examples/widgets/tooltips/sortingbox.cpp 4
+ \snippet widgets/tooltips/sortingbox.cpp 4
Then we set the window title, resize the widget to a suitable
size, and finally create three initial shape items using the
private \c createShapeItem(), \c initialItemPosition() and \c
initialItemColor() functions.
- \snippet examples/widgets/tooltips/sortingbox.cpp 5
+ \snippet widgets/tooltips/sortingbox.cpp 5
QWidget::event() is the main event handler and receives all the
widget's events. Normally, we recommend reimplementing one of the
@@ -158,7 +158,7 @@
reason we reimplement the main event handler, and the first thing
we need to do is to determine the event's type:
- \snippet examples/widgets/tooltips/sortingbox.cpp 6
+ \snippet widgets/tooltips/sortingbox.cpp 6
If the type is QEvent::ToolTip, we cast the event to a QHelpEvent,
otherwise we propagate the event using the QWidget::event()
@@ -178,7 +178,7 @@
QToolTip::showText() function needs the event's position in global
coordinates provided by QHelpEvent::globalPos().
- \snippet examples/widgets/tooltips/sortingbox.cpp 7
+ \snippet widgets/tooltips/sortingbox.cpp 7
The \c resizeEvent() function is reimplemented to receive the
resize events dispatched to the widget. It makes sure that the
@@ -187,14 +187,14 @@
aligned in the application's bottom right corner, so each time the
main widget is resized we update the buttons geometry.
- \snippet examples/widgets/tooltips/sortingbox.cpp 8
+ \snippet widgets/tooltips/sortingbox.cpp 8
The \c paintEvent() function is reimplemented to receive paint
events for the widget. We create a QPainter for the \c SortingBox
widget, and run through the list of created shape items, drawing
each item at its defined position.
- \snippet examples/widgets/tooltips/sortingbox.cpp 9
+ \snippet widgets/tooltips/sortingbox.cpp 9
The painter will by default draw all the shape items at position
(0,0) in the \c SortingBox widget. The QPainter::translate()
@@ -204,7 +204,7 @@
drawn, otherwise the next shape item will appear at a position
relative to the item we drawed last.
- \snippet examples/widgets/tooltips/sortingbox.cpp 10
+ \snippet widgets/tooltips/sortingbox.cpp 10
The QPainter::setBrush() function sets the current brush used by
the painter. When the provided argument is a QColor, the function
@@ -213,7 +213,7 @@
QPainter::drawPath() function draws the given path using the
current pen for outline and the current brush for filling.
- \snippet examples/widgets/tooltips/sortingbox.cpp 11
+ \snippet widgets/tooltips/sortingbox.cpp 11
The \c mousePressEvent() function is reimplemented to receive the
mouse press events dispatched to the widget. It determines if an
@@ -230,7 +230,7 @@
repaint; instead it schedules a paint event for processing when Qt
returns to the main event loop.
- \snippet examples/widgets/tooltips/sortingbox.cpp 12
+ \snippet widgets/tooltips/sortingbox.cpp 12
The \c mouseMoveEvent() function is reimplemented to receive mouse
move events for the widget. If the left mouse button is pressed
@@ -239,7 +239,7 @@
corresponding to the offset between the positions of the current
mouse event and the previous one.
- \snippet examples/widgets/tooltips/sortingbox.cpp 13
+ \snippet widgets/tooltips/sortingbox.cpp 13
The \c mouseReleaseEvent() function is reimplemented to receive
the mouse release events dispatched to the widget. If the left
@@ -250,18 +250,18 @@
now. To move the item further, the user will need to press the
left mouse button again.
- \snippet examples/widgets/tooltips/sortingbox.cpp 14
+ \snippet widgets/tooltips/sortingbox.cpp 14
\codeline
- \snippet examples/widgets/tooltips/sortingbox.cpp 15
+ \snippet widgets/tooltips/sortingbox.cpp 15
\codeline
- \snippet examples/widgets/tooltips/sortingbox.cpp 16
+ \snippet widgets/tooltips/sortingbox.cpp 16
The \c createNewCircle(), \c createNewSquare() and \c
createNewTriangle() slots simply create new shape items, using the
private \c createShapeItem(), \c randomItemPosition() and \c
randomItemColor() functions.
- \snippet examples/widgets/tooltips/sortingbox.cpp 17
+ \snippet widgets/tooltips/sortingbox.cpp 17
In the \c itemAt() function, we run through the list of created
shape items to check if the given position is contained within the
@@ -273,7 +273,7 @@
-1. We run through the list backwards to get the index of the
uppermost shape item in case several items cover the position.
- \snippet examples/widgets/tooltips/sortingbox.cpp 18
+ \snippet widgets/tooltips/sortingbox.cpp 18
The \c moveItemTo() function moves the shape item in motion, and
the parameter \c pos is the position of a mouse event. First we
@@ -289,13 +289,13 @@
rectangle's top left corner, regardless of the item's previous
position.
- \snippet examples/widgets/tooltips/sortingbox.cpp 19
+ \snippet widgets/tooltips/sortingbox.cpp 19
Finally, we update the previous mouse event position, and make a
call to the QWidget::update() function to make the item appear at
its new position.
- \snippet examples/widgets/tooltips/sortingbox.cpp 20
+ \snippet widgets/tooltips/sortingbox.cpp 20
In the \c updateButtonGeometry() function we set the geometry for
the given button. The parameter coordinates define the bottom
@@ -310,7 +310,7 @@
QStyle::pixelMetric() to determine the widget's preferred default
spacing between its child widgets.
- \snippet examples/widgets/tooltips/sortingbox.cpp 21
+ \snippet widgets/tooltips/sortingbox.cpp 21
The \c createShapeItem() function creates a single shape item. It
sets the path, tooltip, position and color, using the item's own
@@ -319,7 +319,7 @@
make it appear with the other items within the \c SortingBox
widget.
- \snippet examples/widgets/tooltips/sortingbox.cpp 22
+ \snippet widgets/tooltips/sortingbox.cpp 22
The \c createToolButton() function is called from the \c
SortingBox constructor. We create a tool button with the given
@@ -327,14 +327,14 @@
and its size is 32 x 32 pixels. Before we return the button, we
connect it to the given slot.
- \snippet examples/widgets/tooltips/sortingbox.cpp 23
+ \snippet widgets/tooltips/sortingbox.cpp 23
The \c initialItemPosition() function is also called from the
constructor. We want the three first items to initially be
centered in the middle of the \c SortingBox widget, and we use
this function to calculate their positions.
- \snippet examples/widgets/tooltips/sortingbox.cpp 24
+ \snippet widgets/tooltips/sortingbox.cpp 24
Whenever the user creates a new shape item, we want the new item
to appear at a random position, and we use the \c
@@ -343,21 +343,21 @@
\c SortingBox widget, using the widget's current width and height
when calculating the random coordinates.
- \snippet examples/widgets/tooltips/sortingbox.cpp 25
+ \snippet widgets/tooltips/sortingbox.cpp 25
As with \c initialItemPosition(), the \c initialItemColor()
function is called from the constructor. The purposes of both
functions are purely cosmetic: We want to control the initial
position and color of the three first items.
- \snippet examples/widgets/tooltips/sortingbox.cpp 26
+ \snippet widgets/tooltips/sortingbox.cpp 26
Finally the \c randomItemColor() function is implemented to give
the shape items the user creates, a random color.
\section1 ShapeItem Class Definition
- \snippet examples/widgets/tooltips/shapeitem.h 0
+ \snippet widgets/tooltips/shapeitem.h 0
The \c ShapeItem class is a custom widget representing one single
shape item. The widget has a path, a position, a color and a
@@ -369,25 +369,25 @@
\section1 ShapeItem Class Implementation
- \snippet examples/widgets/tooltips/shapeitem.cpp 0
+ \snippet widgets/tooltips/shapeitem.cpp 0
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 1
+ \snippet widgets/tooltips/shapeitem.cpp 1
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 2
+ \snippet widgets/tooltips/shapeitem.cpp 2
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 3
+ \snippet widgets/tooltips/shapeitem.cpp 3
This first group of functions simply return the objects that are
requested. The objects are returned as constants, i.e. they cannot
be modified.
- \snippet examples/widgets/tooltips/shapeitem.cpp 4
+ \snippet widgets/tooltips/shapeitem.cpp 4
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 5
+ \snippet widgets/tooltips/shapeitem.cpp 5
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 6
+ \snippet widgets/tooltips/shapeitem.cpp 6
\codeline
- \snippet examples/widgets/tooltips/shapeitem.cpp 7
+ \snippet widgets/tooltips/shapeitem.cpp 7
The last group of functions set or modify the shape item's path,
position, color and tooltip, respectively.
diff --git a/doc/src/examples/trafficlight.qdoc b/examples/widgets/doc/trafficlight.qdoc
index f80225fc848..ec3578abaad 100644
--- a/doc/src/examples/trafficlight.qdoc
+++ b/examples/widgets/doc/trafficlight.qdoc
@@ -39,20 +39,20 @@
one light to another (red to yellow to green to yellow to red again) at
certain intervals.
- \snippet examples/statemachine/trafficlight/main.cpp 0
+ \snippet statemachine/trafficlight/main.cpp 0
The LightWidget class represents a single light of the traffic light. It
provides an \c on property and two slots, turnOn() and turnOff(), to turn
the light on and off, respectively. The widget paints itself in the color
that's passed to the constructor.
- \snippet examples/statemachine/trafficlight/main.cpp 1
+ \snippet statemachine/trafficlight/main.cpp 1
The TrafficLightWidget class represents the visual part of the traffic
light; it's a widget that contains three lights arranged vertically, and
provides accessor functions for these.
- \snippet examples/statemachine/trafficlight/main.cpp 2
+ \snippet statemachine/trafficlight/main.cpp 2
The createLightState() function creates a state that turns a light on when
the state is entered, and off when the state is exited. The state uses a
@@ -64,7 +64,7 @@
\caption This is a caption
\endomit
- \snippet examples/statemachine/trafficlight/main.cpp 3
+ \snippet statemachine/trafficlight/main.cpp 3
The TrafficLight class combines the TrafficLightWidget with a state
machine. The state graph has four states: red-to-yellow, yellow-to-green,
@@ -78,7 +78,7 @@
\caption This is a caption
\endomit
- \snippet examples/statemachine/trafficlight/main.cpp 4
+ \snippet statemachine/trafficlight/main.cpp 4
The main() function constructs a TrafficLight and shows it.
diff --git a/doc/src/examples/transformations.qdoc b/examples/widgets/doc/transformations.qdoc
index 013ebc2e8c9..79681a27992 100644
--- a/doc/src/examples/transformations.qdoc
+++ b/examples/widgets/doc/transformations.qdoc
@@ -76,7 +76,7 @@
transformation matrix, see the \l {Coordinate System} and
QTransform documentation.
- \snippet examples/painting/transformations/renderarea.h 0
+ \snippet painting/transformations/renderarea.h 0
The global \c Operation enum is declared in the \c renderarea.h
file and describes the various transformation operations available
@@ -87,7 +87,7 @@
The \c RenderArea class inherits QWidget, and controls the
rendering of a given shape.
- \snippet examples/painting/transformations/renderarea.h 1
+ \snippet painting/transformations/renderarea.h 1
We declare two public functions, \c setOperations() and
\c setShape(), to be able to specify the \c RenderArea widget's shape
@@ -101,7 +101,7 @@
reimplement the QWidget::paintEvent() event handler to draw the
render area's shape applying the user's transformation choices.
- \snippet examples/painting/transformations/renderarea.h 2
+ \snippet painting/transformations/renderarea.h 2
We also declare several convenience functions to draw the shape,
the coordinate system's outline and the coordinates, and to
@@ -120,7 +120,7 @@
we will take a quick look at the constructor and at the functions
that provides access to the \c RenderArea widget:
- \snippet examples/painting/transformations/renderarea.cpp 0
+ \snippet painting/transformations/renderarea.cpp 0
In the constructor we pass the parent parameter on to the base
class, and customize the font that we will use to render the
@@ -140,18 +140,18 @@
bounding rectangle of the given character relative to the
left-most point on the base line.
- \snippet examples/painting/transformations/renderarea.cpp 1
+ \snippet painting/transformations/renderarea.cpp 1
\codeline
- \snippet examples/painting/transformations/renderarea.cpp 2
+ \snippet painting/transformations/renderarea.cpp 2
In the \c setShape() and \c setOperations() functions we update
the \c RenderArea widget by storing the new value or values
followed by a call to the QWidget::update() slot which schedules a
paint event for processing when Qt returns to the main event loop.
- \snippet examples/painting/transformations/renderarea.cpp 3
+ \snippet painting/transformations/renderarea.cpp 3
\codeline
- \snippet examples/painting/transformations/renderarea.cpp 4
+ \snippet painting/transformations/renderarea.cpp 4
We reimplement the QWidget's \l
{QWidget::minimumSizeHint()}{minimumSizeHint()} and \l
@@ -161,7 +161,7 @@
if there is no layout for this widget, and returns the layout's
minimum size or preferred size, respectively, otherwise.
- \snippet examples/painting/transformations/renderarea.cpp 5
+ \snippet painting/transformations/renderarea.cpp 5
The \c paintEvent() event handler receives the \c RenderArea
widget's paint events. A paint event is a request to repaint all
@@ -179,7 +179,7 @@
ensure that the original shape is renderend with a suitable
margin.
- \snippet examples/painting/transformations/renderarea.cpp 6
+ \snippet painting/transformations/renderarea.cpp 6
Before we start to render the shape, we call the QPainter::save()
function.
@@ -197,11 +197,11 @@
the QPainter::restore() function (i.e. popping the saved state off
the stack).
- \snippet examples/painting/transformations/renderarea.cpp 7
+ \snippet painting/transformations/renderarea.cpp 7
Then we draw the square outline.
- \snippet examples/painting/transformations/renderarea.cpp 8
+ \snippet painting/transformations/renderarea.cpp 8
Since we want the coordinates to correspond with the coordinate
system the shape is rendered within, we must make another call to
@@ -217,11 +217,11 @@
There is no need to save the QPainter state this time since
drawing the coordinates is the last painting operation.
- \snippet examples/painting/transformations/renderarea.cpp 9
+ \snippet painting/transformations/renderarea.cpp 9
\codeline
- \snippet examples/painting/transformations/renderarea.cpp 10
+ \snippet painting/transformations/renderarea.cpp 10
\codeline
- \snippet examples/painting/transformations/renderarea.cpp 11
+ \snippet painting/transformations/renderarea.cpp 11
The \c drawCoordinates(), \c drawOutline() and \c drawShape() are
convenience functions called from the \c paintEvent() event
@@ -229,7 +229,7 @@
operations and how to display basic graphics primitives, see the
\l {painting/basicdrawing}{Basic Drawing} example.
- \snippet examples/painting/transformations/renderarea.cpp 12
+ \snippet painting/transformations/renderarea.cpp 12
The \c transformPainter() convenience function is also called from
the \c paintEvent() event handler, and transforms the given
@@ -247,7 +247,7 @@
addition to all the transformations applied to the \c RenderArea
widgets to their left.
- \snippet examples/painting/transformations/window.h 0
+ \snippet painting/transformations/window.h 0
We declare two public slots to make the application able to
respond to user interaction, updating the displayed \c RenderArea
@@ -259,7 +259,7 @@
\c shapeSelected() slot updates the \c RenderArea widgets' shapes
whenever the user changes the preferred shape.
- \snippet examples/painting/transformations/window.h 1
+ \snippet painting/transformations/window.h 1
We also declare a private convenience function, \c setupShapes(),
that is used when constructing the \c Window widget, and we
@@ -274,7 +274,7 @@
In the constructor we create and initialize the application's
components:
- \snippet examples/painting/transformations/window.cpp 0
+ \snippet painting/transformations/window.cpp 0
First we create the \c RenderArea widget that will render the
shape in the default coordinate system. We also create the
@@ -283,7 +283,7 @@
themselves are created at the end of the constructor, using the
\c setupShapes() convenience function.
- \snippet examples/painting/transformations/window.cpp 1
+ \snippet painting/transformations/window.cpp 1
Then we create the \c RenderArea widgets that will render their
shapes with coordinate tranformations. By default the applied
@@ -298,7 +298,7 @@
operationChanged() slot to update the application whenever the
user changes the selected transformation operations.
- \snippet examples/painting/transformations/window.cpp 2
+ \snippet painting/transformations/window.cpp 2
Finally, we set the layout for the application window using the
QWidget::setLayout() function, construct the available shapes
@@ -307,13 +307,13 @@
\c shapeSelected() slot before we set the window title.
- \snippet examples/painting/transformations/window.cpp 3
- \snippet examples/painting/transformations/window.cpp 4
- \snippet examples/painting/transformations/window.cpp 5
- \snippet examples/painting/transformations/window.cpp 6
+ \snippet painting/transformations/window.cpp 3
+ \snippet painting/transformations/window.cpp 4
+ \snippet painting/transformations/window.cpp 5
+ \snippet painting/transformations/window.cpp 6
\dots
- \snippet examples/painting/transformations/window.cpp 7
+ \snippet painting/transformations/window.cpp 7
The \c setupShapes() function is called from the constructor and
create the QPainterPath objects representing the shapes that are
@@ -327,7 +327,7 @@
shapeSelected() slot to update the application when the user
changes the preferred shape.
- \snippet examples/painting/transformations/window.cpp 8
+ \snippet painting/transformations/window.cpp 8
The public \c operationChanged() slot is called whenever the user
changes the selected operations.
@@ -342,7 +342,7 @@
associated operation to a QList of transformations which we apply
to the widget before proceeding to the next.
- \snippet examples/painting/transformations/window.cpp 9
+ \snippet painting/transformations/window.cpp 9
The \c shapeSelected() slot is called whenever the user changes
the preferred shape, updating the \c RenderArea widgets using
diff --git a/doc/src/examples/trivialwizard.qdoc b/examples/widgets/doc/trivialwizard.qdoc
index 5835b639953..e27f9cadc25 100644
--- a/doc/src/examples/trivialwizard.qdoc
+++ b/examples/widgets/doc/trivialwizard.qdoc
@@ -45,7 +45,7 @@
A QVBoxLayout is used to hold the \c label. This \c page is returned
when the \c createIntroPage() function is called.
- \snippet examples/dialogs/trivialwizard/trivialwizard.cpp 0
+ \snippet dialogs/trivialwizard/trivialwizard.cpp 0
\section1 Registration Page
@@ -56,7 +56,7 @@
and an e-mail address. A QGridLayout is used to hold the QLabel and
QLineEdit objects.
- \snippet examples/dialogs/trivialwizard/trivialwizard.cpp 2
+ \snippet dialogs/trivialwizard/trivialwizard.cpp 2
\section1 Conclusion Page
@@ -67,7 +67,7 @@
QLabel is used to inform the user that the registration process has
completed successfully.
- \snippet examples/dialogs/trivialwizard/trivialwizard.cpp 6
+ \snippet dialogs/trivialwizard/trivialwizard.cpp 6
\section1 \c main() Function
@@ -76,7 +76,7 @@
set to "Trivial Wizard" and its \c show() function is invoked to display
it.
- \snippet examples/dialogs/trivialwizard/trivialwizard.cpp 10
+ \snippet dialogs/trivialwizard/trivialwizard.cpp 10
\sa QWizard, {Class Wizard Example}, {License Wizard Example}
*/
diff --git a/doc/src/examples/twowaybutton.qdoc b/examples/widgets/doc/twowaybutton.qdoc
index b0c0c4910db..40f8c6f1f32 100644
--- a/doc/src/examples/twowaybutton.qdoc
+++ b/examples/widgets/doc/twowaybutton.qdoc
@@ -33,34 +33,34 @@
Framework} to implement a simple state machine that toggles the current
state when a button is clicked.
- \snippet examples/statemachine/twowaybutton/main.cpp 0
+ \snippet statemachine/twowaybutton/main.cpp 0
The application's main() function begins by constructing the application
object, a button and a state machine.
- \snippet examples/statemachine/twowaybutton/main.cpp 1
+ \snippet statemachine/twowaybutton/main.cpp 1
The state machine has two states; \c on and \c off. When either state is
entered, the text of the button will be set accordingly.
- \snippet examples/statemachine/twowaybutton/main.cpp 2
+ \snippet statemachine/twowaybutton/main.cpp 2
When the state machine is in the \c off state and the button is clicked,
it will transition to the \c on state; when the state machine is in the \c
on state and the button is clicked, it will transition to the \c off
state.
- \snippet examples/statemachine/twowaybutton/main.cpp 3
+ \snippet statemachine/twowaybutton/main.cpp 3
The states are added to the state machine; they become top-level (sibling)
states.
- \snippet examples/statemachine/twowaybutton/main.cpp 4
+ \snippet statemachine/twowaybutton/main.cpp 4
The initial state is \c off; this is the state the state machine will
immediately transition to once the state machine is started.
- \snippet examples/statemachine/twowaybutton/main.cpp 5
+ \snippet statemachine/twowaybutton/main.cpp 5
Finally, the button is resized and made visible, and the application event
loop is entered.
diff --git a/doc/src/examples/wiggly.qdoc b/examples/widgets/doc/wiggly.qdoc
index 677e8b08ca7..e84ab00e618 100644
--- a/doc/src/examples/wiggly.qdoc
+++ b/examples/widgets/doc/wiggly.qdoc
@@ -60,14 +60,14 @@
\section1 Dialog Class Definition
- \snippet examples/widgets/wiggly/dialog.h 0
+ \snippet widgets/wiggly/dialog.h 0
The \c Dialog class provides a dialog widget that allows the user
to enter a text. The text is then rendered by \c WigglyWidget.
\section1 Dialog Class Implementation
- \snippet examples/widgets/wiggly/dialog.cpp 0
+ \snippet widgets/wiggly/dialog.cpp 0
In the constructor we create a wiggly widget along with a
\l{QLineEdit}{line edit}, and we put the two widgets in a
@@ -79,7 +79,7 @@
\section1 WigglyWidget Class Definition
- \snippet examples/widgets/wiggly/wigglywidget.h 0
+ \snippet widgets/wiggly/wigglywidget.h 0
The \c WigglyWidget class provides the wiggly line displaying the
text. We subclass QWidget and reimplement the standard \l
@@ -96,7 +96,7 @@
\section1 WigglyWidget Class Implementation
- \snippet examples/widgets/wiggly/wigglywidget.cpp 0
+ \snippet widgets/wiggly/wigglywidget.cpp 0
In the constructor, we make the widget's background slightly
lighter than the usual background using the QPalette::Midlight
@@ -109,8 +109,8 @@
timer events generated when the timer times out (every 60
milliseconds).
- \snippet examples/widgets/wiggly/wigglywidget.cpp 1
- \snippet examples/widgets/wiggly/wigglywidget.cpp 2
+ \snippet widgets/wiggly/wigglywidget.cpp 1
+ \snippet widgets/wiggly/wigglywidget.cpp 2
The \c paintEvent() function is called whenever a QPaintEvent is
sent to the widget. Paint events are sent to widgets that need to
@@ -133,8 +133,8 @@
font below the base line). If the descent equals the ascent, they
cancel out each other and the base line is at \c height() / 2.
- \snippet examples/widgets/wiggly/wigglywidget.cpp 3
- \snippet examples/widgets/wiggly/wigglywidget.cpp 4
+ \snippet widgets/wiggly/wigglywidget.cpp 3
+ \snippet widgets/wiggly/wigglywidget.cpp 4
Each time the \c paintEvent() function is called, we create a
QPainter object \c painter to draw the contents of the widget.
@@ -150,8 +150,8 @@
'V'). The result is that the text isn't perfectly centered. You
can verify this by typing "AVAVAVAVAVAV" in the line edit.
- \snippet examples/widgets/wiggly/wigglywidget.cpp 5
- \snippet examples/widgets/wiggly/wigglywidget.cpp 6
+ \snippet widgets/wiggly/wigglywidget.cpp 5
+ \snippet widgets/wiggly/wigglywidget.cpp 6
The \c timerEvent() function receives all the timer events that
are generated for this widget. If a timer event is sent from the
diff --git a/doc/src/examples/windowflags.qdoc b/examples/widgets/doc/windowflags.qdoc
index 21b983d4e18..e85842b30ae 100644
--- a/doc/src/examples/windowflags.qdoc
+++ b/examples/widgets/doc/windowflags.qdoc
@@ -58,7 +58,7 @@
\section1 ControllerWindow Class Definition
- \snippet examples/widgets/windowflags/controllerwindow.h 0
+ \snippet widgets/windowflags/controllerwindow.h 0
The \c ControllerWindow class inherits QWidget. The widget allows
the user to choose among the available window flags, and displays
@@ -83,7 +83,7 @@
\section1 ControllerWindow Class Implementation
- \snippet examples/widgets/windowflags/controllerwindow.cpp 0
+ \snippet widgets/windowflags/controllerwindow.cpp 0
In the constructor we first create the preview window. Then we
create the group boxes containing the available window flags using
@@ -96,21 +96,21 @@
QVBoxLayout, set the window title and refresh the preview window
using the \c updatePreview() slot.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 1
- \snippet examples/widgets/windowflags/controllerwindow.cpp 2
+ \snippet widgets/windowflags/controllerwindow.cpp 1
+ \snippet widgets/windowflags/controllerwindow.cpp 2
The \c updatePreview() slot is called whenever the user changes
any of the window flags. First we create an empty Qt::WindowFlags
\c flags, then we determine which one of the types that is checked
and add it to \c flags.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 3
+ \snippet widgets/windowflags/controllerwindow.cpp 3
We also determine which of the hints that are checked, and add
them to \c flags using an OR operator. We use \c flags to set the
window flags for the preview window.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 4
+ \snippet widgets/windowflags/controllerwindow.cpp 4
We adjust the position of the preview window. The reason we do
that, is that playing around with the window's frame may on some
@@ -126,7 +126,7 @@
\printuntil /^\}/
\endomit
- \snippet examples/widgets/windowflags/controllerwindow.cpp 5
+ \snippet widgets/windowflags/controllerwindow.cpp 5
The private \c createTypeGroupBox() function is called from the
constructor.
@@ -145,7 +145,7 @@
hints only affect top-level windows, we abandon the Qt::Widget
type.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 6
+ \snippet widgets/windowflags/controllerwindow.cpp 6
The private \c createHintsGroupBox() function is also called from
the constructor.
@@ -156,7 +156,7 @@
checkboxes into a QGridLayout and install the layout on the group
box.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 7
+ \snippet widgets/windowflags/controllerwindow.cpp 7
The private \c createCheckBox() function is called from \c
createHintsGroupBox().
@@ -165,7 +165,7 @@
the private \c updatePreview() slot, and return a pointer to the
checkbox.
- \snippet examples/widgets/windowflags/controllerwindow.cpp 8
+ \snippet widgets/windowflags/controllerwindow.cpp 8
In the private \c createRadioButton() function it is a
QRadioButton we create with the provided text, and connect to the
@@ -174,7 +174,7 @@
\section1 PreviewWindow Class Definition
- \snippet examples/widgets/windowflags/previewwindow.h 0
+ \snippet widgets/windowflags/previewwindow.h 0
The \c PreviewWindow class inherits QWidget. It is a custom widget
that displays the names of its currently set window flags in a
@@ -189,7 +189,7 @@
\section1 PreviewWindow Class Implementation
- \snippet examples/widgets/windowflags/previewwindow.cpp 0
+ \snippet widgets/windowflags/previewwindow.cpp 0
In the constructor, we first create a QTextEdit and make sure that
it is read-only.
@@ -205,7 +205,7 @@
Then we create the \uicontrol Close button, and put both the widgets
into a QVBoxLayout before we set the window title.
- \snippet examples/widgets/windowflags/previewwindow.cpp 1
+ \snippet widgets/windowflags/previewwindow.cpp 1
In our reimplementation of the \c setWindowFlags() function, we
first set the widgets flags using the QWidget::setWindowFlags()
diff --git a/examples/draganddrop/README b/examples/widgets/draganddrop/README
index 90dc55bf2f9..90dc55bf2f9 100644
--- a/examples/draganddrop/README
+++ b/examples/widgets/draganddrop/README
diff --git a/examples/draganddrop/delayedencoding/delayedencoding.desktop b/examples/widgets/draganddrop/delayedencoding/delayedencoding.desktop
index 629c497b6b5..629c497b6b5 100644
--- a/examples/draganddrop/delayedencoding/delayedencoding.desktop
+++ b/examples/widgets/draganddrop/delayedencoding/delayedencoding.desktop
diff --git a/examples/draganddrop/draganddrop.pro b/examples/widgets/draganddrop/draganddrop.pro
index a209ae31e42..a209ae31e42 100644
--- a/examples/draganddrop/draganddrop.pro
+++ b/examples/widgets/draganddrop/draganddrop.pro
diff --git a/examples/draganddrop/draggableicons/draggableicons.desktop b/examples/widgets/draganddrop/draggableicons/draggableicons.desktop
index d14f758ce6b..d14f758ce6b 100644
--- a/examples/draganddrop/draggableicons/draggableicons.desktop
+++ b/examples/widgets/draganddrop/draggableicons/draggableicons.desktop
diff --git a/examples/draganddrop/draggableicons/draggableicons.pro b/examples/widgets/draganddrop/draggableicons/draggableicons.pro
index 9f4156135fc..9f4156135fc 100644
--- a/examples/draganddrop/draggableicons/draggableicons.pro
+++ b/examples/widgets/draganddrop/draggableicons/draggableicons.pro
diff --git a/examples/draganddrop/draggableicons/draggableicons.qrc b/examples/widgets/draganddrop/draggableicons/draggableicons.qrc
index 63f84ac066d..63f84ac066d 100644
--- a/examples/draganddrop/draggableicons/draggableicons.qrc
+++ b/examples/widgets/draganddrop/draggableicons/draggableicons.qrc
diff --git a/examples/draganddrop/draggableicons/dragwidget.cpp b/examples/widgets/draganddrop/draggableicons/dragwidget.cpp
index 93a02a4647d..93a02a4647d 100644
--- a/examples/draganddrop/draggableicons/dragwidget.cpp
+++ b/examples/widgets/draganddrop/draggableicons/dragwidget.cpp
diff --git a/examples/draganddrop/draggableicons/dragwidget.h b/examples/widgets/draganddrop/draggableicons/dragwidget.h
index b2fae51c5e1..b2fae51c5e1 100644
--- a/examples/draganddrop/draggableicons/dragwidget.h
+++ b/examples/widgets/draganddrop/draggableicons/dragwidget.h
diff --git a/examples/draganddrop/draggableicons/images/boat.png b/examples/widgets/draganddrop/draggableicons/images/boat.png
index 46c894f06bc..46c894f06bc 100644
--- a/examples/draganddrop/draggableicons/images/boat.png
+++ b/examples/widgets/draganddrop/draggableicons/images/boat.png
Binary files differ
diff --git a/examples/draganddrop/draggableicons/images/car.png b/examples/widgets/draganddrop/draggableicons/images/car.png
index 3cb35e56cb9..3cb35e56cb9 100644
--- a/examples/draganddrop/draggableicons/images/car.png
+++ b/examples/widgets/draganddrop/draggableicons/images/car.png
Binary files differ
diff --git a/examples/draganddrop/draggableicons/images/house.png b/examples/widgets/draganddrop/draggableicons/images/house.png
index ee9d5b11598..ee9d5b11598 100644
--- a/examples/draganddrop/draggableicons/images/house.png
+++ b/examples/widgets/draganddrop/draggableicons/images/house.png
Binary files differ
diff --git a/examples/draganddrop/draggableicons/main.cpp b/examples/widgets/draganddrop/draggableicons/main.cpp
index 5a7120c9d5e..5a7120c9d5e 100644
--- a/examples/draganddrop/draggableicons/main.cpp
+++ b/examples/widgets/draganddrop/draggableicons/main.cpp
diff --git a/examples/draganddrop/draggabletext/draggabletext.desktop b/examples/widgets/draganddrop/draggabletext/draggabletext.desktop
index ceda807604b..ceda807604b 100644
--- a/examples/draganddrop/draggabletext/draggabletext.desktop
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.desktop
diff --git a/examples/draganddrop/draggabletext/draggabletext.pro b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
index 1fd8e5ce6e9..1fd8e5ce6e9 100644
--- a/examples/draganddrop/draggabletext/draggabletext.pro
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
diff --git a/examples/draganddrop/draggabletext/draggabletext.qrc b/examples/widgets/draganddrop/draggabletext/draggabletext.qrc
index b72217d701a..b72217d701a 100644
--- a/examples/draganddrop/draggabletext/draggabletext.qrc
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.qrc
diff --git a/examples/draganddrop/draggabletext/draglabel.cpp b/examples/widgets/draganddrop/draggabletext/draglabel.cpp
index 803e6591575..803e6591575 100644
--- a/examples/draganddrop/draggabletext/draglabel.cpp
+++ b/examples/widgets/draganddrop/draggabletext/draglabel.cpp
diff --git a/examples/draganddrop/draggabletext/draglabel.h b/examples/widgets/draganddrop/draggabletext/draglabel.h
index e067a376526..e067a376526 100644
--- a/examples/draganddrop/draggabletext/draglabel.h
+++ b/examples/widgets/draganddrop/draggabletext/draglabel.h
diff --git a/examples/draganddrop/draggabletext/dragwidget.cpp b/examples/widgets/draganddrop/draggabletext/dragwidget.cpp
index 60d84ebb5b9..60d84ebb5b9 100644
--- a/examples/draganddrop/draggabletext/dragwidget.cpp
+++ b/examples/widgets/draganddrop/draggabletext/dragwidget.cpp
diff --git a/examples/draganddrop/draggabletext/dragwidget.h b/examples/widgets/draganddrop/draggabletext/dragwidget.h
index deef7fe4dd2..deef7fe4dd2 100644
--- a/examples/draganddrop/draggabletext/dragwidget.h
+++ b/examples/widgets/draganddrop/draggabletext/dragwidget.h
diff --git a/examples/draganddrop/draggabletext/main.cpp b/examples/widgets/draganddrop/draggabletext/main.cpp
index 3c57afff6a1..3c57afff6a1 100644
--- a/examples/draganddrop/draggabletext/main.cpp
+++ b/examples/widgets/draganddrop/draggabletext/main.cpp
diff --git a/examples/draganddrop/draggabletext/words.txt b/examples/widgets/draganddrop/draggabletext/words.txt
index 19b8b0325b5..19b8b0325b5 100644
--- a/examples/draganddrop/draggabletext/words.txt
+++ b/examples/widgets/draganddrop/draggabletext/words.txt
diff --git a/examples/draganddrop/dropsite/droparea.cpp b/examples/widgets/draganddrop/dropsite/droparea.cpp
index 95bbd3000c6..95bbd3000c6 100644
--- a/examples/draganddrop/dropsite/droparea.cpp
+++ b/examples/widgets/draganddrop/dropsite/droparea.cpp
diff --git a/examples/draganddrop/dropsite/droparea.h b/examples/widgets/draganddrop/dropsite/droparea.h
index e1586990dfd..e1586990dfd 100644
--- a/examples/draganddrop/dropsite/droparea.h
+++ b/examples/widgets/draganddrop/dropsite/droparea.h
diff --git a/examples/draganddrop/dropsite/dropsite.desktop b/examples/widgets/draganddrop/dropsite/dropsite.desktop
index 70a192f2b11..70a192f2b11 100644
--- a/examples/draganddrop/dropsite/dropsite.desktop
+++ b/examples/widgets/draganddrop/dropsite/dropsite.desktop
diff --git a/examples/draganddrop/dropsite/dropsite.pro b/examples/widgets/draganddrop/dropsite/dropsite.pro
index 8198b19e79c..8198b19e79c 100644
--- a/examples/draganddrop/dropsite/dropsite.pro
+++ b/examples/widgets/draganddrop/dropsite/dropsite.pro
diff --git a/examples/draganddrop/dropsite/dropsitewindow.cpp b/examples/widgets/draganddrop/dropsite/dropsitewindow.cpp
index f7fc5aa1ab9..f7fc5aa1ab9 100644
--- a/examples/draganddrop/dropsite/dropsitewindow.cpp
+++ b/examples/widgets/draganddrop/dropsite/dropsitewindow.cpp
diff --git a/examples/draganddrop/dropsite/dropsitewindow.h b/examples/widgets/draganddrop/dropsite/dropsitewindow.h
index 049e9593f45..049e9593f45 100644
--- a/examples/draganddrop/dropsite/dropsitewindow.h
+++ b/examples/widgets/draganddrop/dropsite/dropsitewindow.h
diff --git a/examples/draganddrop/dropsite/main.cpp b/examples/widgets/draganddrop/dropsite/main.cpp
index f6220fa42ef..f6220fa42ef 100644
--- a/examples/draganddrop/dropsite/main.cpp
+++ b/examples/widgets/draganddrop/dropsite/main.cpp
diff --git a/examples/draganddrop/fridgemagnets/draglabel.cpp b/examples/widgets/draganddrop/fridgemagnets/draglabel.cpp
index a4e52ed635f..a4e52ed635f 100644
--- a/examples/draganddrop/fridgemagnets/draglabel.cpp
+++ b/examples/widgets/draganddrop/fridgemagnets/draglabel.cpp
diff --git a/examples/draganddrop/fridgemagnets/draglabel.h b/examples/widgets/draganddrop/fridgemagnets/draglabel.h
index ecbd02d8969..ecbd02d8969 100644
--- a/examples/draganddrop/fridgemagnets/draglabel.h
+++ b/examples/widgets/draganddrop/fridgemagnets/draglabel.h
diff --git a/examples/draganddrop/fridgemagnets/dragwidget.cpp b/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp
index 434fcecb22e..434fcecb22e 100644
--- a/examples/draganddrop/fridgemagnets/dragwidget.cpp
+++ b/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp
diff --git a/examples/draganddrop/fridgemagnets/dragwidget.h b/examples/widgets/draganddrop/fridgemagnets/dragwidget.h
index a3e3ced25ef..a3e3ced25ef 100644
--- a/examples/draganddrop/fridgemagnets/dragwidget.h
+++ b/examples/widgets/draganddrop/fridgemagnets/dragwidget.h
diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets.desktop b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.desktop
index a240590c6b6..a240590c6b6 100644
--- a/examples/draganddrop/fridgemagnets/fridgemagnets.desktop
+++ b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.desktop
diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets.pro b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro
index 2bbfdf0b3ac..2bbfdf0b3ac 100644
--- a/examples/draganddrop/fridgemagnets/fridgemagnets.pro
+++ b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro
diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets.qrc b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.qrc
index b72217d701a..b72217d701a 100644
--- a/examples/draganddrop/fridgemagnets/fridgemagnets.qrc
+++ b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.qrc
diff --git a/examples/draganddrop/fridgemagnets/main.cpp b/examples/widgets/draganddrop/fridgemagnets/main.cpp
index 692a5e394a0..692a5e394a0 100644
--- a/examples/draganddrop/fridgemagnets/main.cpp
+++ b/examples/widgets/draganddrop/fridgemagnets/main.cpp
diff --git a/examples/draganddrop/fridgemagnets/words.txt b/examples/widgets/draganddrop/fridgemagnets/words.txt
index a7e1632b093..a7e1632b093 100644
--- a/examples/draganddrop/fridgemagnets/words.txt
+++ b/examples/widgets/draganddrop/fridgemagnets/words.txt
diff --git a/examples/draganddrop/puzzle/example.jpg b/examples/widgets/draganddrop/puzzle/example.jpg
index e09fb707570..e09fb707570 100644
--- a/examples/draganddrop/puzzle/example.jpg
+++ b/examples/widgets/draganddrop/puzzle/example.jpg
Binary files differ
diff --git a/examples/draganddrop/puzzle/main.cpp b/examples/widgets/draganddrop/puzzle/main.cpp
index 31b71428193..31b71428193 100644
--- a/examples/draganddrop/puzzle/main.cpp
+++ b/examples/widgets/draganddrop/puzzle/main.cpp
diff --git a/examples/draganddrop/puzzle/mainwindow.cpp b/examples/widgets/draganddrop/puzzle/mainwindow.cpp
index 0540aaef9f8..0540aaef9f8 100644
--- a/examples/draganddrop/puzzle/mainwindow.cpp
+++ b/examples/widgets/draganddrop/puzzle/mainwindow.cpp
diff --git a/examples/draganddrop/puzzle/mainwindow.h b/examples/widgets/draganddrop/puzzle/mainwindow.h
index c7ce2c8ef3a..c7ce2c8ef3a 100644
--- a/examples/draganddrop/puzzle/mainwindow.h
+++ b/examples/widgets/draganddrop/puzzle/mainwindow.h
diff --git a/examples/draganddrop/puzzle/pieceslist.cpp b/examples/widgets/draganddrop/puzzle/pieceslist.cpp
index 8e0892aae6c..8e0892aae6c 100644
--- a/examples/draganddrop/puzzle/pieceslist.cpp
+++ b/examples/widgets/draganddrop/puzzle/pieceslist.cpp
diff --git a/examples/draganddrop/puzzle/pieceslist.h b/examples/widgets/draganddrop/puzzle/pieceslist.h
index 3c6b042b4ea..3c6b042b4ea 100644
--- a/examples/draganddrop/puzzle/pieceslist.h
+++ b/examples/widgets/draganddrop/puzzle/pieceslist.h
diff --git a/examples/draganddrop/puzzle/puzzle.desktop b/examples/widgets/draganddrop/puzzle/puzzle.desktop
index f6765e1e013..f6765e1e013 100644
--- a/examples/draganddrop/puzzle/puzzle.desktop
+++ b/examples/widgets/draganddrop/puzzle/puzzle.desktop
diff --git a/examples/draganddrop/puzzle/puzzle.pro b/examples/widgets/draganddrop/puzzle/puzzle.pro
index 7c69a41a39f..7c69a41a39f 100644
--- a/examples/draganddrop/puzzle/puzzle.pro
+++ b/examples/widgets/draganddrop/puzzle/puzzle.pro
diff --git a/examples/draganddrop/puzzle/puzzle.qrc b/examples/widgets/draganddrop/puzzle/puzzle.qrc
index 4076cec0267..4076cec0267 100644
--- a/examples/draganddrop/puzzle/puzzle.qrc
+++ b/examples/widgets/draganddrop/puzzle/puzzle.qrc
diff --git a/examples/draganddrop/puzzle/puzzlewidget.cpp b/examples/widgets/draganddrop/puzzle/puzzlewidget.cpp
index 2e39f84e9e7..2e39f84e9e7 100644
--- a/examples/draganddrop/puzzle/puzzlewidget.cpp
+++ b/examples/widgets/draganddrop/puzzle/puzzlewidget.cpp
diff --git a/examples/draganddrop/puzzle/puzzlewidget.h b/examples/widgets/draganddrop/puzzle/puzzlewidget.h
index 1c0fc77a5f9..1c0fc77a5f9 100644
--- a/examples/draganddrop/puzzle/puzzlewidget.h
+++ b/examples/widgets/draganddrop/puzzle/puzzlewidget.h
diff --git a/examples/effects/blurpicker/blureffect.cpp b/examples/widgets/effects/blurpicker/blureffect.cpp
index d9a757722b8..d9a757722b8 100644
--- a/examples/effects/blurpicker/blureffect.cpp
+++ b/examples/widgets/effects/blurpicker/blureffect.cpp
diff --git a/examples/effects/blurpicker/blureffect.h b/examples/widgets/effects/blurpicker/blureffect.h
index 6cef9df4b51..6cef9df4b51 100644
--- a/examples/effects/blurpicker/blureffect.h
+++ b/examples/widgets/effects/blurpicker/blureffect.h
diff --git a/examples/effects/blurpicker/blurpicker.cpp b/examples/widgets/effects/blurpicker/blurpicker.cpp
index ab56b241f83..ab56b241f83 100644
--- a/examples/effects/blurpicker/blurpicker.cpp
+++ b/examples/widgets/effects/blurpicker/blurpicker.cpp
diff --git a/examples/effects/blurpicker/blurpicker.desktop b/examples/widgets/effects/blurpicker/blurpicker.desktop
index 0863ef7ba8a..0863ef7ba8a 100644
--- a/examples/effects/blurpicker/blurpicker.desktop
+++ b/examples/widgets/effects/blurpicker/blurpicker.desktop
diff --git a/examples/effects/blurpicker/blurpicker.h b/examples/widgets/effects/blurpicker/blurpicker.h
index c0df0814d03..c0df0814d03 100644
--- a/examples/effects/blurpicker/blurpicker.h
+++ b/examples/widgets/effects/blurpicker/blurpicker.h
diff --git a/examples/effects/blurpicker/blurpicker.pro b/examples/widgets/effects/blurpicker/blurpicker.pro
index c477ea6e399..c477ea6e399 100644
--- a/examples/effects/blurpicker/blurpicker.pro
+++ b/examples/widgets/effects/blurpicker/blurpicker.pro
diff --git a/examples/effects/blurpicker/blurpicker.qrc b/examples/widgets/effects/blurpicker/blurpicker.qrc
index e88eaca9663..e88eaca9663 100644
--- a/examples/effects/blurpicker/blurpicker.qrc
+++ b/examples/widgets/effects/blurpicker/blurpicker.qrc
diff --git a/examples/effects/blurpicker/images/README.txt b/examples/widgets/effects/blurpicker/images/README.txt
index 0927e177d28..0927e177d28 100644
--- a/examples/effects/blurpicker/images/README.txt
+++ b/examples/widgets/effects/blurpicker/images/README.txt
diff --git a/examples/effects/blurpicker/images/accessories-calculator.png b/examples/widgets/effects/blurpicker/images/accessories-calculator.png
index 4e7661f65cb..4e7661f65cb 100644
--- a/examples/effects/blurpicker/images/accessories-calculator.png
+++ b/examples/widgets/effects/blurpicker/images/accessories-calculator.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/accessories-text-editor.png b/examples/widgets/effects/blurpicker/images/accessories-text-editor.png
index 33bef0bc17e..33bef0bc17e 100644
--- a/examples/effects/blurpicker/images/accessories-text-editor.png
+++ b/examples/widgets/effects/blurpicker/images/accessories-text-editor.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/background.jpg b/examples/widgets/effects/blurpicker/images/background.jpg
index e75b38899d3..e75b38899d3 100644
--- a/examples/effects/blurpicker/images/background.jpg
+++ b/examples/widgets/effects/blurpicker/images/background.jpg
Binary files differ
diff --git a/examples/effects/blurpicker/images/help-browser.png b/examples/widgets/effects/blurpicker/images/help-browser.png
index 8ef4fae91b4..8ef4fae91b4 100644
--- a/examples/effects/blurpicker/images/help-browser.png
+++ b/examples/widgets/effects/blurpicker/images/help-browser.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/internet-group-chat.png b/examples/widgets/effects/blurpicker/images/internet-group-chat.png
index dd92d939476..dd92d939476 100644
--- a/examples/effects/blurpicker/images/internet-group-chat.png
+++ b/examples/widgets/effects/blurpicker/images/internet-group-chat.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/internet-mail.png b/examples/widgets/effects/blurpicker/images/internet-mail.png
index 7e6b93be83f..7e6b93be83f 100644
--- a/examples/effects/blurpicker/images/internet-mail.png
+++ b/examples/widgets/effects/blurpicker/images/internet-mail.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/internet-web-browser.png b/examples/widgets/effects/blurpicker/images/internet-web-browser.png
index a979a92b4f3..a979a92b4f3 100644
--- a/examples/effects/blurpicker/images/internet-web-browser.png
+++ b/examples/widgets/effects/blurpicker/images/internet-web-browser.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/office-calendar.png b/examples/widgets/effects/blurpicker/images/office-calendar.png
index e09590682ba..e09590682ba 100644
--- a/examples/effects/blurpicker/images/office-calendar.png
+++ b/examples/widgets/effects/blurpicker/images/office-calendar.png
Binary files differ
diff --git a/examples/effects/blurpicker/images/system-users.png b/examples/widgets/effects/blurpicker/images/system-users.png
index a7f630a5bd2..a7f630a5bd2 100644
--- a/examples/effects/blurpicker/images/system-users.png
+++ b/examples/widgets/effects/blurpicker/images/system-users.png
Binary files differ
diff --git a/examples/effects/blurpicker/main.cpp b/examples/widgets/effects/blurpicker/main.cpp
index 662800596db..662800596db 100644
--- a/examples/effects/blurpicker/main.cpp
+++ b/examples/widgets/effects/blurpicker/main.cpp
diff --git a/examples/effects/effects.pro b/examples/widgets/effects/effects.pro
index db7b8a723e8..db7b8a723e8 100644
--- a/examples/effects/effects.pro
+++ b/examples/widgets/effects/effects.pro
diff --git a/examples/effects/fademessage/README.txt b/examples/widgets/effects/fademessage/README.txt
index f639e765084..f639e765084 100644
--- a/examples/effects/fademessage/README.txt
+++ b/examples/widgets/effects/fademessage/README.txt
diff --git a/examples/effects/fademessage/background.jpg b/examples/widgets/effects/fademessage/background.jpg
index 9884233a29c..9884233a29c 100644
--- a/examples/effects/fademessage/background.jpg
+++ b/examples/widgets/effects/fademessage/background.jpg
Binary files differ
diff --git a/examples/effects/fademessage/fademessage.cpp b/examples/widgets/effects/fademessage/fademessage.cpp
index 0af0a57904b..0af0a57904b 100644
--- a/examples/effects/fademessage/fademessage.cpp
+++ b/examples/widgets/effects/fademessage/fademessage.cpp
diff --git a/examples/effects/fademessage/fademessage.desktop b/examples/widgets/effects/fademessage/fademessage.desktop
index aa22ad79127..aa22ad79127 100644
--- a/examples/effects/fademessage/fademessage.desktop
+++ b/examples/widgets/effects/fademessage/fademessage.desktop
diff --git a/examples/effects/fademessage/fademessage.h b/examples/widgets/effects/fademessage/fademessage.h
index 635f57a7257..635f57a7257 100644
--- a/examples/effects/fademessage/fademessage.h
+++ b/examples/widgets/effects/fademessage/fademessage.h
diff --git a/examples/effects/fademessage/fademessage.pro b/examples/widgets/effects/fademessage/fademessage.pro
index 98161e0be4e..98161e0be4e 100644
--- a/examples/effects/fademessage/fademessage.pro
+++ b/examples/widgets/effects/fademessage/fademessage.pro
diff --git a/examples/effects/fademessage/fademessage.qrc b/examples/widgets/effects/fademessage/fademessage.qrc
index 9efea6a67dc..9efea6a67dc 100644
--- a/examples/effects/fademessage/fademessage.qrc
+++ b/examples/widgets/effects/fademessage/fademessage.qrc
diff --git a/examples/effects/fademessage/main.cpp b/examples/widgets/effects/fademessage/main.cpp
index d755ebeb7b8..d755ebeb7b8 100644
--- a/examples/effects/fademessage/main.cpp
+++ b/examples/widgets/effects/fademessage/main.cpp
diff --git a/examples/effects/lighting/lighting.cpp b/examples/widgets/effects/lighting/lighting.cpp
index 713d0e0ec92..713d0e0ec92 100644
--- a/examples/effects/lighting/lighting.cpp
+++ b/examples/widgets/effects/lighting/lighting.cpp
diff --git a/examples/effects/lighting/lighting.desktop b/examples/widgets/effects/lighting/lighting.desktop
index 806b3deca0c..806b3deca0c 100644
--- a/examples/effects/lighting/lighting.desktop
+++ b/examples/widgets/effects/lighting/lighting.desktop
diff --git a/examples/effects/lighting/lighting.h b/examples/widgets/effects/lighting/lighting.h
index 2ed0d5ac12b..2ed0d5ac12b 100644
--- a/examples/effects/lighting/lighting.h
+++ b/examples/widgets/effects/lighting/lighting.h
diff --git a/examples/effects/lighting/lighting.pro b/examples/widgets/effects/lighting/lighting.pro
index 16be936b262..16be936b262 100644
--- a/examples/effects/lighting/lighting.pro
+++ b/examples/widgets/effects/lighting/lighting.pro
diff --git a/examples/effects/lighting/main.cpp b/examples/widgets/effects/lighting/main.cpp
index aedd9a24cb9..aedd9a24cb9 100644
--- a/examples/effects/lighting/main.cpp
+++ b/examples/widgets/effects/lighting/main.cpp
diff --git a/examples/graphicsview/README b/examples/widgets/graphicsview/README
index e710fc3c13f..e710fc3c13f 100644
--- a/examples/graphicsview/README
+++ b/examples/widgets/graphicsview/README
diff --git a/examples/graphicsview/anchorlayout/anchorlayout.desktop b/examples/widgets/graphicsview/anchorlayout/anchorlayout.desktop
index 6cf53c3f9b5..6cf53c3f9b5 100644
--- a/examples/graphicsview/anchorlayout/anchorlayout.desktop
+++ b/examples/widgets/graphicsview/anchorlayout/anchorlayout.desktop
diff --git a/examples/graphicsview/anchorlayout/anchorlayout.pro b/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro
index 7b18a621db7..7b18a621db7 100644
--- a/examples/graphicsview/anchorlayout/anchorlayout.pro
+++ b/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/widgets/graphicsview/anchorlayout/main.cpp
index 839aef2e392..839aef2e392 100644
--- a/examples/graphicsview/anchorlayout/main.cpp
+++ b/examples/widgets/graphicsview/anchorlayout/main.cpp
diff --git a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop
index be1c3e4a841..be1c3e4a841 100644
--- a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.desktop
diff --git a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
index 202c8d87a0f..202c8d87a0f 100644
--- a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
diff --git a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc
index fbe2efa5724..fbe2efa5724 100644
--- a/examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.qrc
diff --git a/examples/graphicsview/basicgraphicslayouts/images/block.png b/examples/widgets/graphicsview/basicgraphicslayouts/images/block.png
index 4c72a3f5086..4c72a3f5086 100644
--- a/examples/graphicsview/basicgraphicslayouts/images/block.png
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/images/block.png
Binary files differ
diff --git a/examples/graphicsview/basicgraphicslayouts/layoutitem.cpp b/examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.cpp
index 7067cddece3..7067cddece3 100644
--- a/examples/graphicsview/basicgraphicslayouts/layoutitem.cpp
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.cpp
diff --git a/examples/graphicsview/basicgraphicslayouts/layoutitem.h b/examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.h
index 798c4650c6a..798c4650c6a 100644
--- a/examples/graphicsview/basicgraphicslayouts/layoutitem.h
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.h
diff --git a/examples/graphicsview/basicgraphicslayouts/main.cpp b/examples/widgets/graphicsview/basicgraphicslayouts/main.cpp
index ef482235a90..ef482235a90 100644
--- a/examples/graphicsview/basicgraphicslayouts/main.cpp
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/main.cpp
diff --git a/examples/graphicsview/basicgraphicslayouts/window.cpp b/examples/widgets/graphicsview/basicgraphicslayouts/window.cpp
index e3786b61f1d..e3786b61f1d 100644
--- a/examples/graphicsview/basicgraphicslayouts/window.cpp
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/window.cpp
diff --git a/examples/graphicsview/basicgraphicslayouts/window.h b/examples/widgets/graphicsview/basicgraphicslayouts/window.h
index 5c1cc2ed4f4..5c1cc2ed4f4 100644
--- a/examples/graphicsview/basicgraphicslayouts/window.h
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/window.h
diff --git a/examples/graphicsview/boxes/3rdparty/fbm.c b/examples/widgets/graphicsview/boxes/3rdparty/fbm.c
index 98eb87a33bb..98eb87a33bb 100644
--- a/examples/graphicsview/boxes/3rdparty/fbm.c
+++ b/examples/widgets/graphicsview/boxes/3rdparty/fbm.c
diff --git a/examples/graphicsview/boxes/3rdparty/fbm.h b/examples/widgets/graphicsview/boxes/3rdparty/fbm.h
index b8a4a99ae4b..b8a4a99ae4b 100644
--- a/examples/graphicsview/boxes/3rdparty/fbm.h
+++ b/examples/widgets/graphicsview/boxes/3rdparty/fbm.h
diff --git a/examples/graphicsview/boxes/basic.fsh b/examples/widgets/graphicsview/boxes/basic.fsh
index 917dbbaa0b5..917dbbaa0b5 100644
--- a/examples/graphicsview/boxes/basic.fsh
+++ b/examples/widgets/graphicsview/boxes/basic.fsh
diff --git a/examples/graphicsview/boxes/basic.vsh b/examples/widgets/graphicsview/boxes/basic.vsh
index db34a1a0d37..db34a1a0d37 100644
--- a/examples/graphicsview/boxes/basic.vsh
+++ b/examples/widgets/graphicsview/boxes/basic.vsh
diff --git a/examples/graphicsview/boxes/boxes.pro b/examples/widgets/graphicsview/boxes/boxes.pro
index 0564ae0ba67..0564ae0ba67 100644
--- a/examples/graphicsview/boxes/boxes.pro
+++ b/examples/widgets/graphicsview/boxes/boxes.pro
diff --git a/examples/graphicsview/boxes/boxes.qrc b/examples/widgets/graphicsview/boxes/boxes.qrc
index d27506dc5ad..d27506dc5ad 100644
--- a/examples/graphicsview/boxes/boxes.qrc
+++ b/examples/widgets/graphicsview/boxes/boxes.qrc
diff --git a/examples/graphicsview/boxes/cubemap_negx.jpg b/examples/widgets/graphicsview/boxes/cubemap_negx.jpg
index 07c282eab9e..07c282eab9e 100644
--- a/examples/graphicsview/boxes/cubemap_negx.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_negx.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/cubemap_negy.jpg b/examples/widgets/graphicsview/boxes/cubemap_negy.jpg
index 46cd2f9cf38..46cd2f9cf38 100644
--- a/examples/graphicsview/boxes/cubemap_negy.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_negy.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/cubemap_negz.jpg b/examples/widgets/graphicsview/boxes/cubemap_negz.jpg
index 40c01ddff34..40c01ddff34 100644
--- a/examples/graphicsview/boxes/cubemap_negz.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_negz.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/cubemap_posx.jpg b/examples/widgets/graphicsview/boxes/cubemap_posx.jpg
index 0b42e8a1b17..0b42e8a1b17 100644
--- a/examples/graphicsview/boxes/cubemap_posx.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_posx.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/cubemap_posy.jpg b/examples/widgets/graphicsview/boxes/cubemap_posy.jpg
index 2aca9b1e986..2aca9b1e986 100644
--- a/examples/graphicsview/boxes/cubemap_posy.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_posy.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/cubemap_posz.jpg b/examples/widgets/graphicsview/boxes/cubemap_posz.jpg
index 2e49173848c..2e49173848c 100644
--- a/examples/graphicsview/boxes/cubemap_posz.jpg
+++ b/examples/widgets/graphicsview/boxes/cubemap_posz.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/dotted.fsh b/examples/widgets/graphicsview/boxes/dotted.fsh
index 2fe32b3b89c..2fe32b3b89c 100644
--- a/examples/graphicsview/boxes/dotted.fsh
+++ b/examples/widgets/graphicsview/boxes/dotted.fsh
diff --git a/examples/graphicsview/boxes/fresnel.fsh b/examples/widgets/graphicsview/boxes/fresnel.fsh
index 8750dd9f202..8750dd9f202 100644
--- a/examples/graphicsview/boxes/fresnel.fsh
+++ b/examples/widgets/graphicsview/boxes/fresnel.fsh
diff --git a/examples/graphicsview/boxes/glass.fsh b/examples/widgets/graphicsview/boxes/glass.fsh
index d635b2cdc33..d635b2cdc33 100644
--- a/examples/graphicsview/boxes/glass.fsh
+++ b/examples/widgets/graphicsview/boxes/glass.fsh
diff --git a/examples/graphicsview/boxes/glbuffers.cpp b/examples/widgets/graphicsview/boxes/glbuffers.cpp
index e2aa2a47899..e2aa2a47899 100644
--- a/examples/graphicsview/boxes/glbuffers.cpp
+++ b/examples/widgets/graphicsview/boxes/glbuffers.cpp
diff --git a/examples/graphicsview/boxes/glbuffers.h b/examples/widgets/graphicsview/boxes/glbuffers.h
index 2b91915e8e4..2b91915e8e4 100644
--- a/examples/graphicsview/boxes/glbuffers.h
+++ b/examples/widgets/graphicsview/boxes/glbuffers.h
diff --git a/examples/graphicsview/boxes/glextensions.cpp b/examples/widgets/graphicsview/boxes/glextensions.cpp
index ada8f457f67..ada8f457f67 100644
--- a/examples/graphicsview/boxes/glextensions.cpp
+++ b/examples/widgets/graphicsview/boxes/glextensions.cpp
diff --git a/examples/graphicsview/boxes/glextensions.h b/examples/widgets/graphicsview/boxes/glextensions.h
index 35dd9a047c2..35dd9a047c2 100644
--- a/examples/graphicsview/boxes/glextensions.h
+++ b/examples/widgets/graphicsview/boxes/glextensions.h
diff --git a/examples/graphicsview/boxes/gltrianglemesh.h b/examples/widgets/graphicsview/boxes/gltrianglemesh.h
index 2c9ab01c3f7..2c9ab01c3f7 100644
--- a/examples/graphicsview/boxes/gltrianglemesh.h
+++ b/examples/widgets/graphicsview/boxes/gltrianglemesh.h
diff --git a/examples/graphicsview/boxes/granite.fsh b/examples/widgets/graphicsview/boxes/granite.fsh
index 175420f351d..175420f351d 100644
--- a/examples/graphicsview/boxes/granite.fsh
+++ b/examples/widgets/graphicsview/boxes/granite.fsh
diff --git a/examples/graphicsview/boxes/main.cpp b/examples/widgets/graphicsview/boxes/main.cpp
index 2baa539d3a1..2baa539d3a1 100644
--- a/examples/graphicsview/boxes/main.cpp
+++ b/examples/widgets/graphicsview/boxes/main.cpp
diff --git a/examples/graphicsview/boxes/marble.fsh b/examples/widgets/graphicsview/boxes/marble.fsh
index 3985a98e960..3985a98e960 100644
--- a/examples/graphicsview/boxes/marble.fsh
+++ b/examples/widgets/graphicsview/boxes/marble.fsh
diff --git a/examples/graphicsview/boxes/parameters.par b/examples/widgets/graphicsview/boxes/parameters.par
index 50e20739b98..50e20739b98 100644
--- a/examples/graphicsview/boxes/parameters.par
+++ b/examples/widgets/graphicsview/boxes/parameters.par
diff --git a/examples/graphicsview/boxes/qt-logo.jpg b/examples/widgets/graphicsview/boxes/qt-logo.jpg
index 4014b4659c1..4014b4659c1 100644
--- a/examples/graphicsview/boxes/qt-logo.jpg
+++ b/examples/widgets/graphicsview/boxes/qt-logo.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/qt-logo.png b/examples/widgets/graphicsview/boxes/qt-logo.png
index 7d3e97eb36e..7d3e97eb36e 100644
--- a/examples/graphicsview/boxes/qt-logo.png
+++ b/examples/widgets/graphicsview/boxes/qt-logo.png
Binary files differ
diff --git a/examples/graphicsview/boxes/qtbox.cpp b/examples/widgets/graphicsview/boxes/qtbox.cpp
index cff4497253a..cff4497253a 100644
--- a/examples/graphicsview/boxes/qtbox.cpp
+++ b/examples/widgets/graphicsview/boxes/qtbox.cpp
diff --git a/examples/graphicsview/boxes/qtbox.h b/examples/widgets/graphicsview/boxes/qtbox.h
index 66b9b17b7fe..66b9b17b7fe 100644
--- a/examples/graphicsview/boxes/qtbox.h
+++ b/examples/widgets/graphicsview/boxes/qtbox.h
diff --git a/examples/graphicsview/boxes/reflection.fsh b/examples/widgets/graphicsview/boxes/reflection.fsh
index 95a21112ea5..95a21112ea5 100644
--- a/examples/graphicsview/boxes/reflection.fsh
+++ b/examples/widgets/graphicsview/boxes/reflection.fsh
diff --git a/examples/graphicsview/boxes/refraction.fsh b/examples/widgets/graphicsview/boxes/refraction.fsh
index 5411478ea24..5411478ea24 100644
--- a/examples/graphicsview/boxes/refraction.fsh
+++ b/examples/widgets/graphicsview/boxes/refraction.fsh
diff --git a/examples/graphicsview/boxes/roundedbox.cpp b/examples/widgets/graphicsview/boxes/roundedbox.cpp
index e205dbdb2b0..e205dbdb2b0 100644
--- a/examples/graphicsview/boxes/roundedbox.cpp
+++ b/examples/widgets/graphicsview/boxes/roundedbox.cpp
diff --git a/examples/graphicsview/boxes/roundedbox.h b/examples/widgets/graphicsview/boxes/roundedbox.h
index 3edfb69fa89..3edfb69fa89 100644
--- a/examples/graphicsview/boxes/roundedbox.h
+++ b/examples/widgets/graphicsview/boxes/roundedbox.h
diff --git a/examples/graphicsview/boxes/scene.cpp b/examples/widgets/graphicsview/boxes/scene.cpp
index 5fb43d8c996..5fb43d8c996 100644
--- a/examples/graphicsview/boxes/scene.cpp
+++ b/examples/widgets/graphicsview/boxes/scene.cpp
diff --git a/examples/graphicsview/boxes/scene.h b/examples/widgets/graphicsview/boxes/scene.h
index 9410f7f9943..9410f7f9943 100644
--- a/examples/graphicsview/boxes/scene.h
+++ b/examples/widgets/graphicsview/boxes/scene.h
diff --git a/examples/graphicsview/boxes/smiley.png b/examples/widgets/graphicsview/boxes/smiley.png
index 41cfda6b23d..41cfda6b23d 100644
--- a/examples/graphicsview/boxes/smiley.png
+++ b/examples/widgets/graphicsview/boxes/smiley.png
Binary files differ
diff --git a/examples/graphicsview/boxes/square.jpg b/examples/widgets/graphicsview/boxes/square.jpg
index 03f53bd5306..03f53bd5306 100644
--- a/examples/graphicsview/boxes/square.jpg
+++ b/examples/widgets/graphicsview/boxes/square.jpg
Binary files differ
diff --git a/examples/graphicsview/boxes/trackball.cpp b/examples/widgets/graphicsview/boxes/trackball.cpp
index b0e9c44628f..b0e9c44628f 100644
--- a/examples/graphicsview/boxes/trackball.cpp
+++ b/examples/widgets/graphicsview/boxes/trackball.cpp
diff --git a/examples/graphicsview/boxes/trackball.h b/examples/widgets/graphicsview/boxes/trackball.h
index 42a233c4f87..42a233c4f87 100644
--- a/examples/graphicsview/boxes/trackball.h
+++ b/examples/widgets/graphicsview/boxes/trackball.h
diff --git a/examples/graphicsview/boxes/wood.fsh b/examples/widgets/graphicsview/boxes/wood.fsh
index a722bac8698..a722bac8698 100644
--- a/examples/graphicsview/boxes/wood.fsh
+++ b/examples/widgets/graphicsview/boxes/wood.fsh
diff --git a/examples/graphicsview/chip/chip.cpp b/examples/widgets/graphicsview/chip/chip.cpp
index 665daea1dc2..665daea1dc2 100644
--- a/examples/graphicsview/chip/chip.cpp
+++ b/examples/widgets/graphicsview/chip/chip.cpp
diff --git a/examples/graphicsview/chip/chip.h b/examples/widgets/graphicsview/chip/chip.h
index 4c1cfae37d7..4c1cfae37d7 100644
--- a/examples/graphicsview/chip/chip.h
+++ b/examples/widgets/graphicsview/chip/chip.h
diff --git a/examples/graphicsview/chip/chip.pro b/examples/widgets/graphicsview/chip/chip.pro
index afe748946e4..afe748946e4 100644
--- a/examples/graphicsview/chip/chip.pro
+++ b/examples/widgets/graphicsview/chip/chip.pro
diff --git a/examples/graphicsview/chip/fileprint.png b/examples/widgets/graphicsview/chip/fileprint.png
index ba7c02dc18d..ba7c02dc18d 100644
--- a/examples/graphicsview/chip/fileprint.png
+++ b/examples/widgets/graphicsview/chip/fileprint.png
Binary files differ
diff --git a/examples/graphicsview/chip/images.qrc b/examples/widgets/graphicsview/chip/images.qrc
index c7cdf0c4c07..c7cdf0c4c07 100644
--- a/examples/graphicsview/chip/images.qrc
+++ b/examples/widgets/graphicsview/chip/images.qrc
diff --git a/examples/graphicsview/chip/main.cpp b/examples/widgets/graphicsview/chip/main.cpp
index 689c806be80..689c806be80 100644
--- a/examples/graphicsview/chip/main.cpp
+++ b/examples/widgets/graphicsview/chip/main.cpp
diff --git a/examples/graphicsview/chip/mainwindow.cpp b/examples/widgets/graphicsview/chip/mainwindow.cpp
index 3d0d2952252..3d0d2952252 100644
--- a/examples/graphicsview/chip/mainwindow.cpp
+++ b/examples/widgets/graphicsview/chip/mainwindow.cpp
diff --git a/examples/graphicsview/chip/mainwindow.h b/examples/widgets/graphicsview/chip/mainwindow.h
index 18e27a0019c..18e27a0019c 100644
--- a/examples/graphicsview/chip/mainwindow.h
+++ b/examples/widgets/graphicsview/chip/mainwindow.h
diff --git a/examples/graphicsview/chip/qt4logo.png b/examples/widgets/graphicsview/chip/qt4logo.png
index 157e86ed647..157e86ed647 100644
--- a/examples/graphicsview/chip/qt4logo.png
+++ b/examples/widgets/graphicsview/chip/qt4logo.png
Binary files differ
diff --git a/examples/graphicsview/chip/rotateleft.png b/examples/widgets/graphicsview/chip/rotateleft.png
index 8cfa931986b..8cfa931986b 100644
--- a/examples/graphicsview/chip/rotateleft.png
+++ b/examples/widgets/graphicsview/chip/rotateleft.png
Binary files differ
diff --git a/examples/graphicsview/chip/rotateright.png b/examples/widgets/graphicsview/chip/rotateright.png
index ec5e8664a13..ec5e8664a13 100644
--- a/examples/graphicsview/chip/rotateright.png
+++ b/examples/widgets/graphicsview/chip/rotateright.png
Binary files differ
diff --git a/examples/graphicsview/chip/view.cpp b/examples/widgets/graphicsview/chip/view.cpp
index b755b8eadd8..b755b8eadd8 100644
--- a/examples/graphicsview/chip/view.cpp
+++ b/examples/widgets/graphicsview/chip/view.cpp
diff --git a/examples/graphicsview/chip/view.h b/examples/widgets/graphicsview/chip/view.h
index 7753efff55f..7753efff55f 100644
--- a/examples/graphicsview/chip/view.h
+++ b/examples/widgets/graphicsview/chip/view.h
diff --git a/examples/graphicsview/chip/zoomin.png b/examples/widgets/graphicsview/chip/zoomin.png
index 8b0daeea480..8b0daeea480 100644
--- a/examples/graphicsview/chip/zoomin.png
+++ b/examples/widgets/graphicsview/chip/zoomin.png
Binary files differ
diff --git a/examples/graphicsview/chip/zoomout.png b/examples/widgets/graphicsview/chip/zoomout.png
index 1575dd24f6d..1575dd24f6d 100644
--- a/examples/graphicsview/chip/zoomout.png
+++ b/examples/widgets/graphicsview/chip/zoomout.png
Binary files differ
diff --git a/examples/graphicsview/collidingmice/collidingmice.desktop b/examples/widgets/graphicsview/collidingmice/collidingmice.desktop
index f0064e71125..f0064e71125 100644
--- a/examples/graphicsview/collidingmice/collidingmice.desktop
+++ b/examples/widgets/graphicsview/collidingmice/collidingmice.desktop
diff --git a/examples/graphicsview/collidingmice/collidingmice.pro b/examples/widgets/graphicsview/collidingmice/collidingmice.pro
index d8346023ba2..d8346023ba2 100644
--- a/examples/graphicsview/collidingmice/collidingmice.pro
+++ b/examples/widgets/graphicsview/collidingmice/collidingmice.pro
diff --git a/examples/graphicsview/collidingmice/images/cheese.jpg b/examples/widgets/graphicsview/collidingmice/images/cheese.jpg
index dea5795fd0b..dea5795fd0b 100644
--- a/examples/graphicsview/collidingmice/images/cheese.jpg
+++ b/examples/widgets/graphicsview/collidingmice/images/cheese.jpg
Binary files differ
diff --git a/examples/graphicsview/collidingmice/main.cpp b/examples/widgets/graphicsview/collidingmice/main.cpp
index 63b14cf075a..63b14cf075a 100644
--- a/examples/graphicsview/collidingmice/main.cpp
+++ b/examples/widgets/graphicsview/collidingmice/main.cpp
diff --git a/examples/graphicsview/collidingmice/mice.qrc b/examples/widgets/graphicsview/collidingmice/mice.qrc
index accdb4d0a62..accdb4d0a62 100644
--- a/examples/graphicsview/collidingmice/mice.qrc
+++ b/examples/widgets/graphicsview/collidingmice/mice.qrc
diff --git a/examples/graphicsview/collidingmice/mouse.cpp b/examples/widgets/graphicsview/collidingmice/mouse.cpp
index 2ffbeff6d5c..2ffbeff6d5c 100644
--- a/examples/graphicsview/collidingmice/mouse.cpp
+++ b/examples/widgets/graphicsview/collidingmice/mouse.cpp
diff --git a/examples/graphicsview/collidingmice/mouse.h b/examples/widgets/graphicsview/collidingmice/mouse.h
index fd036e8b937..fd036e8b937 100644
--- a/examples/graphicsview/collidingmice/mouse.h
+++ b/examples/widgets/graphicsview/collidingmice/mouse.h
diff --git a/examples/graphicsview/diagramscene/arrow.cpp b/examples/widgets/graphicsview/diagramscene/arrow.cpp
index 236d836e138..236d836e138 100644
--- a/examples/graphicsview/diagramscene/arrow.cpp
+++ b/examples/widgets/graphicsview/diagramscene/arrow.cpp
diff --git a/examples/graphicsview/diagramscene/arrow.h b/examples/widgets/graphicsview/diagramscene/arrow.h
index ac09d6ad00e..ac09d6ad00e 100644
--- a/examples/graphicsview/diagramscene/arrow.h
+++ b/examples/widgets/graphicsview/diagramscene/arrow.h
diff --git a/examples/graphicsview/diagramscene/diagramitem.cpp b/examples/widgets/graphicsview/diagramscene/diagramitem.cpp
index 9509c30270b..9509c30270b 100644
--- a/examples/graphicsview/diagramscene/diagramitem.cpp
+++ b/examples/widgets/graphicsview/diagramscene/diagramitem.cpp
diff --git a/examples/graphicsview/diagramscene/diagramitem.h b/examples/widgets/graphicsview/diagramscene/diagramitem.h
index 07b3b6e8308..07b3b6e8308 100644
--- a/examples/graphicsview/diagramscene/diagramitem.h
+++ b/examples/widgets/graphicsview/diagramscene/diagramitem.h
diff --git a/examples/graphicsview/diagramscene/diagramscene.cpp b/examples/widgets/graphicsview/diagramscene/diagramscene.cpp
index c4a654aa99d..c4a654aa99d 100644
--- a/examples/graphicsview/diagramscene/diagramscene.cpp
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.cpp
diff --git a/examples/graphicsview/diagramscene/diagramscene.desktop b/examples/widgets/graphicsview/diagramscene/diagramscene.desktop
index 54506ff979e..54506ff979e 100644
--- a/examples/graphicsview/diagramscene/diagramscene.desktop
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.desktop
diff --git a/examples/graphicsview/diagramscene/diagramscene.h b/examples/widgets/graphicsview/diagramscene/diagramscene.h
index 9f65eba890d..9f65eba890d 100644
--- a/examples/graphicsview/diagramscene/diagramscene.h
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.h
diff --git a/examples/graphicsview/diagramscene/diagramscene.pro b/examples/widgets/graphicsview/diagramscene/diagramscene.pro
index e45f4a894b6..e45f4a894b6 100644
--- a/examples/graphicsview/diagramscene/diagramscene.pro
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.pro
diff --git a/examples/graphicsview/diagramscene/diagramscene.qrc b/examples/widgets/graphicsview/diagramscene/diagramscene.qrc
index a11158402f6..a11158402f6 100644
--- a/examples/graphicsview/diagramscene/diagramscene.qrc
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.qrc
diff --git a/examples/graphicsview/diagramscene/diagramtextitem.cpp b/examples/widgets/graphicsview/diagramscene/diagramtextitem.cpp
index 1e583045da3..1e583045da3 100644
--- a/examples/graphicsview/diagramscene/diagramtextitem.cpp
+++ b/examples/widgets/graphicsview/diagramscene/diagramtextitem.cpp
diff --git a/examples/graphicsview/diagramscene/diagramtextitem.h b/examples/widgets/graphicsview/diagramscene/diagramtextitem.h
index 611e9b67008..611e9b67008 100644
--- a/examples/graphicsview/diagramscene/diagramtextitem.h
+++ b/examples/widgets/graphicsview/diagramscene/diagramtextitem.h
diff --git a/examples/graphicsview/diagramscene/images/background1.png b/examples/widgets/graphicsview/diagramscene/images/background1.png
index 0f93c6bf420..0f93c6bf420 100644
--- a/examples/graphicsview/diagramscene/images/background1.png
+++ b/examples/widgets/graphicsview/diagramscene/images/background1.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/background2.png b/examples/widgets/graphicsview/diagramscene/images/background2.png
index 1e293db67a5..1e293db67a5 100644
--- a/examples/graphicsview/diagramscene/images/background2.png
+++ b/examples/widgets/graphicsview/diagramscene/images/background2.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/background3.png b/examples/widgets/graphicsview/diagramscene/images/background3.png
index 3db4f8ea5f7..3db4f8ea5f7 100644
--- a/examples/graphicsview/diagramscene/images/background3.png
+++ b/examples/widgets/graphicsview/diagramscene/images/background3.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/background4.png b/examples/widgets/graphicsview/diagramscene/images/background4.png
index 9c1f3bfd777..9c1f3bfd777 100644
--- a/examples/graphicsview/diagramscene/images/background4.png
+++ b/examples/widgets/graphicsview/diagramscene/images/background4.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/bold.png b/examples/widgets/graphicsview/diagramscene/images/bold.png
index 986e65e2508..986e65e2508 100644
--- a/examples/graphicsview/diagramscene/images/bold.png
+++ b/examples/widgets/graphicsview/diagramscene/images/bold.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/bringtofront.png b/examples/widgets/graphicsview/diagramscene/images/bringtofront.png
index bda27578a2d..bda27578a2d 100644
--- a/examples/graphicsview/diagramscene/images/bringtofront.png
+++ b/examples/widgets/graphicsview/diagramscene/images/bringtofront.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/delete.png b/examples/widgets/graphicsview/diagramscene/images/delete.png
index df2a147d246..df2a147d246 100644
--- a/examples/graphicsview/diagramscene/images/delete.png
+++ b/examples/widgets/graphicsview/diagramscene/images/delete.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/floodfill.png b/examples/widgets/graphicsview/diagramscene/images/floodfill.png
index 54c0dae2378..54c0dae2378 100644
--- a/examples/graphicsview/diagramscene/images/floodfill.png
+++ b/examples/widgets/graphicsview/diagramscene/images/floodfill.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/italic.png b/examples/widgets/graphicsview/diagramscene/images/italic.png
index 9a438b57ad4..9a438b57ad4 100644
--- a/examples/graphicsview/diagramscene/images/italic.png
+++ b/examples/widgets/graphicsview/diagramscene/images/italic.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/linecolor.png b/examples/widgets/graphicsview/diagramscene/images/linecolor.png
index 98a821f27e6..98a821f27e6 100644
--- a/examples/graphicsview/diagramscene/images/linecolor.png
+++ b/examples/widgets/graphicsview/diagramscene/images/linecolor.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/linepointer.png b/examples/widgets/graphicsview/diagramscene/images/linepointer.png
index 66933d43b30..66933d43b30 100644
--- a/examples/graphicsview/diagramscene/images/linepointer.png
+++ b/examples/widgets/graphicsview/diagramscene/images/linepointer.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/pointer.png b/examples/widgets/graphicsview/diagramscene/images/pointer.png
index 0b0b0aa69d8..0b0b0aa69d8 100644
--- a/examples/graphicsview/diagramscene/images/pointer.png
+++ b/examples/widgets/graphicsview/diagramscene/images/pointer.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/sendtoback.png b/examples/widgets/graphicsview/diagramscene/images/sendtoback.png
index 5aa3b0a2438..5aa3b0a2438 100644
--- a/examples/graphicsview/diagramscene/images/sendtoback.png
+++ b/examples/widgets/graphicsview/diagramscene/images/sendtoback.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/textpointer.png b/examples/widgets/graphicsview/diagramscene/images/textpointer.png
index b25832cada2..b25832cada2 100644
--- a/examples/graphicsview/diagramscene/images/textpointer.png
+++ b/examples/widgets/graphicsview/diagramscene/images/textpointer.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/images/underline.png b/examples/widgets/graphicsview/diagramscene/images/underline.png
index 9b8209f5252..9b8209f5252 100644
--- a/examples/graphicsview/diagramscene/images/underline.png
+++ b/examples/widgets/graphicsview/diagramscene/images/underline.png
Binary files differ
diff --git a/examples/graphicsview/diagramscene/main.cpp b/examples/widgets/graphicsview/diagramscene/main.cpp
index 33bc97b71f2..33bc97b71f2 100644
--- a/examples/graphicsview/diagramscene/main.cpp
+++ b/examples/widgets/graphicsview/diagramscene/main.cpp
diff --git a/examples/graphicsview/diagramscene/mainwindow.cpp b/examples/widgets/graphicsview/diagramscene/mainwindow.cpp
index 977730a3bb6..977730a3bb6 100644
--- a/examples/graphicsview/diagramscene/mainwindow.cpp
+++ b/examples/widgets/graphicsview/diagramscene/mainwindow.cpp
diff --git a/examples/graphicsview/diagramscene/mainwindow.h b/examples/widgets/graphicsview/diagramscene/mainwindow.h
index e3c0496c799..e3c0496c799 100644
--- a/examples/graphicsview/diagramscene/mainwindow.h
+++ b/examples/widgets/graphicsview/diagramscene/mainwindow.h
diff --git a/examples/graphicsview/dragdroprobot/coloritem.cpp b/examples/widgets/graphicsview/dragdroprobot/coloritem.cpp
index 18e7a01af2f..18e7a01af2f 100644
--- a/examples/graphicsview/dragdroprobot/coloritem.cpp
+++ b/examples/widgets/graphicsview/dragdroprobot/coloritem.cpp
diff --git a/examples/graphicsview/dragdroprobot/coloritem.h b/examples/widgets/graphicsview/dragdroprobot/coloritem.h
index 9d3b4a9693b..9d3b4a9693b 100644
--- a/examples/graphicsview/dragdroprobot/coloritem.h
+++ b/examples/widgets/graphicsview/dragdroprobot/coloritem.h
diff --git a/examples/graphicsview/dragdroprobot/dragdroprobot.desktop b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.desktop
index c01e3a3425d..c01e3a3425d 100644
--- a/examples/graphicsview/dragdroprobot/dragdroprobot.desktop
+++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.desktop
diff --git a/examples/graphicsview/dragdroprobot/dragdroprobot.pro b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro
index 3e33bad2f95..3e33bad2f95 100644
--- a/examples/graphicsview/dragdroprobot/dragdroprobot.pro
+++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro
diff --git a/examples/graphicsview/dragdroprobot/images/head.png b/examples/widgets/graphicsview/dragdroprobot/images/head.png
index 1e520e09b8d..1e520e09b8d 100644
--- a/examples/graphicsview/dragdroprobot/images/head.png
+++ b/examples/widgets/graphicsview/dragdroprobot/images/head.png
Binary files differ
diff --git a/examples/graphicsview/dragdroprobot/main.cpp b/examples/widgets/graphicsview/dragdroprobot/main.cpp
index 05d3c8f1b3b..05d3c8f1b3b 100644
--- a/examples/graphicsview/dragdroprobot/main.cpp
+++ b/examples/widgets/graphicsview/dragdroprobot/main.cpp
diff --git a/examples/graphicsview/dragdroprobot/robot.cpp b/examples/widgets/graphicsview/dragdroprobot/robot.cpp
index 20935bf6c5f..20935bf6c5f 100644
--- a/examples/graphicsview/dragdroprobot/robot.cpp
+++ b/examples/widgets/graphicsview/dragdroprobot/robot.cpp
diff --git a/examples/graphicsview/dragdroprobot/robot.h b/examples/widgets/graphicsview/dragdroprobot/robot.h
index ff9fb494852..ff9fb494852 100644
--- a/examples/graphicsview/dragdroprobot/robot.h
+++ b/examples/widgets/graphicsview/dragdroprobot/robot.h
diff --git a/examples/graphicsview/dragdroprobot/robot.qrc b/examples/widgets/graphicsview/dragdroprobot/robot.qrc
index b0969d2a646..b0969d2a646 100644
--- a/examples/graphicsview/dragdroprobot/robot.qrc
+++ b/examples/widgets/graphicsview/dragdroprobot/robot.qrc
diff --git a/examples/graphicsview/elasticnodes/edge.cpp b/examples/widgets/graphicsview/elasticnodes/edge.cpp
index ee7334cdcc9..ee7334cdcc9 100644
--- a/examples/graphicsview/elasticnodes/edge.cpp
+++ b/examples/widgets/graphicsview/elasticnodes/edge.cpp
diff --git a/examples/graphicsview/elasticnodes/edge.h b/examples/widgets/graphicsview/elasticnodes/edge.h
index 9bf41122129..9bf41122129 100644
--- a/examples/graphicsview/elasticnodes/edge.h
+++ b/examples/widgets/graphicsview/elasticnodes/edge.h
diff --git a/examples/graphicsview/elasticnodes/elasticnodes.desktop b/examples/widgets/graphicsview/elasticnodes/elasticnodes.desktop
index 64402d080f8..64402d080f8 100644
--- a/examples/graphicsview/elasticnodes/elasticnodes.desktop
+++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.desktop
diff --git a/examples/graphicsview/elasticnodes/elasticnodes.pro b/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro
index 2a618094577..2a618094577 100644
--- a/examples/graphicsview/elasticnodes/elasticnodes.pro
+++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro
diff --git a/examples/graphicsview/elasticnodes/graphwidget.cpp b/examples/widgets/graphicsview/elasticnodes/graphwidget.cpp
index 36005b85f49..36005b85f49 100644
--- a/examples/graphicsview/elasticnodes/graphwidget.cpp
+++ b/examples/widgets/graphicsview/elasticnodes/graphwidget.cpp
diff --git a/examples/graphicsview/elasticnodes/graphwidget.h b/examples/widgets/graphicsview/elasticnodes/graphwidget.h
index 61bcfdb5cbb..61bcfdb5cbb 100644
--- a/examples/graphicsview/elasticnodes/graphwidget.h
+++ b/examples/widgets/graphicsview/elasticnodes/graphwidget.h
diff --git a/examples/graphicsview/elasticnodes/main.cpp b/examples/widgets/graphicsview/elasticnodes/main.cpp
index 239b8290ea2..239b8290ea2 100644
--- a/examples/graphicsview/elasticnodes/main.cpp
+++ b/examples/widgets/graphicsview/elasticnodes/main.cpp
diff --git a/examples/graphicsview/elasticnodes/node.cpp b/examples/widgets/graphicsview/elasticnodes/node.cpp
index dad226a5e6d..dad226a5e6d 100644
--- a/examples/graphicsview/elasticnodes/node.cpp
+++ b/examples/widgets/graphicsview/elasticnodes/node.cpp
diff --git a/examples/graphicsview/elasticnodes/node.h b/examples/widgets/graphicsview/elasticnodes/node.h
index 86ca407e08d..86ca407e08d 100644
--- a/examples/graphicsview/elasticnodes/node.h
+++ b/examples/widgets/graphicsview/elasticnodes/node.h
diff --git a/examples/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg b/examples/widgets/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg
index 445567fbdac..445567fbdac 100644
--- a/examples/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg
+++ b/examples/widgets/graphicsview/embeddeddialogs/No-Ones-Laughing-3.jpg
Binary files differ
diff --git a/examples/graphicsview/embeddeddialogs/customproxy.cpp b/examples/widgets/graphicsview/embeddeddialogs/customproxy.cpp
index 2aa29860149..2aa29860149 100644
--- a/examples/graphicsview/embeddeddialogs/customproxy.cpp
+++ b/examples/widgets/graphicsview/embeddeddialogs/customproxy.cpp
diff --git a/examples/graphicsview/embeddeddialogs/customproxy.h b/examples/widgets/graphicsview/embeddeddialogs/customproxy.h
index c85bbaccd3f..c85bbaccd3f 100644
--- a/examples/graphicsview/embeddeddialogs/customproxy.h
+++ b/examples/widgets/graphicsview/embeddeddialogs/customproxy.h
diff --git a/examples/graphicsview/embeddeddialogs/embeddeddialog.cpp b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
index e306f32c71d..e306f32c71d 100644
--- a/examples/graphicsview/embeddeddialogs/embeddeddialog.cpp
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
diff --git a/examples/graphicsview/embeddeddialogs/embeddeddialog.h b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.h
index 59aa4c244ae..59aa4c244ae 100644
--- a/examples/graphicsview/embeddeddialogs/embeddeddialog.h
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.h
diff --git a/examples/graphicsview/embeddeddialogs/embeddeddialog.ui b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.ui
index f967b100853..f967b100853 100644
--- a/examples/graphicsview/embeddeddialogs/embeddeddialog.ui
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.ui
diff --git a/examples/graphicsview/embeddeddialogs/embeddeddialogs.pro b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro
index 6244df4b688..6244df4b688 100644
--- a/examples/graphicsview/embeddeddialogs/embeddeddialogs.pro
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro
diff --git a/examples/graphicsview/embeddeddialogs/embeddeddialogs.qrc b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.qrc
index 33be5038dab..33be5038dab 100644
--- a/examples/graphicsview/embeddeddialogs/embeddeddialogs.qrc
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.qrc
diff --git a/examples/graphicsview/embeddeddialogs/main.cpp b/examples/widgets/graphicsview/embeddeddialogs/main.cpp
index 88b249e4819..88b249e4819 100644
--- a/examples/graphicsview/embeddeddialogs/main.cpp
+++ b/examples/widgets/graphicsview/embeddeddialogs/main.cpp
diff --git a/examples/graphicsview/flowlayout/flowlayout.cpp b/examples/widgets/graphicsview/flowlayout/flowlayout.cpp
index 3f787109eb2..3f787109eb2 100644
--- a/examples/graphicsview/flowlayout/flowlayout.cpp
+++ b/examples/widgets/graphicsview/flowlayout/flowlayout.cpp
diff --git a/examples/graphicsview/flowlayout/flowlayout.desktop b/examples/widgets/graphicsview/flowlayout/flowlayout.desktop
index 54ea3b02901..54ea3b02901 100644
--- a/examples/graphicsview/flowlayout/flowlayout.desktop
+++ b/examples/widgets/graphicsview/flowlayout/flowlayout.desktop
diff --git a/examples/graphicsview/flowlayout/flowlayout.h b/examples/widgets/graphicsview/flowlayout/flowlayout.h
index 751e435ec00..751e435ec00 100644
--- a/examples/graphicsview/flowlayout/flowlayout.h
+++ b/examples/widgets/graphicsview/flowlayout/flowlayout.h
diff --git a/examples/graphicsview/flowlayout/flowlayout.pro b/examples/widgets/graphicsview/flowlayout/flowlayout.pro
index 5f69a74d60c..5f69a74d60c 100644
--- a/examples/graphicsview/flowlayout/flowlayout.pro
+++ b/examples/widgets/graphicsview/flowlayout/flowlayout.pro
diff --git a/examples/graphicsview/flowlayout/main.cpp b/examples/widgets/graphicsview/flowlayout/main.cpp
index a7a11552245..a7a11552245 100644
--- a/examples/graphicsview/flowlayout/main.cpp
+++ b/examples/widgets/graphicsview/flowlayout/main.cpp
diff --git a/examples/graphicsview/flowlayout/window.cpp b/examples/widgets/graphicsview/flowlayout/window.cpp
index 193a2bbc6e6..193a2bbc6e6 100644
--- a/examples/graphicsview/flowlayout/window.cpp
+++ b/examples/widgets/graphicsview/flowlayout/window.cpp
diff --git a/examples/graphicsview/flowlayout/window.h b/examples/widgets/graphicsview/flowlayout/window.h
index b1eb874c215..b1eb874c215 100644
--- a/examples/graphicsview/flowlayout/window.h
+++ b/examples/widgets/graphicsview/flowlayout/window.h
diff --git a/examples/graphicsview/graphicsview.pro b/examples/widgets/graphicsview/graphicsview.pro
index 6b7de527c60..6b7de527c60 100644
--- a/examples/graphicsview/graphicsview.pro
+++ b/examples/widgets/graphicsview/graphicsview.pro
diff --git a/examples/graphicsview/padnavigator/flippablepad.cpp b/examples/widgets/graphicsview/padnavigator/flippablepad.cpp
index a6c44af70c8..a6c44af70c8 100644
--- a/examples/graphicsview/padnavigator/flippablepad.cpp
+++ b/examples/widgets/graphicsview/padnavigator/flippablepad.cpp
diff --git a/examples/graphicsview/padnavigator/flippablepad.h b/examples/widgets/graphicsview/padnavigator/flippablepad.h
index e0d1fe24e55..e0d1fe24e55 100644
--- a/examples/graphicsview/padnavigator/flippablepad.h
+++ b/examples/widgets/graphicsview/padnavigator/flippablepad.h
diff --git a/examples/graphicsview/padnavigator/form.ui b/examples/widgets/graphicsview/padnavigator/form.ui
index fc7d12321e2..fc7d12321e2 100644
--- a/examples/graphicsview/padnavigator/form.ui
+++ b/examples/widgets/graphicsview/padnavigator/form.ui
diff --git a/examples/graphicsview/padnavigator/images/artsfftscope.png b/examples/widgets/graphicsview/padnavigator/images/artsfftscope.png
index 4db003f8d23..4db003f8d23 100644
--- a/examples/graphicsview/padnavigator/images/artsfftscope.png
+++ b/examples/widgets/graphicsview/padnavigator/images/artsfftscope.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/blue_angle_swirl.jpg b/examples/widgets/graphicsview/padnavigator/images/blue_angle_swirl.jpg
index 5bf0debdbdd..5bf0debdbdd 100644
--- a/examples/graphicsview/padnavigator/images/blue_angle_swirl.jpg
+++ b/examples/widgets/graphicsview/padnavigator/images/blue_angle_swirl.jpg
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/kontact_contacts.png b/examples/widgets/graphicsview/padnavigator/images/kontact_contacts.png
index 6fb4cc8f389..6fb4cc8f389 100644
--- a/examples/graphicsview/padnavigator/images/kontact_contacts.png
+++ b/examples/widgets/graphicsview/padnavigator/images/kontact_contacts.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/kontact_journal.png b/examples/widgets/graphicsview/padnavigator/images/kontact_journal.png
index b1fedb6982d..b1fedb6982d 100644
--- a/examples/graphicsview/padnavigator/images/kontact_journal.png
+++ b/examples/widgets/graphicsview/padnavigator/images/kontact_journal.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/kontact_mail.png b/examples/widgets/graphicsview/padnavigator/images/kontact_mail.png
index 672f8fa3ab1..672f8fa3ab1 100644
--- a/examples/graphicsview/padnavigator/images/kontact_mail.png
+++ b/examples/widgets/graphicsview/padnavigator/images/kontact_mail.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/kontact_notes.png b/examples/widgets/graphicsview/padnavigator/images/kontact_notes.png
index 229bf73ac69..229bf73ac69 100644
--- a/examples/graphicsview/padnavigator/images/kontact_notes.png
+++ b/examples/widgets/graphicsview/padnavigator/images/kontact_notes.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/kopeteavailable.png b/examples/widgets/graphicsview/padnavigator/images/kopeteavailable.png
index 2eaf41afec0..2eaf41afec0 100644
--- a/examples/graphicsview/padnavigator/images/kopeteavailable.png
+++ b/examples/widgets/graphicsview/padnavigator/images/kopeteavailable.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/metacontact_online.png b/examples/widgets/graphicsview/padnavigator/images/metacontact_online.png
index 6a398dd10fc..6a398dd10fc 100644
--- a/examples/graphicsview/padnavigator/images/metacontact_online.png
+++ b/examples/widgets/graphicsview/padnavigator/images/metacontact_online.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/images/minitools.png b/examples/widgets/graphicsview/padnavigator/images/minitools.png
index 0248c9d50ae..0248c9d50ae 100644
--- a/examples/graphicsview/padnavigator/images/minitools.png
+++ b/examples/widgets/graphicsview/padnavigator/images/minitools.png
Binary files differ
diff --git a/examples/graphicsview/padnavigator/main.cpp b/examples/widgets/graphicsview/padnavigator/main.cpp
index 380fde8cd91..380fde8cd91 100644
--- a/examples/graphicsview/padnavigator/main.cpp
+++ b/examples/widgets/graphicsview/padnavigator/main.cpp
diff --git a/examples/graphicsview/padnavigator/padnavigator.cpp b/examples/widgets/graphicsview/padnavigator/padnavigator.cpp
index fcfe84bb72f..fcfe84bb72f 100644
--- a/examples/graphicsview/padnavigator/padnavigator.cpp
+++ b/examples/widgets/graphicsview/padnavigator/padnavigator.cpp
diff --git a/examples/graphicsview/padnavigator/padnavigator.desktop b/examples/widgets/graphicsview/padnavigator/padnavigator.desktop
index f0490730c69..f0490730c69 100644
--- a/examples/graphicsview/padnavigator/padnavigator.desktop
+++ b/examples/widgets/graphicsview/padnavigator/padnavigator.desktop
diff --git a/examples/graphicsview/padnavigator/padnavigator.h b/examples/widgets/graphicsview/padnavigator/padnavigator.h
index 659b901f5c2..659b901f5c2 100644
--- a/examples/graphicsview/padnavigator/padnavigator.h
+++ b/examples/widgets/graphicsview/padnavigator/padnavigator.h
diff --git a/examples/graphicsview/padnavigator/padnavigator.pro b/examples/widgets/graphicsview/padnavigator/padnavigator.pro
index 4b9733bb9be..4b9733bb9be 100644
--- a/examples/graphicsview/padnavigator/padnavigator.pro
+++ b/examples/widgets/graphicsview/padnavigator/padnavigator.pro
diff --git a/examples/graphicsview/padnavigator/padnavigator.qrc b/examples/widgets/graphicsview/padnavigator/padnavigator.qrc
index b26ab92ae14..b26ab92ae14 100644
--- a/examples/graphicsview/padnavigator/padnavigator.qrc
+++ b/examples/widgets/graphicsview/padnavigator/padnavigator.qrc
diff --git a/examples/graphicsview/padnavigator/roundrectitem.cpp b/examples/widgets/graphicsview/padnavigator/roundrectitem.cpp
index 1438db3a9c2..1438db3a9c2 100644
--- a/examples/graphicsview/padnavigator/roundrectitem.cpp
+++ b/examples/widgets/graphicsview/padnavigator/roundrectitem.cpp
diff --git a/examples/graphicsview/padnavigator/roundrectitem.h b/examples/widgets/graphicsview/padnavigator/roundrectitem.h
index af84984d49a..af84984d49a 100644
--- a/examples/graphicsview/padnavigator/roundrectitem.h
+++ b/examples/widgets/graphicsview/padnavigator/roundrectitem.h
diff --git a/examples/graphicsview/padnavigator/splashitem.cpp b/examples/widgets/graphicsview/padnavigator/splashitem.cpp
index d87e8333bd4..d87e8333bd4 100644
--- a/examples/graphicsview/padnavigator/splashitem.cpp
+++ b/examples/widgets/graphicsview/padnavigator/splashitem.cpp
diff --git a/examples/graphicsview/padnavigator/splashitem.h b/examples/widgets/graphicsview/padnavigator/splashitem.h
index bc0917e3de9..bc0917e3de9 100644
--- a/examples/graphicsview/padnavigator/splashitem.h
+++ b/examples/widgets/graphicsview/padnavigator/splashitem.h
diff --git a/examples/graphicsview/portedasteroids/portedasteroids.desktop b/examples/widgets/graphicsview/portedasteroids/portedasteroids.desktop
index abd061699b7..abd061699b7 100644
--- a/examples/graphicsview/portedasteroids/portedasteroids.desktop
+++ b/examples/widgets/graphicsview/portedasteroids/portedasteroids.desktop
diff --git a/examples/graphicsview/portedcanvas/portedcanvas.desktop b/examples/widgets/graphicsview/portedcanvas/portedcanvas.desktop
index 1217dc43de0..1217dc43de0 100644
--- a/examples/graphicsview/portedcanvas/portedcanvas.desktop
+++ b/examples/widgets/graphicsview/portedcanvas/portedcanvas.desktop
diff --git a/examples/graphicsview/simpleanchorlayout/main.cpp b/examples/widgets/graphicsview/simpleanchorlayout/main.cpp
index 50d8513c84a..50d8513c84a 100644
--- a/examples/graphicsview/simpleanchorlayout/main.cpp
+++ b/examples/widgets/graphicsview/simpleanchorlayout/main.cpp
diff --git a/examples/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop
index 0e8d73a859d..0e8d73a859d 100644
--- a/examples/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop
+++ b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.desktop
diff --git a/examples/graphicsview/simpleanchorlayout/simpleanchorlayout.pro b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
index b044d4e91c9..b044d4e91c9 100644
--- a/examples/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
+++ b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
diff --git a/examples/graphicsview/weatheranchorlayout/images/5days.jpg b/examples/widgets/graphicsview/weatheranchorlayout/images/5days.jpg
index fd92ba8ba7d..fd92ba8ba7d 100644
--- a/examples/graphicsview/weatheranchorlayout/images/5days.jpg
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/5days.jpg
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/images/details.jpg b/examples/widgets/graphicsview/weatheranchorlayout/images/details.jpg
index fde0448c698..fde0448c698 100644
--- a/examples/graphicsview/weatheranchorlayout/images/details.jpg
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/details.jpg
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/images/place.jpg b/examples/widgets/graphicsview/weatheranchorlayout/images/place.jpg
index 03e53443307..03e53443307 100644
--- a/examples/graphicsview/weatheranchorlayout/images/place.jpg
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/place.jpg
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/images/tabbar.jpg b/examples/widgets/graphicsview/weatheranchorlayout/images/tabbar.jpg
index 77776629011..77776629011 100644
--- a/examples/graphicsview/weatheranchorlayout/images/tabbar.jpg
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/tabbar.jpg
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/images/title.jpg b/examples/widgets/graphicsview/weatheranchorlayout/images/title.jpg
index fa84c8156c2..fa84c8156c2 100644
--- a/examples/graphicsview/weatheranchorlayout/images/title.jpg
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/title.jpg
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/images/weather-few-clouds.png b/examples/widgets/graphicsview/weatheranchorlayout/images/weather-few-clouds.png
index eea6ce65292..eea6ce65292 100644
--- a/examples/graphicsview/weatheranchorlayout/images/weather-few-clouds.png
+++ b/examples/widgets/graphicsview/weatheranchorlayout/images/weather-few-clouds.png
Binary files differ
diff --git a/examples/graphicsview/weatheranchorlayout/main.cpp b/examples/widgets/graphicsview/weatheranchorlayout/main.cpp
index 64605bebc0a..64605bebc0a 100644
--- a/examples/graphicsview/weatheranchorlayout/main.cpp
+++ b/examples/widgets/graphicsview/weatheranchorlayout/main.cpp
diff --git a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop
index 0c6ab89a683..0c6ab89a683 100644
--- a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop
+++ b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.desktop
diff --git a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.pro b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.pro
index b6eb292a129..b6eb292a129 100644
--- a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.pro
+++ b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.pro
diff --git a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc
index e39f8c0423f..e39f8c0423f 100644
--- a/examples/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc
+++ b/examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc
diff --git a/examples/itemviews/README b/examples/widgets/itemviews/README
index bded96a8495..bded96a8495 100644
--- a/examples/itemviews/README
+++ b/examples/widgets/itemviews/README
diff --git a/examples/itemviews/addressbook/adddialog.cpp b/examples/widgets/itemviews/addressbook/adddialog.cpp
index f34bd0d46e8..f34bd0d46e8 100644
--- a/examples/itemviews/addressbook/adddialog.cpp
+++ b/examples/widgets/itemviews/addressbook/adddialog.cpp
diff --git a/examples/itemviews/addressbook/adddialog.h b/examples/widgets/itemviews/addressbook/adddialog.h
index 6d9093b638a..6d9093b638a 100644
--- a/examples/itemviews/addressbook/adddialog.h
+++ b/examples/widgets/itemviews/addressbook/adddialog.h
diff --git a/examples/itemviews/addressbook/addressbook.desktop b/examples/widgets/itemviews/addressbook/addressbook.desktop
index 11767f59d81..11767f59d81 100644
--- a/examples/itemviews/addressbook/addressbook.desktop
+++ b/examples/widgets/itemviews/addressbook/addressbook.desktop
diff --git a/examples/itemviews/addressbook/addressbook.pro b/examples/widgets/itemviews/addressbook/addressbook.pro
index 32cbc4ca364..32cbc4ca364 100644
--- a/examples/itemviews/addressbook/addressbook.pro
+++ b/examples/widgets/itemviews/addressbook/addressbook.pro
diff --git a/examples/itemviews/addressbook/addresswidget.cpp b/examples/widgets/itemviews/addressbook/addresswidget.cpp
index 066d5588c74..066d5588c74 100644
--- a/examples/itemviews/addressbook/addresswidget.cpp
+++ b/examples/widgets/itemviews/addressbook/addresswidget.cpp
diff --git a/examples/itemviews/addressbook/addresswidget.h b/examples/widgets/itemviews/addressbook/addresswidget.h
index 3a468184635..3a468184635 100644
--- a/examples/itemviews/addressbook/addresswidget.h
+++ b/examples/widgets/itemviews/addressbook/addresswidget.h
diff --git a/examples/itemviews/addressbook/main.cpp b/examples/widgets/itemviews/addressbook/main.cpp
index 9f388dc1230..9f388dc1230 100644
--- a/examples/itemviews/addressbook/main.cpp
+++ b/examples/widgets/itemviews/addressbook/main.cpp
diff --git a/examples/itemviews/addressbook/mainwindow.cpp b/examples/widgets/itemviews/addressbook/mainwindow.cpp
index e16aec94b0e..e16aec94b0e 100644
--- a/examples/itemviews/addressbook/mainwindow.cpp
+++ b/examples/widgets/itemviews/addressbook/mainwindow.cpp
diff --git a/examples/itemviews/addressbook/mainwindow.h b/examples/widgets/itemviews/addressbook/mainwindow.h
index 284e492c4aa..284e492c4aa 100644
--- a/examples/itemviews/addressbook/mainwindow.h
+++ b/examples/widgets/itemviews/addressbook/mainwindow.h
diff --git a/examples/itemviews/addressbook/newaddresstab.cpp b/examples/widgets/itemviews/addressbook/newaddresstab.cpp
index f27789a511c..f27789a511c 100644
--- a/examples/itemviews/addressbook/newaddresstab.cpp
+++ b/examples/widgets/itemviews/addressbook/newaddresstab.cpp
diff --git a/examples/itemviews/addressbook/newaddresstab.h b/examples/widgets/itemviews/addressbook/newaddresstab.h
index 4562050f751..4562050f751 100644
--- a/examples/itemviews/addressbook/newaddresstab.h
+++ b/examples/widgets/itemviews/addressbook/newaddresstab.h
diff --git a/examples/itemviews/addressbook/tablemodel.cpp b/examples/widgets/itemviews/addressbook/tablemodel.cpp
index 6d99a02b554..6d99a02b554 100644
--- a/examples/itemviews/addressbook/tablemodel.cpp
+++ b/examples/widgets/itemviews/addressbook/tablemodel.cpp
diff --git a/examples/itemviews/addressbook/tablemodel.h b/examples/widgets/itemviews/addressbook/tablemodel.h
index bb21af587f1..bb21af587f1 100644
--- a/examples/itemviews/addressbook/tablemodel.h
+++ b/examples/widgets/itemviews/addressbook/tablemodel.h
diff --git a/examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop
index 22621f3ba50..22621f3ba50 100644
--- a/examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop
+++ b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.desktop
diff --git a/examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
index 75f96e4d48d..75f96e4d48d 100644
--- a/examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
+++ b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
diff --git a/examples/itemviews/basicsortfiltermodel/main.cpp b/examples/widgets/itemviews/basicsortfiltermodel/main.cpp
index 00b733090a0..00b733090a0 100644
--- a/examples/itemviews/basicsortfiltermodel/main.cpp
+++ b/examples/widgets/itemviews/basicsortfiltermodel/main.cpp
diff --git a/examples/itemviews/basicsortfiltermodel/window.cpp b/examples/widgets/itemviews/basicsortfiltermodel/window.cpp
index f7f43c1753d..f7f43c1753d 100644
--- a/examples/itemviews/basicsortfiltermodel/window.cpp
+++ b/examples/widgets/itemviews/basicsortfiltermodel/window.cpp
diff --git a/examples/itemviews/basicsortfiltermodel/window.h b/examples/widgets/itemviews/basicsortfiltermodel/window.h
index f672a3eb668..f672a3eb668 100644
--- a/examples/itemviews/basicsortfiltermodel/window.h
+++ b/examples/widgets/itemviews/basicsortfiltermodel/window.h
diff --git a/examples/itemviews/chart/chart.desktop b/examples/widgets/itemviews/chart/chart.desktop
index 73e017baeb8..73e017baeb8 100644
--- a/examples/itemviews/chart/chart.desktop
+++ b/examples/widgets/itemviews/chart/chart.desktop
diff --git a/examples/itemviews/chart/chart.pro b/examples/widgets/itemviews/chart/chart.pro
index 310bb85ad70..310bb85ad70 100644
--- a/examples/itemviews/chart/chart.pro
+++ b/examples/widgets/itemviews/chart/chart.pro
diff --git a/examples/itemviews/chart/chart.qrc b/examples/widgets/itemviews/chart/chart.qrc
index 7401d4d2f8b..7401d4d2f8b 100644
--- a/examples/itemviews/chart/chart.qrc
+++ b/examples/widgets/itemviews/chart/chart.qrc
diff --git a/examples/itemviews/chart/main.cpp b/examples/widgets/itemviews/chart/main.cpp
index b1c13116c98..b1c13116c98 100644
--- a/examples/itemviews/chart/main.cpp
+++ b/examples/widgets/itemviews/chart/main.cpp
diff --git a/examples/itemviews/chart/mainwindow.cpp b/examples/widgets/itemviews/chart/mainwindow.cpp
index 584390252b9..584390252b9 100644
--- a/examples/itemviews/chart/mainwindow.cpp
+++ b/examples/widgets/itemviews/chart/mainwindow.cpp
diff --git a/examples/itemviews/chart/mainwindow.h b/examples/widgets/itemviews/chart/mainwindow.h
index 5ce4f30e324..5ce4f30e324 100644
--- a/examples/itemviews/chart/mainwindow.h
+++ b/examples/widgets/itemviews/chart/mainwindow.h
diff --git a/examples/itemviews/chart/mydata.cht b/examples/widgets/itemviews/chart/mydata.cht
index 029fd81458c..029fd81458c 100644
--- a/examples/itemviews/chart/mydata.cht
+++ b/examples/widgets/itemviews/chart/mydata.cht
diff --git a/examples/itemviews/chart/pieview.cpp b/examples/widgets/itemviews/chart/pieview.cpp
index 30f3255689d..30f3255689d 100644
--- a/examples/itemviews/chart/pieview.cpp
+++ b/examples/widgets/itemviews/chart/pieview.cpp
diff --git a/examples/itemviews/chart/pieview.h b/examples/widgets/itemviews/chart/pieview.h
index 208159bf738..208159bf738 100644
--- a/examples/itemviews/chart/pieview.h
+++ b/examples/widgets/itemviews/chart/pieview.h
diff --git a/examples/itemviews/chart/qtdata.cht b/examples/widgets/itemviews/chart/qtdata.cht
index 6386246c4b3..6386246c4b3 100644
--- a/examples/itemviews/chart/qtdata.cht
+++ b/examples/widgets/itemviews/chart/qtdata.cht
diff --git a/examples/itemviews/coloreditorfactory/coloreditorfactory.desktop b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.desktop
index 70b966445c5..70b966445c5 100644
--- a/examples/itemviews/coloreditorfactory/coloreditorfactory.desktop
+++ b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.desktop
diff --git a/examples/itemviews/coloreditorfactory/coloreditorfactory.pro b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro
index 07e1296e060..07e1296e060 100644
--- a/examples/itemviews/coloreditorfactory/coloreditorfactory.pro
+++ b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro
diff --git a/examples/itemviews/coloreditorfactory/colorlisteditor.cpp b/examples/widgets/itemviews/coloreditorfactory/colorlisteditor.cpp
index e8f1f2d7192..e8f1f2d7192 100644
--- a/examples/itemviews/coloreditorfactory/colorlisteditor.cpp
+++ b/examples/widgets/itemviews/coloreditorfactory/colorlisteditor.cpp
diff --git a/examples/itemviews/coloreditorfactory/colorlisteditor.h b/examples/widgets/itemviews/coloreditorfactory/colorlisteditor.h
index 13ece8ef6d0..13ece8ef6d0 100644
--- a/examples/itemviews/coloreditorfactory/colorlisteditor.h
+++ b/examples/widgets/itemviews/coloreditorfactory/colorlisteditor.h
diff --git a/examples/itemviews/coloreditorfactory/main.cpp b/examples/widgets/itemviews/coloreditorfactory/main.cpp
index 5bbe8172145..5bbe8172145 100644
--- a/examples/itemviews/coloreditorfactory/main.cpp
+++ b/examples/widgets/itemviews/coloreditorfactory/main.cpp
diff --git a/examples/itemviews/coloreditorfactory/window.cpp b/examples/widgets/itemviews/coloreditorfactory/window.cpp
index 5c1b03ebbea..5c1b03ebbea 100644
--- a/examples/itemviews/coloreditorfactory/window.cpp
+++ b/examples/widgets/itemviews/coloreditorfactory/window.cpp
diff --git a/examples/itemviews/coloreditorfactory/window.h b/examples/widgets/itemviews/coloreditorfactory/window.h
index 65a9c8e8549..65a9c8e8549 100644
--- a/examples/itemviews/coloreditorfactory/window.h
+++ b/examples/widgets/itemviews/coloreditorfactory/window.h
diff --git a/examples/itemviews/combowidgetmapper/combowidgetmapper.desktop b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.desktop
index 3bbf6ad5f31..3bbf6ad5f31 100644
--- a/examples/itemviews/combowidgetmapper/combowidgetmapper.desktop
+++ b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.desktop
diff --git a/examples/itemviews/combowidgetmapper/combowidgetmapper.pro b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro
index 9ea1fa0e25e..9ea1fa0e25e 100644
--- a/examples/itemviews/combowidgetmapper/combowidgetmapper.pro
+++ b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro
diff --git a/examples/itemviews/combowidgetmapper/main.cpp b/examples/widgets/itemviews/combowidgetmapper/main.cpp
index 0fc4966ccf6..0fc4966ccf6 100644
--- a/examples/itemviews/combowidgetmapper/main.cpp
+++ b/examples/widgets/itemviews/combowidgetmapper/main.cpp
diff --git a/examples/itemviews/combowidgetmapper/window.cpp b/examples/widgets/itemviews/combowidgetmapper/window.cpp
index 8c735c04c52..8c735c04c52 100644
--- a/examples/itemviews/combowidgetmapper/window.cpp
+++ b/examples/widgets/itemviews/combowidgetmapper/window.cpp
diff --git a/examples/itemviews/combowidgetmapper/window.h b/examples/widgets/itemviews/combowidgetmapper/window.h
index 8ec5523cf18..8ec5523cf18 100644
--- a/examples/itemviews/combowidgetmapper/window.h
+++ b/examples/widgets/itemviews/combowidgetmapper/window.h
diff --git a/examples/itemviews/customsortfiltermodel/customsortfiltermodel.desktop b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.desktop
index 3c961f7e656..3c961f7e656 100644
--- a/examples/itemviews/customsortfiltermodel/customsortfiltermodel.desktop
+++ b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.desktop
diff --git a/examples/itemviews/customsortfiltermodel/customsortfiltermodel.pro b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro
index a2288b953c1..a2288b953c1 100644
--- a/examples/itemviews/customsortfiltermodel/customsortfiltermodel.pro
+++ b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro
diff --git a/examples/itemviews/customsortfiltermodel/main.cpp b/examples/widgets/itemviews/customsortfiltermodel/main.cpp
index 6df986324e2..6df986324e2 100644
--- a/examples/itemviews/customsortfiltermodel/main.cpp
+++ b/examples/widgets/itemviews/customsortfiltermodel/main.cpp
diff --git a/examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
index 3100efa4ac2..3100efa4ac2 100644
--- a/examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
+++ b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
diff --git a/examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.h b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
index 8ca3e10fd51..8ca3e10fd51 100644
--- a/examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
+++ b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
diff --git a/examples/itemviews/customsortfiltermodel/window.cpp b/examples/widgets/itemviews/customsortfiltermodel/window.cpp
index 0a8799dccbd..0a8799dccbd 100644
--- a/examples/itemviews/customsortfiltermodel/window.cpp
+++ b/examples/widgets/itemviews/customsortfiltermodel/window.cpp
diff --git a/examples/itemviews/customsortfiltermodel/window.h b/examples/widgets/itemviews/customsortfiltermodel/window.h
index 36650aedad1..36650aedad1 100644
--- a/examples/itemviews/customsortfiltermodel/window.h
+++ b/examples/widgets/itemviews/customsortfiltermodel/window.h
diff --git a/examples/itemviews/dirview/dirview.desktop b/examples/widgets/itemviews/dirview/dirview.desktop
index 51ec4df26cd..51ec4df26cd 100644
--- a/examples/itemviews/dirview/dirview.desktop
+++ b/examples/widgets/itemviews/dirview/dirview.desktop
diff --git a/examples/itemviews/dirview/dirview.pro b/examples/widgets/itemviews/dirview/dirview.pro
index 825f20c6309..825f20c6309 100644
--- a/examples/itemviews/dirview/dirview.pro
+++ b/examples/widgets/itemviews/dirview/dirview.pro
diff --git a/examples/itemviews/dirview/main.cpp b/examples/widgets/itemviews/dirview/main.cpp
index 55083afa8f7..55083afa8f7 100644
--- a/examples/itemviews/dirview/main.cpp
+++ b/examples/widgets/itemviews/dirview/main.cpp
diff --git a/examples/itemviews/editabletreemodel/default.txt b/examples/widgets/itemviews/editabletreemodel/default.txt
index 2b2fb579ae1..2b2fb579ae1 100644
--- a/examples/itemviews/editabletreemodel/default.txt
+++ b/examples/widgets/itemviews/editabletreemodel/default.txt
diff --git a/examples/itemviews/editabletreemodel/editabletreemodel.desktop b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.desktop
index 17d17330df9..17d17330df9 100644
--- a/examples/itemviews/editabletreemodel/editabletreemodel.desktop
+++ b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.desktop
diff --git a/examples/itemviews/editabletreemodel/editabletreemodel.pro b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro
index f86298542db..f86298542db 100644
--- a/examples/itemviews/editabletreemodel/editabletreemodel.pro
+++ b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro
diff --git a/examples/itemviews/editabletreemodel/editabletreemodel.qrc b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.qrc
index 2fb48f2e626..2fb48f2e626 100644
--- a/examples/itemviews/editabletreemodel/editabletreemodel.qrc
+++ b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.qrc
diff --git a/examples/itemviews/editabletreemodel/main.cpp b/examples/widgets/itemviews/editabletreemodel/main.cpp
index 516adf15432..516adf15432 100644
--- a/examples/itemviews/editabletreemodel/main.cpp
+++ b/examples/widgets/itemviews/editabletreemodel/main.cpp
diff --git a/examples/itemviews/editabletreemodel/mainwindow.cpp b/examples/widgets/itemviews/editabletreemodel/mainwindow.cpp
index 115b02e28e5..115b02e28e5 100644
--- a/examples/itemviews/editabletreemodel/mainwindow.cpp
+++ b/examples/widgets/itemviews/editabletreemodel/mainwindow.cpp
diff --git a/examples/itemviews/editabletreemodel/mainwindow.h b/examples/widgets/itemviews/editabletreemodel/mainwindow.h
index e45037c2e04..e45037c2e04 100644
--- a/examples/itemviews/editabletreemodel/mainwindow.h
+++ b/examples/widgets/itemviews/editabletreemodel/mainwindow.h
diff --git a/examples/itemviews/editabletreemodel/mainwindow.ui b/examples/widgets/itemviews/editabletreemodel/mainwindow.ui
index 2ad084ae244..2ad084ae244 100644
--- a/examples/itemviews/editabletreemodel/mainwindow.ui
+++ b/examples/widgets/itemviews/editabletreemodel/mainwindow.ui
diff --git a/examples/itemviews/editabletreemodel/treeitem.cpp b/examples/widgets/itemviews/editabletreemodel/treeitem.cpp
index c728f21a92f..c728f21a92f 100644
--- a/examples/itemviews/editabletreemodel/treeitem.cpp
+++ b/examples/widgets/itemviews/editabletreemodel/treeitem.cpp
diff --git a/examples/itemviews/editabletreemodel/treeitem.h b/examples/widgets/itemviews/editabletreemodel/treeitem.h
index 84265147592..84265147592 100644
--- a/examples/itemviews/editabletreemodel/treeitem.h
+++ b/examples/widgets/itemviews/editabletreemodel/treeitem.h
diff --git a/examples/itemviews/editabletreemodel/treemodel.cpp b/examples/widgets/itemviews/editabletreemodel/treemodel.cpp
index 8192c14e9fb..8192c14e9fb 100644
--- a/examples/itemviews/editabletreemodel/treemodel.cpp
+++ b/examples/widgets/itemviews/editabletreemodel/treemodel.cpp
diff --git a/examples/itemviews/editabletreemodel/treemodel.h b/examples/widgets/itemviews/editabletreemodel/treemodel.h
index f124df2e1d5..f124df2e1d5 100644
--- a/examples/itemviews/editabletreemodel/treemodel.h
+++ b/examples/widgets/itemviews/editabletreemodel/treemodel.h
diff --git a/examples/itemviews/fetchmore/fetchmore.desktop b/examples/widgets/itemviews/fetchmore/fetchmore.desktop
index b8c9ff32cb0..b8c9ff32cb0 100644
--- a/examples/itemviews/fetchmore/fetchmore.desktop
+++ b/examples/widgets/itemviews/fetchmore/fetchmore.desktop
diff --git a/examples/itemviews/fetchmore/fetchmore.pro b/examples/widgets/itemviews/fetchmore/fetchmore.pro
index 28af7e9ac0f..28af7e9ac0f 100644
--- a/examples/itemviews/fetchmore/fetchmore.pro
+++ b/examples/widgets/itemviews/fetchmore/fetchmore.pro
diff --git a/examples/itemviews/fetchmore/filelistmodel.cpp b/examples/widgets/itemviews/fetchmore/filelistmodel.cpp
index d9678191d92..d9678191d92 100644
--- a/examples/itemviews/fetchmore/filelistmodel.cpp
+++ b/examples/widgets/itemviews/fetchmore/filelistmodel.cpp
diff --git a/examples/itemviews/fetchmore/filelistmodel.h b/examples/widgets/itemviews/fetchmore/filelistmodel.h
index f3e9f758c71..f3e9f758c71 100644
--- a/examples/itemviews/fetchmore/filelistmodel.h
+++ b/examples/widgets/itemviews/fetchmore/filelistmodel.h
diff --git a/examples/itemviews/fetchmore/main.cpp b/examples/widgets/itemviews/fetchmore/main.cpp
index 97b94d1d3cc..97b94d1d3cc 100644
--- a/examples/itemviews/fetchmore/main.cpp
+++ b/examples/widgets/itemviews/fetchmore/main.cpp
diff --git a/examples/itemviews/fetchmore/window.cpp b/examples/widgets/itemviews/fetchmore/window.cpp
index f138fb4bd4b..f138fb4bd4b 100644
--- a/examples/itemviews/fetchmore/window.cpp
+++ b/examples/widgets/itemviews/fetchmore/window.cpp
diff --git a/examples/itemviews/fetchmore/window.h b/examples/widgets/itemviews/fetchmore/window.h
index cf6208b6434..cf6208b6434 100644
--- a/examples/itemviews/fetchmore/window.h
+++ b/examples/widgets/itemviews/fetchmore/window.h
diff --git a/examples/itemviews/frozencolumn/freezetablewidget.cpp b/examples/widgets/itemviews/frozencolumn/freezetablewidget.cpp
index ae83c341c40..ae83c341c40 100644
--- a/examples/itemviews/frozencolumn/freezetablewidget.cpp
+++ b/examples/widgets/itemviews/frozencolumn/freezetablewidget.cpp
diff --git a/examples/itemviews/frozencolumn/freezetablewidget.h b/examples/widgets/itemviews/frozencolumn/freezetablewidget.h
index 1432c012f5c..1432c012f5c 100644
--- a/examples/itemviews/frozencolumn/freezetablewidget.h
+++ b/examples/widgets/itemviews/frozencolumn/freezetablewidget.h
diff --git a/examples/itemviews/frozencolumn/frozencolumn.desktop b/examples/widgets/itemviews/frozencolumn/frozencolumn.desktop
index 3d1e3b430d3..3d1e3b430d3 100644
--- a/examples/itemviews/frozencolumn/frozencolumn.desktop
+++ b/examples/widgets/itemviews/frozencolumn/frozencolumn.desktop
diff --git a/examples/itemviews/frozencolumn/frozencolumn.pro b/examples/widgets/itemviews/frozencolumn/frozencolumn.pro
index 34a4a4de8c1..34a4a4de8c1 100644
--- a/examples/itemviews/frozencolumn/frozencolumn.pro
+++ b/examples/widgets/itemviews/frozencolumn/frozencolumn.pro
diff --git a/examples/itemviews/frozencolumn/grades.qrc b/examples/widgets/itemviews/frozencolumn/grades.qrc
index 5f16d56931f..5f16d56931f 100644
--- a/examples/itemviews/frozencolumn/grades.qrc
+++ b/examples/widgets/itemviews/frozencolumn/grades.qrc
diff --git a/examples/itemviews/frozencolumn/grades.txt b/examples/widgets/itemviews/frozencolumn/grades.txt
index e1c6fcc49e6..e1c6fcc49e6 100644
--- a/examples/itemviews/frozencolumn/grades.txt
+++ b/examples/widgets/itemviews/frozencolumn/grades.txt
diff --git a/examples/itemviews/frozencolumn/main.cpp b/examples/widgets/itemviews/frozencolumn/main.cpp
index ff50e97db9b..ff50e97db9b 100644
--- a/examples/itemviews/frozencolumn/main.cpp
+++ b/examples/widgets/itemviews/frozencolumn/main.cpp
diff --git a/examples/itemviews/interview/README b/examples/widgets/itemviews/interview/README
index 50894428f6e..50894428f6e 100644
--- a/examples/itemviews/interview/README
+++ b/examples/widgets/itemviews/interview/README
diff --git a/examples/itemviews/interview/images/folder.png b/examples/widgets/itemviews/interview/images/folder.png
index 589fd2df594..589fd2df594 100644
--- a/examples/itemviews/interview/images/folder.png
+++ b/examples/widgets/itemviews/interview/images/folder.png
Binary files differ
diff --git a/examples/itemviews/interview/images/interview.png b/examples/widgets/itemviews/interview/images/interview.png
index 0c3d690258f..0c3d690258f 100644
--- a/examples/itemviews/interview/images/interview.png
+++ b/examples/widgets/itemviews/interview/images/interview.png
Binary files differ
diff --git a/examples/itemviews/interview/images/services.png b/examples/widgets/itemviews/interview/images/services.png
index 6b2ad969d4d..6b2ad969d4d 100644
--- a/examples/itemviews/interview/images/services.png
+++ b/examples/widgets/itemviews/interview/images/services.png
Binary files differ
diff --git a/examples/itemviews/interview/interview.pro b/examples/widgets/itemviews/interview/interview.pro
index 5cd0d1f9fce..5cd0d1f9fce 100644
--- a/examples/itemviews/interview/interview.pro
+++ b/examples/widgets/itemviews/interview/interview.pro
diff --git a/examples/itemviews/interview/interview.qrc b/examples/widgets/itemviews/interview/interview.qrc
index b28ea34d8a7..b28ea34d8a7 100644
--- a/examples/itemviews/interview/interview.qrc
+++ b/examples/widgets/itemviews/interview/interview.qrc
diff --git a/examples/itemviews/interview/main.cpp b/examples/widgets/itemviews/interview/main.cpp
index fa059cdb536..fa059cdb536 100644
--- a/examples/itemviews/interview/main.cpp
+++ b/examples/widgets/itemviews/interview/main.cpp
diff --git a/examples/itemviews/interview/model.cpp b/examples/widgets/itemviews/interview/model.cpp
index 3b20f91ed61..3b20f91ed61 100644
--- a/examples/itemviews/interview/model.cpp
+++ b/examples/widgets/itemviews/interview/model.cpp
diff --git a/examples/itemviews/interview/model.h b/examples/widgets/itemviews/interview/model.h
index 0480ce1763f..0480ce1763f 100644
--- a/examples/itemviews/interview/model.h
+++ b/examples/widgets/itemviews/interview/model.h
diff --git a/examples/itemviews/itemviews.pro b/examples/widgets/itemviews/itemviews.pro
index 347c259bc20..347c259bc20 100644
--- a/examples/itemviews/itemviews.pro
+++ b/examples/widgets/itemviews/itemviews.pro
diff --git a/examples/itemviews/pixelator/imagemodel.cpp b/examples/widgets/itemviews/pixelator/imagemodel.cpp
index efbf2d35bc0..efbf2d35bc0 100644
--- a/examples/itemviews/pixelator/imagemodel.cpp
+++ b/examples/widgets/itemviews/pixelator/imagemodel.cpp
diff --git a/examples/itemviews/pixelator/imagemodel.h b/examples/widgets/itemviews/pixelator/imagemodel.h
index 2f778ca9273..2f778ca9273 100644
--- a/examples/itemviews/pixelator/imagemodel.h
+++ b/examples/widgets/itemviews/pixelator/imagemodel.h
diff --git a/examples/itemviews/pixelator/images.qrc b/examples/widgets/itemviews/pixelator/images.qrc
index c105e13895a..c105e13895a 100644
--- a/examples/itemviews/pixelator/images.qrc
+++ b/examples/widgets/itemviews/pixelator/images.qrc
diff --git a/examples/itemviews/pixelator/images/qt.png b/examples/widgets/itemviews/pixelator/images/qt.png
index a2c9c77c16c..a2c9c77c16c 100644
--- a/examples/itemviews/pixelator/images/qt.png
+++ b/examples/widgets/itemviews/pixelator/images/qt.png
Binary files differ
diff --git a/examples/itemviews/pixelator/main.cpp b/examples/widgets/itemviews/pixelator/main.cpp
index e8770517752..e8770517752 100644
--- a/examples/itemviews/pixelator/main.cpp
+++ b/examples/widgets/itemviews/pixelator/main.cpp
diff --git a/examples/itemviews/pixelator/mainwindow.cpp b/examples/widgets/itemviews/pixelator/mainwindow.cpp
index 20dfba18f4a..20dfba18f4a 100644
--- a/examples/itemviews/pixelator/mainwindow.cpp
+++ b/examples/widgets/itemviews/pixelator/mainwindow.cpp
diff --git a/examples/itemviews/pixelator/mainwindow.h b/examples/widgets/itemviews/pixelator/mainwindow.h
index 1aea1f9807d..1aea1f9807d 100644
--- a/examples/itemviews/pixelator/mainwindow.h
+++ b/examples/widgets/itemviews/pixelator/mainwindow.h
diff --git a/examples/itemviews/pixelator/pixelator.desktop b/examples/widgets/itemviews/pixelator/pixelator.desktop
index 751deb13b38..751deb13b38 100644
--- a/examples/itemviews/pixelator/pixelator.desktop
+++ b/examples/widgets/itemviews/pixelator/pixelator.desktop
diff --git a/examples/itemviews/pixelator/pixelator.pro b/examples/widgets/itemviews/pixelator/pixelator.pro
index 48f8a58a582..48f8a58a582 100644
--- a/examples/itemviews/pixelator/pixelator.pro
+++ b/examples/widgets/itemviews/pixelator/pixelator.pro
diff --git a/examples/itemviews/pixelator/pixeldelegate.cpp b/examples/widgets/itemviews/pixelator/pixeldelegate.cpp
index 5904c2e680d..5904c2e680d 100644
--- a/examples/itemviews/pixelator/pixeldelegate.cpp
+++ b/examples/widgets/itemviews/pixelator/pixeldelegate.cpp
diff --git a/examples/itemviews/pixelator/pixeldelegate.h b/examples/widgets/itemviews/pixelator/pixeldelegate.h
index 4035bc45714..4035bc45714 100644
--- a/examples/itemviews/pixelator/pixeldelegate.h
+++ b/examples/widgets/itemviews/pixelator/pixeldelegate.h
diff --git a/examples/itemviews/puzzle/example.jpg b/examples/widgets/itemviews/puzzle/example.jpg
index e09fb707570..e09fb707570 100644
--- a/examples/itemviews/puzzle/example.jpg
+++ b/examples/widgets/itemviews/puzzle/example.jpg
Binary files differ
diff --git a/examples/itemviews/puzzle/main.cpp b/examples/widgets/itemviews/puzzle/main.cpp
index 31b71428193..31b71428193 100644
--- a/examples/itemviews/puzzle/main.cpp
+++ b/examples/widgets/itemviews/puzzle/main.cpp
diff --git a/examples/itemviews/puzzle/mainwindow.cpp b/examples/widgets/itemviews/puzzle/mainwindow.cpp
index 4b9b10946ab..4b9b10946ab 100644
--- a/examples/itemviews/puzzle/mainwindow.cpp
+++ b/examples/widgets/itemviews/puzzle/mainwindow.cpp
diff --git a/examples/itemviews/puzzle/mainwindow.h b/examples/widgets/itemviews/puzzle/mainwindow.h
index 83704d99323..83704d99323 100644
--- a/examples/itemviews/puzzle/mainwindow.h
+++ b/examples/widgets/itemviews/puzzle/mainwindow.h
diff --git a/examples/itemviews/puzzle/piecesmodel.cpp b/examples/widgets/itemviews/puzzle/piecesmodel.cpp
index 68574606e24..68574606e24 100644
--- a/examples/itemviews/puzzle/piecesmodel.cpp
+++ b/examples/widgets/itemviews/puzzle/piecesmodel.cpp
diff --git a/examples/itemviews/puzzle/piecesmodel.h b/examples/widgets/itemviews/puzzle/piecesmodel.h
index e8fa45a9a0a..e8fa45a9a0a 100644
--- a/examples/itemviews/puzzle/piecesmodel.h
+++ b/examples/widgets/itemviews/puzzle/piecesmodel.h
diff --git a/examples/itemviews/puzzle/puzzle.desktop b/examples/widgets/itemviews/puzzle/puzzle.desktop
index d493e7dd415..d493e7dd415 100644
--- a/examples/itemviews/puzzle/puzzle.desktop
+++ b/examples/widgets/itemviews/puzzle/puzzle.desktop
diff --git a/examples/itemviews/puzzle/puzzle.pro b/examples/widgets/itemviews/puzzle/puzzle.pro
index 3f76bd8fd5c..3f76bd8fd5c 100644
--- a/examples/itemviews/puzzle/puzzle.pro
+++ b/examples/widgets/itemviews/puzzle/puzzle.pro
diff --git a/examples/itemviews/puzzle/puzzle.qrc b/examples/widgets/itemviews/puzzle/puzzle.qrc
index 4076cec0267..4076cec0267 100644
--- a/examples/itemviews/puzzle/puzzle.qrc
+++ b/examples/widgets/itemviews/puzzle/puzzle.qrc
diff --git a/examples/itemviews/puzzle/puzzlewidget.cpp b/examples/widgets/itemviews/puzzle/puzzlewidget.cpp
index 96d8c6068f4..96d8c6068f4 100644
--- a/examples/itemviews/puzzle/puzzlewidget.cpp
+++ b/examples/widgets/itemviews/puzzle/puzzlewidget.cpp
diff --git a/examples/itemviews/puzzle/puzzlewidget.h b/examples/widgets/itemviews/puzzle/puzzlewidget.h
index 1c0fc77a5f9..1c0fc77a5f9 100644
--- a/examples/itemviews/puzzle/puzzlewidget.h
+++ b/examples/widgets/itemviews/puzzle/puzzlewidget.h
diff --git a/examples/itemviews/simpledommodel/domitem.cpp b/examples/widgets/itemviews/simpledommodel/domitem.cpp
index 2d7ce5a31eb..2d7ce5a31eb 100644
--- a/examples/itemviews/simpledommodel/domitem.cpp
+++ b/examples/widgets/itemviews/simpledommodel/domitem.cpp
diff --git a/examples/itemviews/simpledommodel/domitem.h b/examples/widgets/itemviews/simpledommodel/domitem.h
index 8e9da9dd279..8e9da9dd279 100644
--- a/examples/itemviews/simpledommodel/domitem.h
+++ b/examples/widgets/itemviews/simpledommodel/domitem.h
diff --git a/examples/itemviews/simpledommodel/dommodel.cpp b/examples/widgets/itemviews/simpledommodel/dommodel.cpp
index 75d4c3e7233..75d4c3e7233 100644
--- a/examples/itemviews/simpledommodel/dommodel.cpp
+++ b/examples/widgets/itemviews/simpledommodel/dommodel.cpp
diff --git a/examples/itemviews/simpledommodel/dommodel.h b/examples/widgets/itemviews/simpledommodel/dommodel.h
index 386f976f79e..386f976f79e 100644
--- a/examples/itemviews/simpledommodel/dommodel.h
+++ b/examples/widgets/itemviews/simpledommodel/dommodel.h
diff --git a/examples/itemviews/simpledommodel/main.cpp b/examples/widgets/itemviews/simpledommodel/main.cpp
index e65d428bc63..e65d428bc63 100644
--- a/examples/itemviews/simpledommodel/main.cpp
+++ b/examples/widgets/itemviews/simpledommodel/main.cpp
diff --git a/examples/itemviews/simpledommodel/mainwindow.cpp b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp
index f84d8841e74..f84d8841e74 100644
--- a/examples/itemviews/simpledommodel/mainwindow.cpp
+++ b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp
diff --git a/examples/itemviews/simpledommodel/mainwindow.h b/examples/widgets/itemviews/simpledommodel/mainwindow.h
index 16e0b800f92..16e0b800f92 100644
--- a/examples/itemviews/simpledommodel/mainwindow.h
+++ b/examples/widgets/itemviews/simpledommodel/mainwindow.h
diff --git a/examples/itemviews/simpledommodel/simpledommodel.desktop b/examples/widgets/itemviews/simpledommodel/simpledommodel.desktop
index a53b8968481..a53b8968481 100644
--- a/examples/itemviews/simpledommodel/simpledommodel.desktop
+++ b/examples/widgets/itemviews/simpledommodel/simpledommodel.desktop
diff --git a/examples/itemviews/simpledommodel/simpledommodel.pro b/examples/widgets/itemviews/simpledommodel/simpledommodel.pro
index 2d30e71c1a0..2d30e71c1a0 100644
--- a/examples/itemviews/simpledommodel/simpledommodel.pro
+++ b/examples/widgets/itemviews/simpledommodel/simpledommodel.pro
diff --git a/examples/itemviews/simpletreemodel/default.txt b/examples/widgets/itemviews/simpletreemodel/default.txt
index 2b2fb579ae1..2b2fb579ae1 100644
--- a/examples/itemviews/simpletreemodel/default.txt
+++ b/examples/widgets/itemviews/simpletreemodel/default.txt
diff --git a/examples/itemviews/simpletreemodel/main.cpp b/examples/widgets/itemviews/simpletreemodel/main.cpp
index a7dd720a2f0..a7dd720a2f0 100644
--- a/examples/itemviews/simpletreemodel/main.cpp
+++ b/examples/widgets/itemviews/simpletreemodel/main.cpp
diff --git a/examples/itemviews/simpletreemodel/simpletreemodel.desktop b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.desktop
index 361202f5c06..361202f5c06 100644
--- a/examples/itemviews/simpletreemodel/simpletreemodel.desktop
+++ b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.desktop
diff --git a/examples/itemviews/simpletreemodel/simpletreemodel.pro b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro
index cd4f8af6049..cd4f8af6049 100644
--- a/examples/itemviews/simpletreemodel/simpletreemodel.pro
+++ b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro
diff --git a/examples/itemviews/simpletreemodel/simpletreemodel.qrc b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.qrc
index a8ecc98d28a..a8ecc98d28a 100644
--- a/examples/itemviews/simpletreemodel/simpletreemodel.qrc
+++ b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.qrc
diff --git a/examples/itemviews/simpletreemodel/treeitem.cpp b/examples/widgets/itemviews/simpletreemodel/treeitem.cpp
index a296f6ccd5d..a296f6ccd5d 100644
--- a/examples/itemviews/simpletreemodel/treeitem.cpp
+++ b/examples/widgets/itemviews/simpletreemodel/treeitem.cpp
diff --git a/examples/itemviews/simpletreemodel/treeitem.h b/examples/widgets/itemviews/simpletreemodel/treeitem.h
index b2a7a830665..b2a7a830665 100644
--- a/examples/itemviews/simpletreemodel/treeitem.h
+++ b/examples/widgets/itemviews/simpletreemodel/treeitem.h
diff --git a/examples/itemviews/simpletreemodel/treemodel.cpp b/examples/widgets/itemviews/simpletreemodel/treemodel.cpp
index 1fad9ba347c..1fad9ba347c 100644
--- a/examples/itemviews/simpletreemodel/treemodel.cpp
+++ b/examples/widgets/itemviews/simpletreemodel/treemodel.cpp
diff --git a/examples/itemviews/simpletreemodel/treemodel.h b/examples/widgets/itemviews/simpletreemodel/treemodel.h
index 9cf870c0fc2..9cf870c0fc2 100644
--- a/examples/itemviews/simpletreemodel/treemodel.h
+++ b/examples/widgets/itemviews/simpletreemodel/treemodel.h
diff --git a/examples/itemviews/simplewidgetmapper/main.cpp b/examples/widgets/itemviews/simplewidgetmapper/main.cpp
index 0fc4966ccf6..0fc4966ccf6 100644
--- a/examples/itemviews/simplewidgetmapper/main.cpp
+++ b/examples/widgets/itemviews/simplewidgetmapper/main.cpp
diff --git a/examples/itemviews/simplewidgetmapper/simplewidgetmapper.desktop b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.desktop
index 6b09a236da1..6b09a236da1 100644
--- a/examples/itemviews/simplewidgetmapper/simplewidgetmapper.desktop
+++ b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.desktop
diff --git a/examples/itemviews/simplewidgetmapper/simplewidgetmapper.pro b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro
index 3b2fd8b257e..3b2fd8b257e 100644
--- a/examples/itemviews/simplewidgetmapper/simplewidgetmapper.pro
+++ b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro
diff --git a/examples/itemviews/simplewidgetmapper/window.cpp b/examples/widgets/itemviews/simplewidgetmapper/window.cpp
index 5b5ed8f2315..5b5ed8f2315 100644
--- a/examples/itemviews/simplewidgetmapper/window.cpp
+++ b/examples/widgets/itemviews/simplewidgetmapper/window.cpp
diff --git a/examples/itemviews/simplewidgetmapper/window.h b/examples/widgets/itemviews/simplewidgetmapper/window.h
index 77772e522fd..77772e522fd 100644
--- a/examples/itemviews/simplewidgetmapper/window.h
+++ b/examples/widgets/itemviews/simplewidgetmapper/window.h
diff --git a/examples/itemviews/spinboxdelegate/delegate.cpp b/examples/widgets/itemviews/spinboxdelegate/delegate.cpp
index 2967b6ae387..2967b6ae387 100644
--- a/examples/itemviews/spinboxdelegate/delegate.cpp
+++ b/examples/widgets/itemviews/spinboxdelegate/delegate.cpp
diff --git a/examples/itemviews/spinboxdelegate/delegate.h b/examples/widgets/itemviews/spinboxdelegate/delegate.h
index 19d647043df..19d647043df 100644
--- a/examples/itemviews/spinboxdelegate/delegate.h
+++ b/examples/widgets/itemviews/spinboxdelegate/delegate.h
diff --git a/examples/itemviews/spinboxdelegate/main.cpp b/examples/widgets/itemviews/spinboxdelegate/main.cpp
index 6fdffad3ac8..6fdffad3ac8 100644
--- a/examples/itemviews/spinboxdelegate/main.cpp
+++ b/examples/widgets/itemviews/spinboxdelegate/main.cpp
diff --git a/examples/itemviews/spinboxdelegate/spinboxdelegate.desktop b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.desktop
index 347e408e960..347e408e960 100644
--- a/examples/itemviews/spinboxdelegate/spinboxdelegate.desktop
+++ b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.desktop
diff --git a/examples/itemviews/spinboxdelegate/spinboxdelegate.pro b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro
index f6416ff936a..f6416ff936a 100644
--- a/examples/itemviews/spinboxdelegate/spinboxdelegate.pro
+++ b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro
diff --git a/examples/itemviews/spreadsheet/images/interview.png b/examples/widgets/itemviews/spreadsheet/images/interview.png
index 0c3d690258f..0c3d690258f 100644
--- a/examples/itemviews/spreadsheet/images/interview.png
+++ b/examples/widgets/itemviews/spreadsheet/images/interview.png
Binary files differ
diff --git a/examples/itemviews/spreadsheet/main.cpp b/examples/widgets/itemviews/spreadsheet/main.cpp
index 92b890f735c..92b890f735c 100644
--- a/examples/itemviews/spreadsheet/main.cpp
+++ b/examples/widgets/itemviews/spreadsheet/main.cpp
diff --git a/examples/itemviews/spreadsheet/printview.cpp b/examples/widgets/itemviews/spreadsheet/printview.cpp
index fe94fde63c3..fe94fde63c3 100644
--- a/examples/itemviews/spreadsheet/printview.cpp
+++ b/examples/widgets/itemviews/spreadsheet/printview.cpp
diff --git a/examples/itemviews/spreadsheet/printview.h b/examples/widgets/itemviews/spreadsheet/printview.h
index c7674f88ce7..c7674f88ce7 100644
--- a/examples/itemviews/spreadsheet/printview.h
+++ b/examples/widgets/itemviews/spreadsheet/printview.h
diff --git a/examples/itemviews/spreadsheet/spreadsheet.cpp b/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp
index 5dff7dc0599..5dff7dc0599 100644
--- a/examples/itemviews/spreadsheet/spreadsheet.cpp
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp
diff --git a/examples/itemviews/spreadsheet/spreadsheet.h b/examples/widgets/itemviews/spreadsheet/spreadsheet.h
index d2b76c9063f..d2b76c9063f 100644
--- a/examples/itemviews/spreadsheet/spreadsheet.h
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheet.h
diff --git a/examples/itemviews/spreadsheet/spreadsheet.pro b/examples/widgets/itemviews/spreadsheet/spreadsheet.pro
index 48fd07e7fdd..48fd07e7fdd 100644
--- a/examples/itemviews/spreadsheet/spreadsheet.pro
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheet.pro
diff --git a/examples/itemviews/spreadsheet/spreadsheet.qrc b/examples/widgets/itemviews/spreadsheet/spreadsheet.qrc
index 13f496d8e37..13f496d8e37 100644
--- a/examples/itemviews/spreadsheet/spreadsheet.qrc
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheet.qrc
diff --git a/examples/itemviews/spreadsheet/spreadsheetdelegate.cpp b/examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.cpp
index d5e747dc2f9..d5e747dc2f9 100644
--- a/examples/itemviews/spreadsheet/spreadsheetdelegate.cpp
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.cpp
diff --git a/examples/itemviews/spreadsheet/spreadsheetdelegate.h b/examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.h
index 3487b16ab7a..3487b16ab7a 100644
--- a/examples/itemviews/spreadsheet/spreadsheetdelegate.h
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.h
diff --git a/examples/itemviews/spreadsheet/spreadsheetitem.cpp b/examples/widgets/itemviews/spreadsheet/spreadsheetitem.cpp
index 88f8afa325c..88f8afa325c 100644
--- a/examples/itemviews/spreadsheet/spreadsheetitem.cpp
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheetitem.cpp
diff --git a/examples/itemviews/spreadsheet/spreadsheetitem.h b/examples/widgets/itemviews/spreadsheet/spreadsheetitem.h
index e61138c08bf..e61138c08bf 100644
--- a/examples/itemviews/spreadsheet/spreadsheetitem.h
+++ b/examples/widgets/itemviews/spreadsheet/spreadsheetitem.h
diff --git a/examples/itemviews/stardelegate/main.cpp b/examples/widgets/itemviews/stardelegate/main.cpp
index 3c988e0a8af..3c988e0a8af 100644
--- a/examples/itemviews/stardelegate/main.cpp
+++ b/examples/widgets/itemviews/stardelegate/main.cpp
diff --git a/examples/itemviews/stardelegate/stardelegate.cpp b/examples/widgets/itemviews/stardelegate/stardelegate.cpp
index 3032c200881..3032c200881 100644
--- a/examples/itemviews/stardelegate/stardelegate.cpp
+++ b/examples/widgets/itemviews/stardelegate/stardelegate.cpp
diff --git a/examples/itemviews/stardelegate/stardelegate.desktop b/examples/widgets/itemviews/stardelegate/stardelegate.desktop
index d508c3b2863..d508c3b2863 100644
--- a/examples/itemviews/stardelegate/stardelegate.desktop
+++ b/examples/widgets/itemviews/stardelegate/stardelegate.desktop
diff --git a/examples/itemviews/stardelegate/stardelegate.h b/examples/widgets/itemviews/stardelegate/stardelegate.h
index 6c53ab88338..6c53ab88338 100644
--- a/examples/itemviews/stardelegate/stardelegate.h
+++ b/examples/widgets/itemviews/stardelegate/stardelegate.h
diff --git a/examples/itemviews/stardelegate/stardelegate.pro b/examples/widgets/itemviews/stardelegate/stardelegate.pro
index 915c26a524e..915c26a524e 100644
--- a/examples/itemviews/stardelegate/stardelegate.pro
+++ b/examples/widgets/itemviews/stardelegate/stardelegate.pro
diff --git a/examples/itemviews/stardelegate/stareditor.cpp b/examples/widgets/itemviews/stardelegate/stareditor.cpp
index 795a7489412..795a7489412 100644
--- a/examples/itemviews/stardelegate/stareditor.cpp
+++ b/examples/widgets/itemviews/stardelegate/stareditor.cpp
diff --git a/examples/itemviews/stardelegate/stareditor.h b/examples/widgets/itemviews/stardelegate/stareditor.h
index 88bee7d28d9..88bee7d28d9 100644
--- a/examples/itemviews/stardelegate/stareditor.h
+++ b/examples/widgets/itemviews/stardelegate/stareditor.h
diff --git a/examples/itemviews/stardelegate/starrating.cpp b/examples/widgets/itemviews/stardelegate/starrating.cpp
index cea9330db2e..cea9330db2e 100644
--- a/examples/itemviews/stardelegate/starrating.cpp
+++ b/examples/widgets/itemviews/stardelegate/starrating.cpp
diff --git a/examples/itemviews/stardelegate/starrating.h b/examples/widgets/itemviews/stardelegate/starrating.h
index 04fae2509a7..04fae2509a7 100644
--- a/examples/itemviews/stardelegate/starrating.h
+++ b/examples/widgets/itemviews/stardelegate/starrating.h
diff --git a/examples/layouts/README b/examples/widgets/layouts/README
index 589400280d9..589400280d9 100644
--- a/examples/layouts/README
+++ b/examples/widgets/layouts/README
diff --git a/examples/layouts/basiclayouts/basiclayouts.desktop b/examples/widgets/layouts/basiclayouts/basiclayouts.desktop
index 6c612eed09b..6c612eed09b 100644
--- a/examples/layouts/basiclayouts/basiclayouts.desktop
+++ b/examples/widgets/layouts/basiclayouts/basiclayouts.desktop
diff --git a/examples/layouts/basiclayouts/basiclayouts.pro b/examples/widgets/layouts/basiclayouts/basiclayouts.pro
index b2c4ad896fe..b2c4ad896fe 100644
--- a/examples/layouts/basiclayouts/basiclayouts.pro
+++ b/examples/widgets/layouts/basiclayouts/basiclayouts.pro
diff --git a/examples/layouts/basiclayouts/dialog.cpp b/examples/widgets/layouts/basiclayouts/dialog.cpp
index ca8ab60923f..ca8ab60923f 100644
--- a/examples/layouts/basiclayouts/dialog.cpp
+++ b/examples/widgets/layouts/basiclayouts/dialog.cpp
diff --git a/examples/layouts/basiclayouts/dialog.h b/examples/widgets/layouts/basiclayouts/dialog.h
index 1d18a683ec0..1d18a683ec0 100644
--- a/examples/layouts/basiclayouts/dialog.h
+++ b/examples/widgets/layouts/basiclayouts/dialog.h
diff --git a/examples/layouts/basiclayouts/main.cpp b/examples/widgets/layouts/basiclayouts/main.cpp
index fd68d43b72b..fd68d43b72b 100644
--- a/examples/layouts/basiclayouts/main.cpp
+++ b/examples/widgets/layouts/basiclayouts/main.cpp
diff --git a/examples/layouts/borderlayout/borderlayout.cpp b/examples/widgets/layouts/borderlayout/borderlayout.cpp
index fd08a32fe1b..fd08a32fe1b 100644
--- a/examples/layouts/borderlayout/borderlayout.cpp
+++ b/examples/widgets/layouts/borderlayout/borderlayout.cpp
diff --git a/examples/layouts/borderlayout/borderlayout.desktop b/examples/widgets/layouts/borderlayout/borderlayout.desktop
index 3fd0641f1c3..3fd0641f1c3 100644
--- a/examples/layouts/borderlayout/borderlayout.desktop
+++ b/examples/widgets/layouts/borderlayout/borderlayout.desktop
diff --git a/examples/layouts/borderlayout/borderlayout.h b/examples/widgets/layouts/borderlayout/borderlayout.h
index 937517dc172..937517dc172 100644
--- a/examples/layouts/borderlayout/borderlayout.h
+++ b/examples/widgets/layouts/borderlayout/borderlayout.h
diff --git a/examples/layouts/borderlayout/borderlayout.pro b/examples/widgets/layouts/borderlayout/borderlayout.pro
index 6727af60d7e..6727af60d7e 100644
--- a/examples/layouts/borderlayout/borderlayout.pro
+++ b/examples/widgets/layouts/borderlayout/borderlayout.pro
diff --git a/examples/layouts/borderlayout/main.cpp b/examples/widgets/layouts/borderlayout/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/layouts/borderlayout/main.cpp
+++ b/examples/widgets/layouts/borderlayout/main.cpp
diff --git a/examples/layouts/borderlayout/window.cpp b/examples/widgets/layouts/borderlayout/window.cpp
index 73ad86a8267..73ad86a8267 100644
--- a/examples/layouts/borderlayout/window.cpp
+++ b/examples/widgets/layouts/borderlayout/window.cpp
diff --git a/examples/layouts/borderlayout/window.h b/examples/widgets/layouts/borderlayout/window.h
index 3db08e1ab35..3db08e1ab35 100644
--- a/examples/layouts/borderlayout/window.h
+++ b/examples/widgets/layouts/borderlayout/window.h
diff --git a/examples/layouts/dynamiclayouts/dialog.cpp b/examples/widgets/layouts/dynamiclayouts/dialog.cpp
index e3ebb669448..e3ebb669448 100644
--- a/examples/layouts/dynamiclayouts/dialog.cpp
+++ b/examples/widgets/layouts/dynamiclayouts/dialog.cpp
diff --git a/examples/layouts/dynamiclayouts/dialog.h b/examples/widgets/layouts/dynamiclayouts/dialog.h
index f8321abad4b..f8321abad4b 100644
--- a/examples/layouts/dynamiclayouts/dialog.h
+++ b/examples/widgets/layouts/dynamiclayouts/dialog.h
diff --git a/examples/layouts/dynamiclayouts/dynamiclayouts.desktop b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.desktop
index 482286bfb8a..482286bfb8a 100644
--- a/examples/layouts/dynamiclayouts/dynamiclayouts.desktop
+++ b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.desktop
diff --git a/examples/layouts/dynamiclayouts/dynamiclayouts.pro b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro
index 3cc4c084a57..3cc4c084a57 100644
--- a/examples/layouts/dynamiclayouts/dynamiclayouts.pro
+++ b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro
diff --git a/examples/layouts/dynamiclayouts/main.cpp b/examples/widgets/layouts/dynamiclayouts/main.cpp
index b4dd37a9cf2..b4dd37a9cf2 100644
--- a/examples/layouts/dynamiclayouts/main.cpp
+++ b/examples/widgets/layouts/dynamiclayouts/main.cpp
diff --git a/examples/layouts/flowlayout/flowlayout.cpp b/examples/widgets/layouts/flowlayout/flowlayout.cpp
index b7a62c8f037..b7a62c8f037 100644
--- a/examples/layouts/flowlayout/flowlayout.cpp
+++ b/examples/widgets/layouts/flowlayout/flowlayout.cpp
diff --git a/examples/layouts/flowlayout/flowlayout.desktop b/examples/widgets/layouts/flowlayout/flowlayout.desktop
index 54ea3b02901..54ea3b02901 100644
--- a/examples/layouts/flowlayout/flowlayout.desktop
+++ b/examples/widgets/layouts/flowlayout/flowlayout.desktop
diff --git a/examples/layouts/flowlayout/flowlayout.h b/examples/widgets/layouts/flowlayout/flowlayout.h
index 2a27f93772b..2a27f93772b 100644
--- a/examples/layouts/flowlayout/flowlayout.h
+++ b/examples/widgets/layouts/flowlayout/flowlayout.h
diff --git a/examples/layouts/flowlayout/flowlayout.pro b/examples/widgets/layouts/flowlayout/flowlayout.pro
index 4ac0a43c264..4ac0a43c264 100644
--- a/examples/layouts/flowlayout/flowlayout.pro
+++ b/examples/widgets/layouts/flowlayout/flowlayout.pro
diff --git a/examples/layouts/flowlayout/main.cpp b/examples/widgets/layouts/flowlayout/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/layouts/flowlayout/main.cpp
+++ b/examples/widgets/layouts/flowlayout/main.cpp
diff --git a/examples/layouts/flowlayout/window.cpp b/examples/widgets/layouts/flowlayout/window.cpp
index 8a7dd32eacd..8a7dd32eacd 100644
--- a/examples/layouts/flowlayout/window.cpp
+++ b/examples/widgets/layouts/flowlayout/window.cpp
diff --git a/examples/layouts/flowlayout/window.h b/examples/widgets/layouts/flowlayout/window.h
index e29813a91a2..e29813a91a2 100644
--- a/examples/layouts/flowlayout/window.h
+++ b/examples/widgets/layouts/flowlayout/window.h
diff --git a/examples/layouts/layouts.pro b/examples/widgets/layouts/layouts.pro
index 8299052d4f8..8299052d4f8 100644
--- a/examples/layouts/layouts.pro
+++ b/examples/widgets/layouts/layouts.pro
diff --git a/examples/mainwindows/README b/examples/widgets/mainwindows/README
index b63adee6e32..b63adee6e32 100644
--- a/examples/mainwindows/README
+++ b/examples/widgets/mainwindows/README
diff --git a/examples/mainwindows/application/application.desktop b/examples/widgets/mainwindows/application/application.desktop
index b6fab1f1feb..b6fab1f1feb 100644
--- a/examples/mainwindows/application/application.desktop
+++ b/examples/widgets/mainwindows/application/application.desktop
diff --git a/examples/mainwindows/application/application.pro b/examples/widgets/mainwindows/application/application.pro
index ef866a6d5f8..ef866a6d5f8 100644
--- a/examples/mainwindows/application/application.pro
+++ b/examples/widgets/mainwindows/application/application.pro
diff --git a/examples/mainwindows/application/application.qrc b/examples/widgets/mainwindows/application/application.qrc
index 0a776fab4d3..0a776fab4d3 100644
--- a/examples/mainwindows/application/application.qrc
+++ b/examples/widgets/mainwindows/application/application.qrc
diff --git a/examples/mainwindows/application/images/copy.png b/examples/widgets/mainwindows/application/images/copy.png
index 2aeb28288f5..2aeb28288f5 100644
--- a/examples/mainwindows/application/images/copy.png
+++ b/examples/widgets/mainwindows/application/images/copy.png
Binary files differ
diff --git a/examples/mainwindows/application/images/cut.png b/examples/widgets/mainwindows/application/images/cut.png
index 54638e9386d..54638e9386d 100644
--- a/examples/mainwindows/application/images/cut.png
+++ b/examples/widgets/mainwindows/application/images/cut.png
Binary files differ
diff --git a/examples/mainwindows/application/images/new.png b/examples/widgets/mainwindows/application/images/new.png
index 12131b01008..12131b01008 100644
--- a/examples/mainwindows/application/images/new.png
+++ b/examples/widgets/mainwindows/application/images/new.png
Binary files differ
diff --git a/examples/mainwindows/application/images/open.png b/examples/widgets/mainwindows/application/images/open.png
index 45fa2883a71..45fa2883a71 100644
--- a/examples/mainwindows/application/images/open.png
+++ b/examples/widgets/mainwindows/application/images/open.png
Binary files differ
diff --git a/examples/mainwindows/application/images/paste.png b/examples/widgets/mainwindows/application/images/paste.png
index c14425cad1f..c14425cad1f 100644
--- a/examples/mainwindows/application/images/paste.png
+++ b/examples/widgets/mainwindows/application/images/paste.png
Binary files differ
diff --git a/examples/mainwindows/application/images/save.png b/examples/widgets/mainwindows/application/images/save.png
index daba865fafd..daba865fafd 100644
--- a/examples/mainwindows/application/images/save.png
+++ b/examples/widgets/mainwindows/application/images/save.png
Binary files differ
diff --git a/examples/mainwindows/application/main.cpp b/examples/widgets/mainwindows/application/main.cpp
index 9ff67995749..9ff67995749 100644
--- a/examples/mainwindows/application/main.cpp
+++ b/examples/widgets/mainwindows/application/main.cpp
diff --git a/examples/mainwindows/application/mainwindow.cpp b/examples/widgets/mainwindows/application/mainwindow.cpp
index 8f60353da93..8f60353da93 100644
--- a/examples/mainwindows/application/mainwindow.cpp
+++ b/examples/widgets/mainwindows/application/mainwindow.cpp
diff --git a/examples/mainwindows/application/mainwindow.h b/examples/widgets/mainwindows/application/mainwindow.h
index 7f429e0ea35..7f429e0ea35 100644
--- a/examples/mainwindows/application/mainwindow.h
+++ b/examples/widgets/mainwindows/application/mainwindow.h
diff --git a/examples/mainwindows/dockwidgets/dockwidgets.desktop b/examples/widgets/mainwindows/dockwidgets/dockwidgets.desktop
index 1f57cb613b9..1f57cb613b9 100644
--- a/examples/mainwindows/dockwidgets/dockwidgets.desktop
+++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets.desktop
diff --git a/examples/mainwindows/dockwidgets/dockwidgets.pro b/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro
index 7e0da2496ee..7e0da2496ee 100644
--- a/examples/mainwindows/dockwidgets/dockwidgets.pro
+++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro
diff --git a/examples/mainwindows/dockwidgets/dockwidgets.qrc b/examples/widgets/mainwindows/dockwidgets/dockwidgets.qrc
index 968feac7ea3..968feac7ea3 100644
--- a/examples/mainwindows/dockwidgets/dockwidgets.qrc
+++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets.qrc
diff --git a/examples/mainwindows/dockwidgets/images/new.png b/examples/widgets/mainwindows/dockwidgets/images/new.png
index dd795cfffc5..dd795cfffc5 100644
--- a/examples/mainwindows/dockwidgets/images/new.png
+++ b/examples/widgets/mainwindows/dockwidgets/images/new.png
Binary files differ
diff --git a/examples/mainwindows/dockwidgets/images/print.png b/examples/widgets/mainwindows/dockwidgets/images/print.png
index 2afb769ee23..2afb769ee23 100644
--- a/examples/mainwindows/dockwidgets/images/print.png
+++ b/examples/widgets/mainwindows/dockwidgets/images/print.png
Binary files differ
diff --git a/examples/mainwindows/dockwidgets/images/save.png b/examples/widgets/mainwindows/dockwidgets/images/save.png
index 46eac82ad1d..46eac82ad1d 100644
--- a/examples/mainwindows/dockwidgets/images/save.png
+++ b/examples/widgets/mainwindows/dockwidgets/images/save.png
Binary files differ
diff --git a/examples/mainwindows/dockwidgets/images/undo.png b/examples/widgets/mainwindows/dockwidgets/images/undo.png
index eee23d24a31..eee23d24a31 100644
--- a/examples/mainwindows/dockwidgets/images/undo.png
+++ b/examples/widgets/mainwindows/dockwidgets/images/undo.png
Binary files differ
diff --git a/examples/mainwindows/dockwidgets/main.cpp b/examples/widgets/mainwindows/dockwidgets/main.cpp
index 19deafbb86c..19deafbb86c 100644
--- a/examples/mainwindows/dockwidgets/main.cpp
+++ b/examples/widgets/mainwindows/dockwidgets/main.cpp
diff --git a/examples/mainwindows/dockwidgets/mainwindow.cpp b/examples/widgets/mainwindows/dockwidgets/mainwindow.cpp
index da01d565024..da01d565024 100644
--- a/examples/mainwindows/dockwidgets/mainwindow.cpp
+++ b/examples/widgets/mainwindows/dockwidgets/mainwindow.cpp
diff --git a/examples/mainwindows/dockwidgets/mainwindow.h b/examples/widgets/mainwindows/dockwidgets/mainwindow.h
index 9f3eeb4e6b4..9f3eeb4e6b4 100644
--- a/examples/mainwindows/dockwidgets/mainwindow.h
+++ b/examples/widgets/mainwindows/dockwidgets/mainwindow.h
diff --git a/examples/mainwindows/mainwindow/colorswatch.cpp b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp
index c84669d3776..c84669d3776 100644
--- a/examples/mainwindows/mainwindow/colorswatch.cpp
+++ b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp
diff --git a/examples/mainwindows/mainwindow/colorswatch.h b/examples/widgets/mainwindows/mainwindow/colorswatch.h
index 794a69cd6cd..794a69cd6cd 100644
--- a/examples/mainwindows/mainwindow/colorswatch.h
+++ b/examples/widgets/mainwindows/mainwindow/colorswatch.h
diff --git a/examples/mainwindows/mainwindow/main.cpp b/examples/widgets/mainwindows/mainwindow/main.cpp
index 2b6342367a0..2b6342367a0 100644
--- a/examples/mainwindows/mainwindow/main.cpp
+++ b/examples/widgets/mainwindows/mainwindow/main.cpp
diff --git a/examples/mainwindows/mainwindow/mainwindow.cpp b/examples/widgets/mainwindows/mainwindow/mainwindow.cpp
index 2ac2b562f20..2ac2b562f20 100644
--- a/examples/mainwindows/mainwindow/mainwindow.cpp
+++ b/examples/widgets/mainwindows/mainwindow/mainwindow.cpp
diff --git a/examples/mainwindows/mainwindow/mainwindow.h b/examples/widgets/mainwindows/mainwindow/mainwindow.h
index 51969acaa31..51969acaa31 100644
--- a/examples/mainwindows/mainwindow/mainwindow.h
+++ b/examples/widgets/mainwindows/mainwindow/mainwindow.h
diff --git a/examples/mainwindows/mainwindow/mainwindow.pro b/examples/widgets/mainwindows/mainwindow/mainwindow.pro
index 1381c460c20..1381c460c20 100644
--- a/examples/mainwindows/mainwindow/mainwindow.pro
+++ b/examples/widgets/mainwindows/mainwindow/mainwindow.pro
diff --git a/examples/mainwindows/mainwindow/mainwindow.qrc b/examples/widgets/mainwindows/mainwindow/mainwindow.qrc
index 47ff22a3e49..47ff22a3e49 100644
--- a/examples/mainwindows/mainwindow/mainwindow.qrc
+++ b/examples/widgets/mainwindows/mainwindow/mainwindow.qrc
diff --git a/examples/mainwindows/mainwindow/qt.png b/examples/widgets/mainwindows/mainwindow/qt.png
index 48fa9fc2efa..48fa9fc2efa 100644
--- a/examples/mainwindows/mainwindow/qt.png
+++ b/examples/widgets/mainwindows/mainwindow/qt.png
Binary files differ
diff --git a/examples/mainwindows/mainwindow/titlebarCenter.png b/examples/widgets/mainwindows/mainwindow/titlebarCenter.png
index 5cc141355cb..5cc141355cb 100644
--- a/examples/mainwindows/mainwindow/titlebarCenter.png
+++ b/examples/widgets/mainwindows/mainwindow/titlebarCenter.png
Binary files differ
diff --git a/examples/mainwindows/mainwindow/titlebarLeft.png b/examples/widgets/mainwindows/mainwindow/titlebarLeft.png
index 315166202b7..315166202b7 100644
--- a/examples/mainwindows/mainwindow/titlebarLeft.png
+++ b/examples/widgets/mainwindows/mainwindow/titlebarLeft.png
Binary files differ
diff --git a/examples/mainwindows/mainwindow/titlebarRight.png b/examples/widgets/mainwindows/mainwindow/titlebarRight.png
index a4505268ec1..a4505268ec1 100644
--- a/examples/mainwindows/mainwindow/titlebarRight.png
+++ b/examples/widgets/mainwindows/mainwindow/titlebarRight.png
Binary files differ
diff --git a/examples/mainwindows/mainwindow/toolbar.cpp b/examples/widgets/mainwindows/mainwindow/toolbar.cpp
index d10eccb46d2..d10eccb46d2 100644
--- a/examples/mainwindows/mainwindow/toolbar.cpp
+++ b/examples/widgets/mainwindows/mainwindow/toolbar.cpp
diff --git a/examples/mainwindows/mainwindow/toolbar.h b/examples/widgets/mainwindows/mainwindow/toolbar.h
index 0ffb1eea5db..0ffb1eea5db 100644
--- a/examples/mainwindows/mainwindow/toolbar.h
+++ b/examples/widgets/mainwindows/mainwindow/toolbar.h
diff --git a/examples/mainwindows/mainwindows.pro b/examples/widgets/mainwindows/mainwindows.pro
index c30d29e95a2..c30d29e95a2 100644
--- a/examples/mainwindows/mainwindows.pro
+++ b/examples/widgets/mainwindows/mainwindows.pro
diff --git a/examples/mainwindows/mdi/images/copy.png b/examples/widgets/mainwindows/mdi/images/copy.png
index 2aeb28288f5..2aeb28288f5 100644
--- a/examples/mainwindows/mdi/images/copy.png
+++ b/examples/widgets/mainwindows/mdi/images/copy.png
Binary files differ
diff --git a/examples/mainwindows/mdi/images/cut.png b/examples/widgets/mainwindows/mdi/images/cut.png
index 54638e9386d..54638e9386d 100644
--- a/examples/mainwindows/mdi/images/cut.png
+++ b/examples/widgets/mainwindows/mdi/images/cut.png
Binary files differ
diff --git a/examples/mainwindows/mdi/images/new.png b/examples/widgets/mainwindows/mdi/images/new.png
index 12131b01008..12131b01008 100644
--- a/examples/mainwindows/mdi/images/new.png
+++ b/examples/widgets/mainwindows/mdi/images/new.png
Binary files differ
diff --git a/examples/mainwindows/mdi/images/open.png b/examples/widgets/mainwindows/mdi/images/open.png
index 45fa2883a71..45fa2883a71 100644
--- a/examples/mainwindows/mdi/images/open.png
+++ b/examples/widgets/mainwindows/mdi/images/open.png
Binary files differ
diff --git a/examples/mainwindows/mdi/images/paste.png b/examples/widgets/mainwindows/mdi/images/paste.png
index c14425cad1f..c14425cad1f 100644
--- a/examples/mainwindows/mdi/images/paste.png
+++ b/examples/widgets/mainwindows/mdi/images/paste.png
Binary files differ
diff --git a/examples/mainwindows/mdi/images/save.png b/examples/widgets/mainwindows/mdi/images/save.png
index daba865fafd..daba865fafd 100644
--- a/examples/mainwindows/mdi/images/save.png
+++ b/examples/widgets/mainwindows/mdi/images/save.png
Binary files differ
diff --git a/examples/mainwindows/mdi/main.cpp b/examples/widgets/mainwindows/mdi/main.cpp
index 8beec478a4a..8beec478a4a 100644
--- a/examples/mainwindows/mdi/main.cpp
+++ b/examples/widgets/mainwindows/mdi/main.cpp
diff --git a/examples/mainwindows/mdi/mainwindow.cpp b/examples/widgets/mainwindows/mdi/mainwindow.cpp
index 6ba15aa2240..6ba15aa2240 100644
--- a/examples/mainwindows/mdi/mainwindow.cpp
+++ b/examples/widgets/mainwindows/mdi/mainwindow.cpp
diff --git a/examples/mainwindows/mdi/mainwindow.h b/examples/widgets/mainwindows/mdi/mainwindow.h
index 1652ca97496..1652ca97496 100644
--- a/examples/mainwindows/mdi/mainwindow.h
+++ b/examples/widgets/mainwindows/mdi/mainwindow.h
diff --git a/examples/mainwindows/mdi/mdi.desktop b/examples/widgets/mainwindows/mdi/mdi.desktop
index 267e6f19d07..267e6f19d07 100644
--- a/examples/mainwindows/mdi/mdi.desktop
+++ b/examples/widgets/mainwindows/mdi/mdi.desktop
diff --git a/examples/mainwindows/mdi/mdi.pro b/examples/widgets/mainwindows/mdi/mdi.pro
index a4387fecd68..a4387fecd68 100644
--- a/examples/mainwindows/mdi/mdi.pro
+++ b/examples/widgets/mainwindows/mdi/mdi.pro
diff --git a/examples/mainwindows/mdi/mdi.qrc b/examples/widgets/mainwindows/mdi/mdi.qrc
index 0a776fab4d3..0a776fab4d3 100644
--- a/examples/mainwindows/mdi/mdi.qrc
+++ b/examples/widgets/mainwindows/mdi/mdi.qrc
diff --git a/examples/mainwindows/mdi/mdichild.cpp b/examples/widgets/mainwindows/mdi/mdichild.cpp
index 2279fe70449..2279fe70449 100644
--- a/examples/mainwindows/mdi/mdichild.cpp
+++ b/examples/widgets/mainwindows/mdi/mdichild.cpp
diff --git a/examples/mainwindows/mdi/mdichild.h b/examples/widgets/mainwindows/mdi/mdichild.h
index aacdd0f0f6a..aacdd0f0f6a 100644
--- a/examples/mainwindows/mdi/mdichild.h
+++ b/examples/widgets/mainwindows/mdi/mdichild.h
diff --git a/examples/mainwindows/menus/main.cpp b/examples/widgets/mainwindows/menus/main.cpp
index 09a923477cd..09a923477cd 100644
--- a/examples/mainwindows/menus/main.cpp
+++ b/examples/widgets/mainwindows/menus/main.cpp
diff --git a/examples/mainwindows/menus/mainwindow.cpp b/examples/widgets/mainwindows/menus/mainwindow.cpp
index e1f3a0c099b..e1f3a0c099b 100644
--- a/examples/mainwindows/menus/mainwindow.cpp
+++ b/examples/widgets/mainwindows/menus/mainwindow.cpp
diff --git a/examples/mainwindows/menus/mainwindow.h b/examples/widgets/mainwindows/menus/mainwindow.h
index ebafb529eb0..ebafb529eb0 100644
--- a/examples/mainwindows/menus/mainwindow.h
+++ b/examples/widgets/mainwindows/menus/mainwindow.h
diff --git a/examples/mainwindows/menus/menus.desktop b/examples/widgets/mainwindows/menus/menus.desktop
index dc2bda92aff..dc2bda92aff 100644
--- a/examples/mainwindows/menus/menus.desktop
+++ b/examples/widgets/mainwindows/menus/menus.desktop
diff --git a/examples/mainwindows/menus/menus.pro b/examples/widgets/mainwindows/menus/menus.pro
index 5ed1e0dae58..5ed1e0dae58 100644
--- a/examples/mainwindows/menus/menus.pro
+++ b/examples/widgets/mainwindows/menus/menus.pro
diff --git a/examples/mainwindows/recentfiles/main.cpp b/examples/widgets/mainwindows/recentfiles/main.cpp
index 023357719e4..023357719e4 100644
--- a/examples/mainwindows/recentfiles/main.cpp
+++ b/examples/widgets/mainwindows/recentfiles/main.cpp
diff --git a/examples/mainwindows/recentfiles/mainwindow.cpp b/examples/widgets/mainwindows/recentfiles/mainwindow.cpp
index b439ae89505..b439ae89505 100644
--- a/examples/mainwindows/recentfiles/mainwindow.cpp
+++ b/examples/widgets/mainwindows/recentfiles/mainwindow.cpp
diff --git a/examples/mainwindows/recentfiles/mainwindow.h b/examples/widgets/mainwindows/recentfiles/mainwindow.h
index dd548838fcc..dd548838fcc 100644
--- a/examples/mainwindows/recentfiles/mainwindow.h
+++ b/examples/widgets/mainwindows/recentfiles/mainwindow.h
diff --git a/examples/mainwindows/recentfiles/recentfiles.desktop b/examples/widgets/mainwindows/recentfiles/recentfiles.desktop
index c314cf7f7c6..c314cf7f7c6 100644
--- a/examples/mainwindows/recentfiles/recentfiles.desktop
+++ b/examples/widgets/mainwindows/recentfiles/recentfiles.desktop
diff --git a/examples/mainwindows/recentfiles/recentfiles.pro b/examples/widgets/mainwindows/recentfiles/recentfiles.pro
index 5425efc68fb..5425efc68fb 100644
--- a/examples/mainwindows/recentfiles/recentfiles.pro
+++ b/examples/widgets/mainwindows/recentfiles/recentfiles.pro
diff --git a/examples/mainwindows/sdi/images/copy.png b/examples/widgets/mainwindows/sdi/images/copy.png
index 2aeb28288f5..2aeb28288f5 100644
--- a/examples/mainwindows/sdi/images/copy.png
+++ b/examples/widgets/mainwindows/sdi/images/copy.png
Binary files differ
diff --git a/examples/mainwindows/sdi/images/cut.png b/examples/widgets/mainwindows/sdi/images/cut.png
index 54638e9386d..54638e9386d 100644
--- a/examples/mainwindows/sdi/images/cut.png
+++ b/examples/widgets/mainwindows/sdi/images/cut.png
Binary files differ
diff --git a/examples/mainwindows/sdi/images/new.png b/examples/widgets/mainwindows/sdi/images/new.png
index 12131b01008..12131b01008 100644
--- a/examples/mainwindows/sdi/images/new.png
+++ b/examples/widgets/mainwindows/sdi/images/new.png
Binary files differ
diff --git a/examples/mainwindows/sdi/images/open.png b/examples/widgets/mainwindows/sdi/images/open.png
index 45fa2883a71..45fa2883a71 100644
--- a/examples/mainwindows/sdi/images/open.png
+++ b/examples/widgets/mainwindows/sdi/images/open.png
Binary files differ
diff --git a/examples/mainwindows/sdi/images/paste.png b/examples/widgets/mainwindows/sdi/images/paste.png
index c14425cad1f..c14425cad1f 100644
--- a/examples/mainwindows/sdi/images/paste.png
+++ b/examples/widgets/mainwindows/sdi/images/paste.png
Binary files differ
diff --git a/examples/mainwindows/sdi/images/save.png b/examples/widgets/mainwindows/sdi/images/save.png
index daba865fafd..daba865fafd 100644
--- a/examples/mainwindows/sdi/images/save.png
+++ b/examples/widgets/mainwindows/sdi/images/save.png
Binary files differ
diff --git a/examples/mainwindows/sdi/main.cpp b/examples/widgets/mainwindows/sdi/main.cpp
index fbbedd9f0d2..fbbedd9f0d2 100644
--- a/examples/mainwindows/sdi/main.cpp
+++ b/examples/widgets/mainwindows/sdi/main.cpp
diff --git a/examples/mainwindows/sdi/mainwindow.cpp b/examples/widgets/mainwindows/sdi/mainwindow.cpp
index bc0685fd776..bc0685fd776 100644
--- a/examples/mainwindows/sdi/mainwindow.cpp
+++ b/examples/widgets/mainwindows/sdi/mainwindow.cpp
diff --git a/examples/mainwindows/sdi/mainwindow.h b/examples/widgets/mainwindows/sdi/mainwindow.h
index 4bf5ebe9b56..4bf5ebe9b56 100644
--- a/examples/mainwindows/sdi/mainwindow.h
+++ b/examples/widgets/mainwindows/sdi/mainwindow.h
diff --git a/examples/mainwindows/sdi/sdi.desktop b/examples/widgets/mainwindows/sdi/sdi.desktop
index 06d7289c8b7..06d7289c8b7 100644
--- a/examples/mainwindows/sdi/sdi.desktop
+++ b/examples/widgets/mainwindows/sdi/sdi.desktop
diff --git a/examples/mainwindows/sdi/sdi.pro b/examples/widgets/mainwindows/sdi/sdi.pro
index cd5e0f16162..cd5e0f16162 100644
--- a/examples/mainwindows/sdi/sdi.pro
+++ b/examples/widgets/mainwindows/sdi/sdi.pro
diff --git a/examples/mainwindows/sdi/sdi.qrc b/examples/widgets/mainwindows/sdi/sdi.qrc
index 0a776fab4d3..0a776fab4d3 100644
--- a/examples/mainwindows/sdi/sdi.qrc
+++ b/examples/widgets/mainwindows/sdi/sdi.qrc
diff --git a/examples/painting/README b/examples/widgets/painting/README
index 541c5531593..541c5531593 100644
--- a/examples/painting/README
+++ b/examples/widgets/painting/README
diff --git a/examples/painting/affine/affine.pro b/examples/widgets/painting/affine/affine.pro
index 0977ea1c5b8..0977ea1c5b8 100644
--- a/examples/painting/affine/affine.pro
+++ b/examples/widgets/painting/affine/affine.pro
diff --git a/examples/painting/affine/affine.qrc b/examples/widgets/painting/affine/affine.qrc
index d8a7ae40cbe..d8a7ae40cbe 100644
--- a/examples/painting/affine/affine.qrc
+++ b/examples/widgets/painting/affine/affine.qrc
diff --git a/examples/painting/affine/bg1.jpg b/examples/widgets/painting/affine/bg1.jpg
index dfc7cee6ad2..dfc7cee6ad2 100644
--- a/examples/painting/affine/bg1.jpg
+++ b/examples/widgets/painting/affine/bg1.jpg
Binary files differ
diff --git a/examples/painting/affine/main.cpp b/examples/widgets/painting/affine/main.cpp
index c27e3331f10..c27e3331f10 100644
--- a/examples/painting/affine/main.cpp
+++ b/examples/widgets/painting/affine/main.cpp
diff --git a/examples/painting/affine/xform.cpp b/examples/widgets/painting/affine/xform.cpp
index 8c9d37406c8..8c9d37406c8 100644
--- a/examples/painting/affine/xform.cpp
+++ b/examples/widgets/painting/affine/xform.cpp
diff --git a/examples/painting/affine/xform.h b/examples/widgets/painting/affine/xform.h
index d710f5175e6..d710f5175e6 100644
--- a/examples/painting/affine/xform.h
+++ b/examples/widgets/painting/affine/xform.h
diff --git a/examples/painting/affine/xform.html b/examples/widgets/painting/affine/xform.html
index 17325ac2a0c..17325ac2a0c 100644
--- a/examples/painting/affine/xform.html
+++ b/examples/widgets/painting/affine/xform.html
diff --git a/examples/painting/basicdrawing/basicdrawing.desktop b/examples/widgets/painting/basicdrawing/basicdrawing.desktop
index 7f178ec8a7d..7f178ec8a7d 100644
--- a/examples/painting/basicdrawing/basicdrawing.desktop
+++ b/examples/widgets/painting/basicdrawing/basicdrawing.desktop
diff --git a/examples/painting/basicdrawing/basicdrawing.pro b/examples/widgets/painting/basicdrawing/basicdrawing.pro
index 0e0328e61f0..0e0328e61f0 100644
--- a/examples/painting/basicdrawing/basicdrawing.pro
+++ b/examples/widgets/painting/basicdrawing/basicdrawing.pro
diff --git a/examples/painting/basicdrawing/basicdrawing.qrc b/examples/widgets/painting/basicdrawing/basicdrawing.qrc
index 9d8a23a1c87..9d8a23a1c87 100644
--- a/examples/painting/basicdrawing/basicdrawing.qrc
+++ b/examples/widgets/painting/basicdrawing/basicdrawing.qrc
diff --git a/examples/painting/basicdrawing/images/brick.png b/examples/widgets/painting/basicdrawing/images/brick.png
index 87e7df5b042..87e7df5b042 100644
--- a/examples/painting/basicdrawing/images/brick.png
+++ b/examples/widgets/painting/basicdrawing/images/brick.png
Binary files differ
diff --git a/examples/painting/basicdrawing/images/qt-logo.png b/examples/widgets/painting/basicdrawing/images/qt-logo.png
index a8b452e07a5..a8b452e07a5 100644
--- a/examples/painting/basicdrawing/images/qt-logo.png
+++ b/examples/widgets/painting/basicdrawing/images/qt-logo.png
Binary files differ
diff --git a/examples/painting/basicdrawing/main.cpp b/examples/widgets/painting/basicdrawing/main.cpp
index d80c9a2daac..d80c9a2daac 100644
--- a/examples/painting/basicdrawing/main.cpp
+++ b/examples/widgets/painting/basicdrawing/main.cpp
diff --git a/examples/painting/basicdrawing/renderarea.cpp b/examples/widgets/painting/basicdrawing/renderarea.cpp
index 9fb4ab589d1..9fb4ab589d1 100644
--- a/examples/painting/basicdrawing/renderarea.cpp
+++ b/examples/widgets/painting/basicdrawing/renderarea.cpp
diff --git a/examples/painting/basicdrawing/renderarea.h b/examples/widgets/painting/basicdrawing/renderarea.h
index 3ed9eb63214..3ed9eb63214 100644
--- a/examples/painting/basicdrawing/renderarea.h
+++ b/examples/widgets/painting/basicdrawing/renderarea.h
diff --git a/examples/painting/basicdrawing/window.cpp b/examples/widgets/painting/basicdrawing/window.cpp
index 9579e40ae23..9579e40ae23 100644
--- a/examples/painting/basicdrawing/window.cpp
+++ b/examples/widgets/painting/basicdrawing/window.cpp
diff --git a/examples/painting/basicdrawing/window.h b/examples/widgets/painting/basicdrawing/window.h
index 3f2c8fd5619..3f2c8fd5619 100644
--- a/examples/painting/basicdrawing/window.h
+++ b/examples/widgets/painting/basicdrawing/window.h
diff --git a/examples/painting/composition/composition.cpp b/examples/widgets/painting/composition/composition.cpp
index f46a658c177..f46a658c177 100644
--- a/examples/painting/composition/composition.cpp
+++ b/examples/widgets/painting/composition/composition.cpp
diff --git a/examples/painting/composition/composition.h b/examples/widgets/painting/composition/composition.h
index ebf278f1458..ebf278f1458 100644
--- a/examples/painting/composition/composition.h
+++ b/examples/widgets/painting/composition/composition.h
diff --git a/examples/painting/composition/composition.html b/examples/widgets/painting/composition/composition.html
index 82b8991e8f2..82b8991e8f2 100644
--- a/examples/painting/composition/composition.html
+++ b/examples/widgets/painting/composition/composition.html
diff --git a/examples/painting/composition/composition.pro b/examples/widgets/painting/composition/composition.pro
index eb63d0c47a4..eb63d0c47a4 100644
--- a/examples/painting/composition/composition.pro
+++ b/examples/widgets/painting/composition/composition.pro
diff --git a/examples/painting/composition/composition.qrc b/examples/widgets/painting/composition/composition.qrc
index d02c397ee83..d02c397ee83 100644
--- a/examples/painting/composition/composition.qrc
+++ b/examples/widgets/painting/composition/composition.qrc
diff --git a/examples/painting/composition/flower.jpg b/examples/widgets/painting/composition/flower.jpg
index f8e022c98cb..f8e022c98cb 100644
--- a/examples/painting/composition/flower.jpg
+++ b/examples/widgets/painting/composition/flower.jpg
Binary files differ
diff --git a/examples/painting/composition/flower_alpha.jpg b/examples/widgets/painting/composition/flower_alpha.jpg
index 6a3c2a02ef3..6a3c2a02ef3 100644
--- a/examples/painting/composition/flower_alpha.jpg
+++ b/examples/widgets/painting/composition/flower_alpha.jpg
Binary files differ
diff --git a/examples/painting/composition/main.cpp b/examples/widgets/painting/composition/main.cpp
index 370069a33aa..370069a33aa 100644
--- a/examples/painting/composition/main.cpp
+++ b/examples/widgets/painting/composition/main.cpp
diff --git a/examples/painting/concentriccircles/circlewidget.cpp b/examples/widgets/painting/concentriccircles/circlewidget.cpp
index 2691f20602a..2691f20602a 100644
--- a/examples/painting/concentriccircles/circlewidget.cpp
+++ b/examples/widgets/painting/concentriccircles/circlewidget.cpp
diff --git a/examples/painting/concentriccircles/circlewidget.h b/examples/widgets/painting/concentriccircles/circlewidget.h
index c2d4de70922..c2d4de70922 100644
--- a/examples/painting/concentriccircles/circlewidget.h
+++ b/examples/widgets/painting/concentriccircles/circlewidget.h
diff --git a/examples/painting/concentriccircles/concentriccircles.desktop b/examples/widgets/painting/concentriccircles/concentriccircles.desktop
index 7007f192bc0..7007f192bc0 100644
--- a/examples/painting/concentriccircles/concentriccircles.desktop
+++ b/examples/widgets/painting/concentriccircles/concentriccircles.desktop
diff --git a/examples/painting/concentriccircles/concentriccircles.pro b/examples/widgets/painting/concentriccircles/concentriccircles.pro
index 0f87b991edb..0f87b991edb 100644
--- a/examples/painting/concentriccircles/concentriccircles.pro
+++ b/examples/widgets/painting/concentriccircles/concentriccircles.pro
diff --git a/examples/painting/concentriccircles/main.cpp b/examples/widgets/painting/concentriccircles/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/painting/concentriccircles/main.cpp
+++ b/examples/widgets/painting/concentriccircles/main.cpp
diff --git a/examples/painting/concentriccircles/window.cpp b/examples/widgets/painting/concentriccircles/window.cpp
index d9468420293..d9468420293 100644
--- a/examples/painting/concentriccircles/window.cpp
+++ b/examples/widgets/painting/concentriccircles/window.cpp
diff --git a/examples/painting/concentriccircles/window.h b/examples/widgets/painting/concentriccircles/window.h
index a066ddb7023..a066ddb7023 100644
--- a/examples/painting/concentriccircles/window.h
+++ b/examples/widgets/painting/concentriccircles/window.h
diff --git a/examples/painting/deform/deform.pro b/examples/widgets/painting/deform/deform.pro
index 527133e7e59..527133e7e59 100644
--- a/examples/painting/deform/deform.pro
+++ b/examples/widgets/painting/deform/deform.pro
diff --git a/examples/painting/deform/deform.qrc b/examples/widgets/painting/deform/deform.qrc
index 2e59ebcfc5b..2e59ebcfc5b 100644
--- a/examples/painting/deform/deform.qrc
+++ b/examples/widgets/painting/deform/deform.qrc
diff --git a/examples/painting/deform/main.cpp b/examples/widgets/painting/deform/main.cpp
index eeed9b89393..eeed9b89393 100644
--- a/examples/painting/deform/main.cpp
+++ b/examples/widgets/painting/deform/main.cpp
diff --git a/examples/painting/deform/pathdeform.cpp b/examples/widgets/painting/deform/pathdeform.cpp
index d5880fb7865..d5880fb7865 100644
--- a/examples/painting/deform/pathdeform.cpp
+++ b/examples/widgets/painting/deform/pathdeform.cpp
diff --git a/examples/painting/deform/pathdeform.h b/examples/widgets/painting/deform/pathdeform.h
index 6f0d647f4e2..6f0d647f4e2 100644
--- a/examples/painting/deform/pathdeform.h
+++ b/examples/widgets/painting/deform/pathdeform.h
diff --git a/examples/painting/deform/pathdeform.html b/examples/widgets/painting/deform/pathdeform.html
index b3f63a8e0ad..b3f63a8e0ad 100644
--- a/examples/painting/deform/pathdeform.html
+++ b/examples/widgets/painting/deform/pathdeform.html
diff --git a/examples/painting/fontsampler/fontsampler.desktop b/examples/widgets/painting/fontsampler/fontsampler.desktop
index 8582891fcfc..8582891fcfc 100644
--- a/examples/painting/fontsampler/fontsampler.desktop
+++ b/examples/widgets/painting/fontsampler/fontsampler.desktop
diff --git a/examples/painting/fontsampler/fontsampler.pro b/examples/widgets/painting/fontsampler/fontsampler.pro
index b918c518378..b918c518378 100644
--- a/examples/painting/fontsampler/fontsampler.pro
+++ b/examples/widgets/painting/fontsampler/fontsampler.pro
diff --git a/examples/painting/fontsampler/main.cpp b/examples/widgets/painting/fontsampler/main.cpp
index 09a923477cd..09a923477cd 100644
--- a/examples/painting/fontsampler/main.cpp
+++ b/examples/widgets/painting/fontsampler/main.cpp
diff --git a/examples/painting/fontsampler/mainwindow.cpp b/examples/widgets/painting/fontsampler/mainwindow.cpp
index ae45613abf6..ae45613abf6 100644
--- a/examples/painting/fontsampler/mainwindow.cpp
+++ b/examples/widgets/painting/fontsampler/mainwindow.cpp
diff --git a/examples/painting/fontsampler/mainwindow.h b/examples/widgets/painting/fontsampler/mainwindow.h
index fbb99333dbe..fbb99333dbe 100644
--- a/examples/painting/fontsampler/mainwindow.h
+++ b/examples/widgets/painting/fontsampler/mainwindow.h
diff --git a/examples/painting/fontsampler/mainwindowbase.ui b/examples/widgets/painting/fontsampler/mainwindowbase.ui
index 1a95ebd6d12..1a95ebd6d12 100644
--- a/examples/painting/fontsampler/mainwindowbase.ui
+++ b/examples/widgets/painting/fontsampler/mainwindowbase.ui
diff --git a/examples/painting/gradients/gradients.cpp b/examples/widgets/painting/gradients/gradients.cpp
index 9dad51a8e47..9dad51a8e47 100644
--- a/examples/painting/gradients/gradients.cpp
+++ b/examples/widgets/painting/gradients/gradients.cpp
diff --git a/examples/painting/gradients/gradients.h b/examples/widgets/painting/gradients/gradients.h
index 0fed2de82af..0fed2de82af 100644
--- a/examples/painting/gradients/gradients.h
+++ b/examples/widgets/painting/gradients/gradients.h
diff --git a/examples/painting/gradients/gradients.html b/examples/widgets/painting/gradients/gradients.html
index 1ea2c0ed6c7..1ea2c0ed6c7 100644
--- a/examples/painting/gradients/gradients.html
+++ b/examples/widgets/painting/gradients/gradients.html
diff --git a/examples/painting/gradients/gradients.pro b/examples/widgets/painting/gradients/gradients.pro
index 4362d283ee6..4362d283ee6 100644
--- a/examples/painting/gradients/gradients.pro
+++ b/examples/widgets/painting/gradients/gradients.pro
diff --git a/examples/painting/gradients/gradients.qrc b/examples/widgets/painting/gradients/gradients.qrc
index fb971eb17b9..fb971eb17b9 100644
--- a/examples/painting/gradients/gradients.qrc
+++ b/examples/widgets/painting/gradients/gradients.qrc
diff --git a/examples/painting/gradients/main.cpp b/examples/widgets/painting/gradients/main.cpp
index eaf8bdc333f..eaf8bdc333f 100644
--- a/examples/painting/gradients/main.cpp
+++ b/examples/widgets/painting/gradients/main.cpp
diff --git a/examples/painting/imagecomposition/imagecomposer.cpp b/examples/widgets/painting/imagecomposition/imagecomposer.cpp
index 38b04a27b03..38b04a27b03 100644
--- a/examples/painting/imagecomposition/imagecomposer.cpp
+++ b/examples/widgets/painting/imagecomposition/imagecomposer.cpp
diff --git a/examples/painting/imagecomposition/imagecomposer.h b/examples/widgets/painting/imagecomposition/imagecomposer.h
index 7ec0207e2ca..7ec0207e2ca 100644
--- a/examples/painting/imagecomposition/imagecomposer.h
+++ b/examples/widgets/painting/imagecomposition/imagecomposer.h
diff --git a/examples/painting/imagecomposition/imagecomposition.desktop b/examples/widgets/painting/imagecomposition/imagecomposition.desktop
index 854fc862f09..854fc862f09 100644
--- a/examples/painting/imagecomposition/imagecomposition.desktop
+++ b/examples/widgets/painting/imagecomposition/imagecomposition.desktop
diff --git a/examples/painting/imagecomposition/imagecomposition.pro b/examples/widgets/painting/imagecomposition/imagecomposition.pro
index edf434f5d2d..edf434f5d2d 100644
--- a/examples/painting/imagecomposition/imagecomposition.pro
+++ b/examples/widgets/painting/imagecomposition/imagecomposition.pro
diff --git a/examples/painting/imagecomposition/imagecomposition.qrc b/examples/widgets/painting/imagecomposition/imagecomposition.qrc
index ebba7b29135..ebba7b29135 100644
--- a/examples/painting/imagecomposition/imagecomposition.qrc
+++ b/examples/widgets/painting/imagecomposition/imagecomposition.qrc
diff --git a/examples/painting/imagecomposition/images/background.png b/examples/widgets/painting/imagecomposition/images/background.png
index f6ad8998231..f6ad8998231 100644
--- a/examples/painting/imagecomposition/images/background.png
+++ b/examples/widgets/painting/imagecomposition/images/background.png
Binary files differ
diff --git a/examples/painting/imagecomposition/images/blackrectangle.png b/examples/widgets/painting/imagecomposition/images/blackrectangle.png
index 5f2ecf83187..5f2ecf83187 100644
--- a/examples/painting/imagecomposition/images/blackrectangle.png
+++ b/examples/widgets/painting/imagecomposition/images/blackrectangle.png
Binary files differ
diff --git a/examples/painting/imagecomposition/images/butterfly.png b/examples/widgets/painting/imagecomposition/images/butterfly.png
index f3e050eca2b..f3e050eca2b 100644
--- a/examples/painting/imagecomposition/images/butterfly.png
+++ b/examples/widgets/painting/imagecomposition/images/butterfly.png
Binary files differ
diff --git a/examples/painting/imagecomposition/images/checker.png b/examples/widgets/painting/imagecomposition/images/checker.png
index 546609de3fc..546609de3fc 100644
--- a/examples/painting/imagecomposition/images/checker.png
+++ b/examples/widgets/painting/imagecomposition/images/checker.png
Binary files differ
diff --git a/examples/painting/imagecomposition/main.cpp b/examples/widgets/painting/imagecomposition/main.cpp
index 6b17c4d3702..6b17c4d3702 100644
--- a/examples/painting/imagecomposition/main.cpp
+++ b/examples/widgets/painting/imagecomposition/main.cpp
diff --git a/examples/painting/painterpaths/main.cpp b/examples/widgets/painting/painterpaths/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/painting/painterpaths/main.cpp
+++ b/examples/widgets/painting/painterpaths/main.cpp
diff --git a/examples/painting/painterpaths/painterpaths.desktop b/examples/widgets/painting/painterpaths/painterpaths.desktop
index ae92f2c5894..ae92f2c5894 100644
--- a/examples/painting/painterpaths/painterpaths.desktop
+++ b/examples/widgets/painting/painterpaths/painterpaths.desktop
diff --git a/examples/painting/painterpaths/painterpaths.pro b/examples/widgets/painting/painterpaths/painterpaths.pro
index c988ba26e01..c988ba26e01 100644
--- a/examples/painting/painterpaths/painterpaths.pro
+++ b/examples/widgets/painting/painterpaths/painterpaths.pro
diff --git a/examples/painting/painterpaths/renderarea.cpp b/examples/widgets/painting/painterpaths/renderarea.cpp
index 0b3f1fdc0d3..0b3f1fdc0d3 100644
--- a/examples/painting/painterpaths/renderarea.cpp
+++ b/examples/widgets/painting/painterpaths/renderarea.cpp
diff --git a/examples/painting/painterpaths/renderarea.h b/examples/widgets/painting/painterpaths/renderarea.h
index 5c310fdf62f..5c310fdf62f 100644
--- a/examples/painting/painterpaths/renderarea.h
+++ b/examples/widgets/painting/painterpaths/renderarea.h
diff --git a/examples/painting/painterpaths/window.cpp b/examples/widgets/painting/painterpaths/window.cpp
index 3d3eef9d2bb..3d3eef9d2bb 100644
--- a/examples/painting/painterpaths/window.cpp
+++ b/examples/widgets/painting/painterpaths/window.cpp
diff --git a/examples/painting/painterpaths/window.h b/examples/widgets/painting/painterpaths/window.h
index 4c01719b16d..4c01719b16d 100644
--- a/examples/painting/painterpaths/window.h
+++ b/examples/widgets/painting/painterpaths/window.h
diff --git a/examples/painting/painting.pro b/examples/widgets/painting/painting.pro
index 927d94006b5..927d94006b5 100644
--- a/examples/painting/painting.pro
+++ b/examples/widgets/painting/painting.pro
diff --git a/examples/painting/pathstroke/main.cpp b/examples/widgets/painting/pathstroke/main.cpp
index c969d975a3b..c969d975a3b 100644
--- a/examples/painting/pathstroke/main.cpp
+++ b/examples/widgets/painting/pathstroke/main.cpp
diff --git a/examples/painting/pathstroke/pathstroke.cpp b/examples/widgets/painting/pathstroke/pathstroke.cpp
index 76495cafea1..76495cafea1 100644
--- a/examples/painting/pathstroke/pathstroke.cpp
+++ b/examples/widgets/painting/pathstroke/pathstroke.cpp
diff --git a/examples/painting/pathstroke/pathstroke.h b/examples/widgets/painting/pathstroke/pathstroke.h
index 743a757b0a6..743a757b0a6 100644
--- a/examples/painting/pathstroke/pathstroke.h
+++ b/examples/widgets/painting/pathstroke/pathstroke.h
diff --git a/examples/painting/pathstroke/pathstroke.html b/examples/widgets/painting/pathstroke/pathstroke.html
index 9e7e50de764..9e7e50de764 100644
--- a/examples/painting/pathstroke/pathstroke.html
+++ b/examples/widgets/painting/pathstroke/pathstroke.html
diff --git a/examples/painting/pathstroke/pathstroke.pro b/examples/widgets/painting/pathstroke/pathstroke.pro
index 916866d1f2e..916866d1f2e 100644
--- a/examples/painting/pathstroke/pathstroke.pro
+++ b/examples/widgets/painting/pathstroke/pathstroke.pro
diff --git a/examples/painting/pathstroke/pathstroke.qrc b/examples/widgets/painting/pathstroke/pathstroke.qrc
index a9a723409e0..a9a723409e0 100644
--- a/examples/painting/pathstroke/pathstroke.qrc
+++ b/examples/widgets/painting/pathstroke/pathstroke.qrc
diff --git a/examples/painting/shared/arthurstyle.cpp b/examples/widgets/painting/shared/arthurstyle.cpp
index 4bd34464bf0..4bd34464bf0 100644
--- a/examples/painting/shared/arthurstyle.cpp
+++ b/examples/widgets/painting/shared/arthurstyle.cpp
diff --git a/examples/painting/shared/arthurstyle.h b/examples/widgets/painting/shared/arthurstyle.h
index 1d6a573a4e6..1d6a573a4e6 100644
--- a/examples/painting/shared/arthurstyle.h
+++ b/examples/widgets/painting/shared/arthurstyle.h
diff --git a/examples/painting/shared/arthurwidgets.cpp b/examples/widgets/painting/shared/arthurwidgets.cpp
index cf790fea3b4..cf790fea3b4 100644
--- a/examples/painting/shared/arthurwidgets.cpp
+++ b/examples/widgets/painting/shared/arthurwidgets.cpp
diff --git a/examples/painting/shared/arthurwidgets.h b/examples/widgets/painting/shared/arthurwidgets.h
index 28b986dd0b1..28b986dd0b1 100644
--- a/examples/painting/shared/arthurwidgets.h
+++ b/examples/widgets/painting/shared/arthurwidgets.h
diff --git a/examples/painting/shared/hoverpoints.cpp b/examples/widgets/painting/shared/hoverpoints.cpp
index 824d92eb309..824d92eb309 100644
--- a/examples/painting/shared/hoverpoints.cpp
+++ b/examples/widgets/painting/shared/hoverpoints.cpp
diff --git a/examples/painting/shared/hoverpoints.h b/examples/widgets/painting/shared/hoverpoints.h
index 5472f10a3a8..5472f10a3a8 100644
--- a/examples/painting/shared/hoverpoints.h
+++ b/examples/widgets/painting/shared/hoverpoints.h
diff --git a/examples/painting/shared/images/bg_pattern.png b/examples/widgets/painting/shared/images/bg_pattern.png
index ee670266f03..ee670266f03 100644
--- a/examples/painting/shared/images/bg_pattern.png
+++ b/examples/widgets/painting/shared/images/bg_pattern.png
Binary files differ
diff --git a/examples/painting/shared/images/button_normal_cap_left.png b/examples/widgets/painting/shared/images/button_normal_cap_left.png
index db31dd971d4..db31dd971d4 100644
--- a/examples/painting/shared/images/button_normal_cap_left.png
+++ b/examples/widgets/painting/shared/images/button_normal_cap_left.png
Binary files differ
diff --git a/examples/painting/shared/images/button_normal_cap_right.png b/examples/widgets/painting/shared/images/button_normal_cap_right.png
index 38ead1c7191..38ead1c7191 100644
--- a/examples/painting/shared/images/button_normal_cap_right.png
+++ b/examples/widgets/painting/shared/images/button_normal_cap_right.png
Binary files differ
diff --git a/examples/painting/shared/images/button_normal_stretch.png b/examples/widgets/painting/shared/images/button_normal_stretch.png
index 87abe67ac90..87abe67ac90 100644
--- a/examples/painting/shared/images/button_normal_stretch.png
+++ b/examples/widgets/painting/shared/images/button_normal_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/button_pressed_cap_left.png b/examples/widgets/painting/shared/images/button_pressed_cap_left.png
index 66bfc13cb48..66bfc13cb48 100644
--- a/examples/painting/shared/images/button_pressed_cap_left.png
+++ b/examples/widgets/painting/shared/images/button_pressed_cap_left.png
Binary files differ
diff --git a/examples/painting/shared/images/button_pressed_cap_right.png b/examples/widgets/painting/shared/images/button_pressed_cap_right.png
index 3d4cfe25b14..3d4cfe25b14 100644
--- a/examples/painting/shared/images/button_pressed_cap_right.png
+++ b/examples/widgets/painting/shared/images/button_pressed_cap_right.png
Binary files differ
diff --git a/examples/painting/shared/images/button_pressed_stretch.png b/examples/widgets/painting/shared/images/button_pressed_stretch.png
index 4dd4ad11e6f..4dd4ad11e6f 100644
--- a/examples/painting/shared/images/button_pressed_stretch.png
+++ b/examples/widgets/painting/shared/images/button_pressed_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/curve_thing_edit-6.png b/examples/widgets/painting/shared/images/curve_thing_edit-6.png
index 034b474d02e..034b474d02e 100644
--- a/examples/painting/shared/images/curve_thing_edit-6.png
+++ b/examples/widgets/painting/shared/images/curve_thing_edit-6.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_bottom.png b/examples/widgets/painting/shared/images/frame_bottom.png
index 889b40d3044..889b40d3044 100644
--- a/examples/painting/shared/images/frame_bottom.png
+++ b/examples/widgets/painting/shared/images/frame_bottom.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_bottomleft.png b/examples/widgets/painting/shared/images/frame_bottomleft.png
index 0b3023f3975..0b3023f3975 100644
--- a/examples/painting/shared/images/frame_bottomleft.png
+++ b/examples/widgets/painting/shared/images/frame_bottomleft.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_bottomright.png b/examples/widgets/painting/shared/images/frame_bottomright.png
index 0021e35864c..0021e35864c 100644
--- a/examples/painting/shared/images/frame_bottomright.png
+++ b/examples/widgets/painting/shared/images/frame_bottomright.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_left.png b/examples/widgets/painting/shared/images/frame_left.png
index 40f331c2931..40f331c2931 100644
--- a/examples/painting/shared/images/frame_left.png
+++ b/examples/widgets/painting/shared/images/frame_left.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_right.png b/examples/widgets/painting/shared/images/frame_right.png
index 023af8c700b..023af8c700b 100644
--- a/examples/painting/shared/images/frame_right.png
+++ b/examples/widgets/painting/shared/images/frame_right.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_top.png b/examples/widgets/painting/shared/images/frame_top.png
index 001f3a71440..001f3a71440 100644
--- a/examples/painting/shared/images/frame_top.png
+++ b/examples/widgets/painting/shared/images/frame_top.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_topleft.png b/examples/widgets/painting/shared/images/frame_topleft.png
index 58c68d407ad..58c68d407ad 100644
--- a/examples/painting/shared/images/frame_topleft.png
+++ b/examples/widgets/painting/shared/images/frame_topleft.png
Binary files differ
diff --git a/examples/painting/shared/images/frame_topright.png b/examples/widgets/painting/shared/images/frame_topright.png
index 6a7e8d3eb3e..6a7e8d3eb3e 100644
--- a/examples/painting/shared/images/frame_topright.png
+++ b/examples/widgets/painting/shared/images/frame_topright.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_bottom_left.png b/examples/widgets/painting/shared/images/groupframe_bottom_left.png
index af2fe061e3d..af2fe061e3d 100644
--- a/examples/painting/shared/images/groupframe_bottom_left.png
+++ b/examples/widgets/painting/shared/images/groupframe_bottom_left.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_bottom_right.png b/examples/widgets/painting/shared/images/groupframe_bottom_right.png
index fdf2e97b13b..fdf2e97b13b 100644
--- a/examples/painting/shared/images/groupframe_bottom_right.png
+++ b/examples/widgets/painting/shared/images/groupframe_bottom_right.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_bottom_stretch.png b/examples/widgets/painting/shared/images/groupframe_bottom_stretch.png
index f47b67d7c09..f47b67d7c09 100644
--- a/examples/painting/shared/images/groupframe_bottom_stretch.png
+++ b/examples/widgets/painting/shared/images/groupframe_bottom_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_left_stretch.png b/examples/widgets/painting/shared/images/groupframe_left_stretch.png
index c122f462ed2..c122f462ed2 100644
--- a/examples/painting/shared/images/groupframe_left_stretch.png
+++ b/examples/widgets/painting/shared/images/groupframe_left_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_right_stretch.png b/examples/widgets/painting/shared/images/groupframe_right_stretch.png
index 1056b7812a4..1056b7812a4 100644
--- a/examples/painting/shared/images/groupframe_right_stretch.png
+++ b/examples/widgets/painting/shared/images/groupframe_right_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_top_stretch.png b/examples/widgets/painting/shared/images/groupframe_top_stretch.png
index 5746ef96fcd..5746ef96fcd 100644
--- a/examples/painting/shared/images/groupframe_top_stretch.png
+++ b/examples/widgets/painting/shared/images/groupframe_top_stretch.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_topleft.png b/examples/widgets/painting/shared/images/groupframe_topleft.png
index 98d9cd96b46..98d9cd96b46 100644
--- a/examples/painting/shared/images/groupframe_topleft.png
+++ b/examples/widgets/painting/shared/images/groupframe_topleft.png
Binary files differ
diff --git a/examples/painting/shared/images/groupframe_topright.png b/examples/widgets/painting/shared/images/groupframe_topright.png
index 1a0a328c201..1a0a328c201 100644
--- a/examples/painting/shared/images/groupframe_topright.png
+++ b/examples/widgets/painting/shared/images/groupframe_topright.png
Binary files differ
diff --git a/examples/painting/shared/images/line_dash_dot.png b/examples/widgets/painting/shared/images/line_dash_dot.png
index 1c61442d9f3..1c61442d9f3 100644
--- a/examples/painting/shared/images/line_dash_dot.png
+++ b/examples/widgets/painting/shared/images/line_dash_dot.png
Binary files differ
diff --git a/examples/painting/shared/images/line_dash_dot_dot.png b/examples/widgets/painting/shared/images/line_dash_dot_dot.png
index 0d9bb972f9e..0d9bb972f9e 100644
--- a/examples/painting/shared/images/line_dash_dot_dot.png
+++ b/examples/widgets/painting/shared/images/line_dash_dot_dot.png
Binary files differ
diff --git a/examples/painting/shared/images/line_dashed.png b/examples/widgets/painting/shared/images/line_dashed.png
index d5bc7ea5fe5..d5bc7ea5fe5 100644
--- a/examples/painting/shared/images/line_dashed.png
+++ b/examples/widgets/painting/shared/images/line_dashed.png
Binary files differ
diff --git a/examples/painting/shared/images/line_dotted.png b/examples/widgets/painting/shared/images/line_dotted.png
index a2f9a359257..a2f9a359257 100644
--- a/examples/painting/shared/images/line_dotted.png
+++ b/examples/widgets/painting/shared/images/line_dotted.png
Binary files differ
diff --git a/examples/painting/shared/images/line_solid.png b/examples/widgets/painting/shared/images/line_solid.png
index 60ef3f94857..60ef3f94857 100644
--- a/examples/painting/shared/images/line_solid.png
+++ b/examples/widgets/painting/shared/images/line_solid.png
Binary files differ
diff --git a/examples/painting/shared/images/radiobutton-off.png b/examples/widgets/painting/shared/images/radiobutton-off.png
index af1753a3e71..af1753a3e71 100644
--- a/examples/painting/shared/images/radiobutton-off.png
+++ b/examples/widgets/painting/shared/images/radiobutton-off.png
Binary files differ
diff --git a/examples/painting/shared/images/radiobutton-on.png b/examples/widgets/painting/shared/images/radiobutton-on.png
index f875838bb51..f875838bb51 100644
--- a/examples/painting/shared/images/radiobutton-on.png
+++ b/examples/widgets/painting/shared/images/radiobutton-on.png
Binary files differ
diff --git a/examples/painting/shared/images/radiobutton_off.png b/examples/widgets/painting/shared/images/radiobutton_off.png
index 400906ebfad..400906ebfad 100644
--- a/examples/painting/shared/images/radiobutton_off.png
+++ b/examples/widgets/painting/shared/images/radiobutton_off.png
Binary files differ
diff --git a/examples/painting/shared/images/radiobutton_on.png b/examples/widgets/painting/shared/images/radiobutton_on.png
index 50a049ec56c..50a049ec56c 100644
--- a/examples/painting/shared/images/radiobutton_on.png
+++ b/examples/widgets/painting/shared/images/radiobutton_on.png
Binary files differ
diff --git a/examples/painting/shared/images/slider_bar.png b/examples/widgets/painting/shared/images/slider_bar.png
index 1b3d62c0079..1b3d62c0079 100644
--- a/examples/painting/shared/images/slider_bar.png
+++ b/examples/widgets/painting/shared/images/slider_bar.png
Binary files differ
diff --git a/examples/painting/shared/images/slider_thumb_off.png b/examples/widgets/painting/shared/images/slider_thumb_off.png
index d7f141daef6..d7f141daef6 100644
--- a/examples/painting/shared/images/slider_thumb_off.png
+++ b/examples/widgets/painting/shared/images/slider_thumb_off.png
Binary files differ
diff --git a/examples/painting/shared/images/slider_thumb_on.png b/examples/widgets/painting/shared/images/slider_thumb_on.png
index 8e1f510813e..8e1f510813e 100644
--- a/examples/painting/shared/images/slider_thumb_on.png
+++ b/examples/widgets/painting/shared/images/slider_thumb_on.png
Binary files differ
diff --git a/examples/painting/shared/images/title_cap_left.png b/examples/widgets/painting/shared/images/title_cap_left.png
index 2d475070c8d..2d475070c8d 100644
--- a/examples/painting/shared/images/title_cap_left.png
+++ b/examples/widgets/painting/shared/images/title_cap_left.png
Binary files differ
diff --git a/examples/painting/shared/images/title_cap_right.png b/examples/widgets/painting/shared/images/title_cap_right.png
index dc3ff8536c7..dc3ff8536c7 100644
--- a/examples/painting/shared/images/title_cap_right.png
+++ b/examples/widgets/painting/shared/images/title_cap_right.png
Binary files differ
diff --git a/examples/painting/shared/images/title_stretch.png b/examples/widgets/painting/shared/images/title_stretch.png
index 11043345d05..11043345d05 100644
--- a/examples/painting/shared/images/title_stretch.png
+++ b/examples/widgets/painting/shared/images/title_stretch.png
Binary files differ
diff --git a/examples/painting/shared/shared.pri b/examples/widgets/painting/shared/shared.pri
index 2d6b3c78f94..2d6b3c78f94 100644
--- a/examples/painting/shared/shared.pri
+++ b/examples/widgets/painting/shared/shared.pri
diff --git a/examples/painting/shared/shared.pro b/examples/widgets/painting/shared/shared.pro
index 212f3a20d7e..212f3a20d7e 100644
--- a/examples/painting/shared/shared.pro
+++ b/examples/widgets/painting/shared/shared.pro
diff --git a/examples/painting/shared/shared.qrc b/examples/widgets/painting/shared/shared.qrc
index 17336ecf80c..17336ecf80c 100644
--- a/examples/painting/shared/shared.qrc
+++ b/examples/widgets/painting/shared/shared.qrc
diff --git a/examples/painting/svggenerator/svggenerator.desktop b/examples/widgets/painting/svggenerator/svggenerator.desktop
index 3ae32a4908b..3ae32a4908b 100644
--- a/examples/painting/svggenerator/svggenerator.desktop
+++ b/examples/widgets/painting/svggenerator/svggenerator.desktop
diff --git a/examples/painting/svgviewer/svgviewer.desktop b/examples/widgets/painting/svgviewer/svgviewer.desktop
index 477ef789d80..477ef789d80 100644
--- a/examples/painting/svgviewer/svgviewer.desktop
+++ b/examples/widgets/painting/svgviewer/svgviewer.desktop
diff --git a/examples/painting/transformations/main.cpp b/examples/widgets/painting/transformations/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/painting/transformations/main.cpp
+++ b/examples/widgets/painting/transformations/main.cpp
diff --git a/examples/painting/transformations/renderarea.cpp b/examples/widgets/painting/transformations/renderarea.cpp
index 58be8143c35..58be8143c35 100644
--- a/examples/painting/transformations/renderarea.cpp
+++ b/examples/widgets/painting/transformations/renderarea.cpp
diff --git a/examples/painting/transformations/renderarea.h b/examples/widgets/painting/transformations/renderarea.h
index adc6c1ad7f5..adc6c1ad7f5 100644
--- a/examples/painting/transformations/renderarea.h
+++ b/examples/widgets/painting/transformations/renderarea.h
diff --git a/examples/painting/transformations/transformations.desktop b/examples/widgets/painting/transformations/transformations.desktop
index 2f538910695..2f538910695 100644
--- a/examples/painting/transformations/transformations.desktop
+++ b/examples/widgets/painting/transformations/transformations.desktop
diff --git a/examples/painting/transformations/transformations.pro b/examples/widgets/painting/transformations/transformations.pro
index a261c533712..a261c533712 100644
--- a/examples/painting/transformations/transformations.pro
+++ b/examples/widgets/painting/transformations/transformations.pro
diff --git a/examples/painting/transformations/window.cpp b/examples/widgets/painting/transformations/window.cpp
index 5f9296be7f5..5f9296be7f5 100644
--- a/examples/painting/transformations/window.cpp
+++ b/examples/widgets/painting/transformations/window.cpp
diff --git a/examples/painting/transformations/window.h b/examples/widgets/painting/transformations/window.h
index f28e53e4947..f28e53e4947 100644
--- a/examples/painting/transformations/window.h
+++ b/examples/widgets/painting/transformations/window.h
diff --git a/examples/richtext/README b/examples/widgets/richtext/README
index 647029b8a26..647029b8a26 100644
--- a/examples/richtext/README
+++ b/examples/widgets/richtext/README
diff --git a/examples/richtext/calendar/calendar.desktop b/examples/widgets/richtext/calendar/calendar.desktop
index 41ba6dd95a6..41ba6dd95a6 100644
--- a/examples/richtext/calendar/calendar.desktop
+++ b/examples/widgets/richtext/calendar/calendar.desktop
diff --git a/examples/richtext/calendar/calendar.pro b/examples/widgets/richtext/calendar/calendar.pro
index 3867a027cfd..3867a027cfd 100644
--- a/examples/richtext/calendar/calendar.pro
+++ b/examples/widgets/richtext/calendar/calendar.pro
diff --git a/examples/richtext/calendar/main.cpp b/examples/widgets/richtext/calendar/main.cpp
index 35b6b90c132..35b6b90c132 100644
--- a/examples/richtext/calendar/main.cpp
+++ b/examples/widgets/richtext/calendar/main.cpp
diff --git a/examples/richtext/calendar/mainwindow.cpp b/examples/widgets/richtext/calendar/mainwindow.cpp
index 366ebff2a9f..366ebff2a9f 100644
--- a/examples/richtext/calendar/mainwindow.cpp
+++ b/examples/widgets/richtext/calendar/mainwindow.cpp
diff --git a/examples/richtext/calendar/mainwindow.h b/examples/widgets/richtext/calendar/mainwindow.h
index 665452b6883..665452b6883 100644
--- a/examples/richtext/calendar/mainwindow.h
+++ b/examples/widgets/richtext/calendar/mainwindow.h
diff --git a/examples/richtext/orderform/detailsdialog.cpp b/examples/widgets/richtext/orderform/detailsdialog.cpp
index 3dbdee58c7f..3dbdee58c7f 100644
--- a/examples/richtext/orderform/detailsdialog.cpp
+++ b/examples/widgets/richtext/orderform/detailsdialog.cpp
diff --git a/examples/richtext/orderform/detailsdialog.h b/examples/widgets/richtext/orderform/detailsdialog.h
index ee964d082ef..ee964d082ef 100644
--- a/examples/richtext/orderform/detailsdialog.h
+++ b/examples/widgets/richtext/orderform/detailsdialog.h
diff --git a/examples/richtext/orderform/main.cpp b/examples/widgets/richtext/orderform/main.cpp
index fc14fbb625d..fc14fbb625d 100644
--- a/examples/richtext/orderform/main.cpp
+++ b/examples/widgets/richtext/orderform/main.cpp
diff --git a/examples/richtext/orderform/mainwindow.cpp b/examples/widgets/richtext/orderform/mainwindow.cpp
index 44b3cb4f9af..44b3cb4f9af 100644
--- a/examples/richtext/orderform/mainwindow.cpp
+++ b/examples/widgets/richtext/orderform/mainwindow.cpp
diff --git a/examples/richtext/orderform/mainwindow.h b/examples/widgets/richtext/orderform/mainwindow.h
index e688f42a80c..e688f42a80c 100644
--- a/examples/richtext/orderform/mainwindow.h
+++ b/examples/widgets/richtext/orderform/mainwindow.h
diff --git a/examples/richtext/orderform/orderform.desktop b/examples/widgets/richtext/orderform/orderform.desktop
index 4690cbc8765..4690cbc8765 100644
--- a/examples/richtext/orderform/orderform.desktop
+++ b/examples/widgets/richtext/orderform/orderform.desktop
diff --git a/examples/richtext/orderform/orderform.pro b/examples/widgets/richtext/orderform/orderform.pro
index 4aefb994288..4aefb994288 100644
--- a/examples/richtext/orderform/orderform.pro
+++ b/examples/widgets/richtext/orderform/orderform.pro
diff --git a/examples/richtext/richtext.pro b/examples/widgets/richtext/richtext.pro
index 511edb9ea9c..511edb9ea9c 100644
--- a/examples/richtext/richtext.pro
+++ b/examples/widgets/richtext/richtext.pro
diff --git a/examples/richtext/syntaxhighlighter/highlighter.cpp b/examples/widgets/richtext/syntaxhighlighter/highlighter.cpp
index 826e1321107..826e1321107 100644
--- a/examples/richtext/syntaxhighlighter/highlighter.cpp
+++ b/examples/widgets/richtext/syntaxhighlighter/highlighter.cpp
diff --git a/examples/richtext/syntaxhighlighter/highlighter.h b/examples/widgets/richtext/syntaxhighlighter/highlighter.h
index 3f75063f894..3f75063f894 100644
--- a/examples/richtext/syntaxhighlighter/highlighter.h
+++ b/examples/widgets/richtext/syntaxhighlighter/highlighter.h
diff --git a/examples/richtext/syntaxhighlighter/main.cpp b/examples/widgets/richtext/syntaxhighlighter/main.cpp
index 5c2f0f236d6..5c2f0f236d6 100644
--- a/examples/richtext/syntaxhighlighter/main.cpp
+++ b/examples/widgets/richtext/syntaxhighlighter/main.cpp
diff --git a/examples/richtext/syntaxhighlighter/mainwindow.cpp b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
index ffb02ebb9b5..ffb02ebb9b5 100644
--- a/examples/richtext/syntaxhighlighter/mainwindow.cpp
+++ b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
diff --git a/examples/richtext/syntaxhighlighter/mainwindow.h b/examples/widgets/richtext/syntaxhighlighter/mainwindow.h
index 082ea77ba4c..082ea77ba4c 100644
--- a/examples/richtext/syntaxhighlighter/mainwindow.h
+++ b/examples/widgets/richtext/syntaxhighlighter/mainwindow.h
diff --git a/examples/richtext/syntaxhighlighter/syntaxhighlighter.desktop b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.desktop
index 2e3c833f0ee..2e3c833f0ee 100644
--- a/examples/richtext/syntaxhighlighter/syntaxhighlighter.desktop
+++ b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.desktop
diff --git a/examples/richtext/syntaxhighlighter/syntaxhighlighter.pro b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro
index 0f9b447a746..0f9b447a746 100644
--- a/examples/richtext/syntaxhighlighter/syntaxhighlighter.pro
+++ b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro
diff --git a/examples/richtext/textedit/example.html b/examples/widgets/richtext/textedit/example.html
index cdc8d2a23d1..cdc8d2a23d1 100644
--- a/examples/richtext/textedit/example.html
+++ b/examples/widgets/richtext/textedit/example.html
diff --git a/examples/richtext/textedit/images/logo32.png b/examples/widgets/richtext/textedit/images/logo32.png
index 5f91e9873b7..5f91e9873b7 100644
--- a/examples/richtext/textedit/images/logo32.png
+++ b/examples/widgets/richtext/textedit/images/logo32.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/editcopy.png b/examples/widgets/richtext/textedit/images/mac/editcopy.png
index f551364464a..f551364464a 100644
--- a/examples/richtext/textedit/images/mac/editcopy.png
+++ b/examples/widgets/richtext/textedit/images/mac/editcopy.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/editcut.png b/examples/widgets/richtext/textedit/images/mac/editcut.png
index a784fd5709d..a784fd5709d 100644
--- a/examples/richtext/textedit/images/mac/editcut.png
+++ b/examples/widgets/richtext/textedit/images/mac/editcut.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/editpaste.png b/examples/widgets/richtext/textedit/images/mac/editpaste.png
index 64c0b2d6ab8..64c0b2d6ab8 100644
--- a/examples/richtext/textedit/images/mac/editpaste.png
+++ b/examples/widgets/richtext/textedit/images/mac/editpaste.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/editredo.png b/examples/widgets/richtext/textedit/images/mac/editredo.png
index 8875bf246c5..8875bf246c5 100644
--- a/examples/richtext/textedit/images/mac/editredo.png
+++ b/examples/widgets/richtext/textedit/images/mac/editredo.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/editundo.png b/examples/widgets/richtext/textedit/images/mac/editundo.png
index a3bd5e0bf21..a3bd5e0bf21 100644
--- a/examples/richtext/textedit/images/mac/editundo.png
+++ b/examples/widgets/richtext/textedit/images/mac/editundo.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/exportpdf.png b/examples/widgets/richtext/textedit/images/mac/exportpdf.png
index ebb44e6b882..ebb44e6b882 100644
--- a/examples/richtext/textedit/images/mac/exportpdf.png
+++ b/examples/widgets/richtext/textedit/images/mac/exportpdf.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/filenew.png b/examples/widgets/richtext/textedit/images/mac/filenew.png
index d3882c7b3fe..d3882c7b3fe 100644
--- a/examples/richtext/textedit/images/mac/filenew.png
+++ b/examples/widgets/richtext/textedit/images/mac/filenew.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/fileopen.png b/examples/widgets/richtext/textedit/images/mac/fileopen.png
index fc06c5ec63e..fc06c5ec63e 100644
--- a/examples/richtext/textedit/images/mac/fileopen.png
+++ b/examples/widgets/richtext/textedit/images/mac/fileopen.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/fileprint.png b/examples/widgets/richtext/textedit/images/mac/fileprint.png
index 10ca56c82ae..10ca56c82ae 100644
--- a/examples/richtext/textedit/images/mac/fileprint.png
+++ b/examples/widgets/richtext/textedit/images/mac/fileprint.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/filesave.png b/examples/widgets/richtext/textedit/images/mac/filesave.png
index b41ecf53198..b41ecf53198 100644
--- a/examples/richtext/textedit/images/mac/filesave.png
+++ b/examples/widgets/richtext/textedit/images/mac/filesave.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textbold.png b/examples/widgets/richtext/textedit/images/mac/textbold.png
index 38400bd1f69..38400bd1f69 100644
--- a/examples/richtext/textedit/images/mac/textbold.png
+++ b/examples/widgets/richtext/textedit/images/mac/textbold.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textcenter.png b/examples/widgets/richtext/textedit/images/mac/textcenter.png
index 2ef5b2ee6f3..2ef5b2ee6f3 100644
--- a/examples/richtext/textedit/images/mac/textcenter.png
+++ b/examples/widgets/richtext/textedit/images/mac/textcenter.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textitalic.png b/examples/widgets/richtext/textedit/images/mac/textitalic.png
index 0170ee26a6f..0170ee26a6f 100644
--- a/examples/richtext/textedit/images/mac/textitalic.png
+++ b/examples/widgets/richtext/textedit/images/mac/textitalic.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textjustify.png b/examples/widgets/richtext/textedit/images/mac/textjustify.png
index 39cd6c1a9d7..39cd6c1a9d7 100644
--- a/examples/richtext/textedit/images/mac/textjustify.png
+++ b/examples/widgets/richtext/textedit/images/mac/textjustify.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textleft.png b/examples/widgets/richtext/textedit/images/mac/textleft.png
index 83a66d55355..83a66d55355 100644
--- a/examples/richtext/textedit/images/mac/textleft.png
+++ b/examples/widgets/richtext/textedit/images/mac/textleft.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textright.png b/examples/widgets/richtext/textedit/images/mac/textright.png
index e7c04645cf4..e7c04645cf4 100644
--- a/examples/richtext/textedit/images/mac/textright.png
+++ b/examples/widgets/richtext/textedit/images/mac/textright.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/textunder.png b/examples/widgets/richtext/textedit/images/mac/textunder.png
index 968bac5e90e..968bac5e90e 100644
--- a/examples/richtext/textedit/images/mac/textunder.png
+++ b/examples/widgets/richtext/textedit/images/mac/textunder.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/zoomin.png b/examples/widgets/richtext/textedit/images/mac/zoomin.png
index d46f5aff0d9..d46f5aff0d9 100644
--- a/examples/richtext/textedit/images/mac/zoomin.png
+++ b/examples/widgets/richtext/textedit/images/mac/zoomin.png
Binary files differ
diff --git a/examples/richtext/textedit/images/mac/zoomout.png b/examples/widgets/richtext/textedit/images/mac/zoomout.png
index 46326566d11..46326566d11 100644
--- a/examples/richtext/textedit/images/mac/zoomout.png
+++ b/examples/widgets/richtext/textedit/images/mac/zoomout.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/editcopy.png b/examples/widgets/richtext/textedit/images/win/editcopy.png
index 1121b47d8b6..1121b47d8b6 100644
--- a/examples/richtext/textedit/images/win/editcopy.png
+++ b/examples/widgets/richtext/textedit/images/win/editcopy.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/editcut.png b/examples/widgets/richtext/textedit/images/win/editcut.png
index 38e55f7420e..38e55f7420e 100644
--- a/examples/richtext/textedit/images/win/editcut.png
+++ b/examples/widgets/richtext/textedit/images/win/editcut.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/editpaste.png b/examples/widgets/richtext/textedit/images/win/editpaste.png
index ffab15aaf8d..ffab15aaf8d 100644
--- a/examples/richtext/textedit/images/win/editpaste.png
+++ b/examples/widgets/richtext/textedit/images/win/editpaste.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/editredo.png b/examples/widgets/richtext/textedit/images/win/editredo.png
index 9d679fe6fcb..9d679fe6fcb 100644
--- a/examples/richtext/textedit/images/win/editredo.png
+++ b/examples/widgets/richtext/textedit/images/win/editredo.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/editundo.png b/examples/widgets/richtext/textedit/images/win/editundo.png
index eee23d24a31..eee23d24a31 100644
--- a/examples/richtext/textedit/images/win/editundo.png
+++ b/examples/widgets/richtext/textedit/images/win/editundo.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/exportpdf.png b/examples/widgets/richtext/textedit/images/win/exportpdf.png
index eef5132928b..eef5132928b 100644
--- a/examples/richtext/textedit/images/win/exportpdf.png
+++ b/examples/widgets/richtext/textedit/images/win/exportpdf.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/filenew.png b/examples/widgets/richtext/textedit/images/win/filenew.png
index af5d1221412..af5d1221412 100644
--- a/examples/richtext/textedit/images/win/filenew.png
+++ b/examples/widgets/richtext/textedit/images/win/filenew.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/fileopen.png b/examples/widgets/richtext/textedit/images/win/fileopen.png
index fc6f17e9774..fc6f17e9774 100644
--- a/examples/richtext/textedit/images/win/fileopen.png
+++ b/examples/widgets/richtext/textedit/images/win/fileopen.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/fileprint.png b/examples/widgets/richtext/textedit/images/win/fileprint.png
index ba7c02dc18d..ba7c02dc18d 100644
--- a/examples/richtext/textedit/images/win/fileprint.png
+++ b/examples/widgets/richtext/textedit/images/win/fileprint.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/filesave.png b/examples/widgets/richtext/textedit/images/win/filesave.png
index 8feec99bee8..8feec99bee8 100644
--- a/examples/richtext/textedit/images/win/filesave.png
+++ b/examples/widgets/richtext/textedit/images/win/filesave.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textbold.png b/examples/widgets/richtext/textedit/images/win/textbold.png
index 9cbc7138b90..9cbc7138b90 100644
--- a/examples/richtext/textedit/images/win/textbold.png
+++ b/examples/widgets/richtext/textedit/images/win/textbold.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textcenter.png b/examples/widgets/richtext/textedit/images/win/textcenter.png
index 11efb4b8524..11efb4b8524 100644
--- a/examples/richtext/textedit/images/win/textcenter.png
+++ b/examples/widgets/richtext/textedit/images/win/textcenter.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textitalic.png b/examples/widgets/richtext/textedit/images/win/textitalic.png
index b30ce14c14d..b30ce14c14d 100644
--- a/examples/richtext/textedit/images/win/textitalic.png
+++ b/examples/widgets/richtext/textedit/images/win/textitalic.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textjustify.png b/examples/widgets/richtext/textedit/images/win/textjustify.png
index 9de0c880850..9de0c880850 100644
--- a/examples/richtext/textedit/images/win/textjustify.png
+++ b/examples/widgets/richtext/textedit/images/win/textjustify.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textleft.png b/examples/widgets/richtext/textedit/images/win/textleft.png
index 16f80bc3258..16f80bc3258 100644
--- a/examples/richtext/textedit/images/win/textleft.png
+++ b/examples/widgets/richtext/textedit/images/win/textleft.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textright.png b/examples/widgets/richtext/textedit/images/win/textright.png
index 16872df62a9..16872df62a9 100644
--- a/examples/richtext/textedit/images/win/textright.png
+++ b/examples/widgets/richtext/textedit/images/win/textright.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/textunder.png b/examples/widgets/richtext/textedit/images/win/textunder.png
index c72eff53fba..c72eff53fba 100644
--- a/examples/richtext/textedit/images/win/textunder.png
+++ b/examples/widgets/richtext/textedit/images/win/textunder.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/zoomin.png b/examples/widgets/richtext/textedit/images/win/zoomin.png
index 2e586fc7bfb..2e586fc7bfb 100644
--- a/examples/richtext/textedit/images/win/zoomin.png
+++ b/examples/widgets/richtext/textedit/images/win/zoomin.png
Binary files differ
diff --git a/examples/richtext/textedit/images/win/zoomout.png b/examples/widgets/richtext/textedit/images/win/zoomout.png
index a736d393435..a736d393435 100644
--- a/examples/richtext/textedit/images/win/zoomout.png
+++ b/examples/widgets/richtext/textedit/images/win/zoomout.png
Binary files differ
diff --git a/examples/richtext/textedit/main.cpp b/examples/widgets/richtext/textedit/main.cpp
index ae12cd9979f..ae12cd9979f 100644
--- a/examples/richtext/textedit/main.cpp
+++ b/examples/widgets/richtext/textedit/main.cpp
diff --git a/examples/richtext/textedit/textedit.cpp b/examples/widgets/richtext/textedit/textedit.cpp
index 0be60230ca5..0be60230ca5 100644
--- a/examples/richtext/textedit/textedit.cpp
+++ b/examples/widgets/richtext/textedit/textedit.cpp
diff --git a/examples/richtext/textedit/textedit.h b/examples/widgets/richtext/textedit/textedit.h
index e04fde46047..e04fde46047 100644
--- a/examples/richtext/textedit/textedit.h
+++ b/examples/widgets/richtext/textedit/textedit.h
diff --git a/examples/richtext/textedit/textedit.pro b/examples/widgets/richtext/textedit/textedit.pro
index e172e79fe6f..e172e79fe6f 100644
--- a/examples/richtext/textedit/textedit.pro
+++ b/examples/widgets/richtext/textedit/textedit.pro
diff --git a/examples/richtext/textedit/textedit.qdoc b/examples/widgets/richtext/textedit/textedit.qdoc
index 7a3aa76ab6f..7a3aa76ab6f 100644
--- a/examples/richtext/textedit/textedit.qdoc
+++ b/examples/widgets/richtext/textedit/textedit.qdoc
diff --git a/examples/richtext/textedit/textedit.qrc b/examples/widgets/richtext/textedit/textedit.qrc
index 7d6efd7d67b..7d6efd7d67b 100644
--- a/examples/richtext/textedit/textedit.qrc
+++ b/examples/widgets/richtext/textedit/textedit.qrc
diff --git a/examples/scroller/graphicsview/graphicsview.pro b/examples/widgets/scroller/graphicsview/graphicsview.pro
index ccfb82d0ca4..ccfb82d0ca4 100644
--- a/examples/scroller/graphicsview/graphicsview.pro
+++ b/examples/widgets/scroller/graphicsview/graphicsview.pro
diff --git a/examples/scroller/graphicsview/main.cpp b/examples/widgets/scroller/graphicsview/main.cpp
index 0837719bb57..0837719bb57 100644
--- a/examples/scroller/graphicsview/main.cpp
+++ b/examples/widgets/scroller/graphicsview/main.cpp
diff --git a/examples/scroller/scroller.pro b/examples/widgets/scroller/scroller.pro
index bac3f265546..bac3f265546 100644
--- a/examples/scroller/scroller.pro
+++ b/examples/widgets/scroller/scroller.pro
diff --git a/examples/statemachine/README b/examples/widgets/statemachine/README
index a0ac35a89b7..a0ac35a89b7 100644
--- a/examples/statemachine/README
+++ b/examples/widgets/statemachine/README
diff --git a/examples/statemachine/eventtransitions/eventtransitions.desktop b/examples/widgets/statemachine/eventtransitions/eventtransitions.desktop
index c1bceb22408..c1bceb22408 100644
--- a/examples/statemachine/eventtransitions/eventtransitions.desktop
+++ b/examples/widgets/statemachine/eventtransitions/eventtransitions.desktop
diff --git a/examples/statemachine/eventtransitions/eventtransitions.pro b/examples/widgets/statemachine/eventtransitions/eventtransitions.pro
index 8a9d84e6465..8a9d84e6465 100644
--- a/examples/statemachine/eventtransitions/eventtransitions.pro
+++ b/examples/widgets/statemachine/eventtransitions/eventtransitions.pro
diff --git a/examples/statemachine/eventtransitions/main.cpp b/examples/widgets/statemachine/eventtransitions/main.cpp
index b3af3b825f5..b3af3b825f5 100644
--- a/examples/statemachine/eventtransitions/main.cpp
+++ b/examples/widgets/statemachine/eventtransitions/main.cpp
diff --git a/examples/statemachine/factorial/factorial.desktop b/examples/widgets/statemachine/factorial/factorial.desktop
index 41b27227f93..41b27227f93 100644
--- a/examples/statemachine/factorial/factorial.desktop
+++ b/examples/widgets/statemachine/factorial/factorial.desktop
diff --git a/examples/statemachine/factorial/factorial.pro b/examples/widgets/statemachine/factorial/factorial.pro
index fe3dd23e871..fe3dd23e871 100644
--- a/examples/statemachine/factorial/factorial.pro
+++ b/examples/widgets/statemachine/factorial/factorial.pro
diff --git a/examples/statemachine/factorial/main.cpp b/examples/widgets/statemachine/factorial/main.cpp
index df50cab02f6..df50cab02f6 100644
--- a/examples/statemachine/factorial/main.cpp
+++ b/examples/widgets/statemachine/factorial/main.cpp
diff --git a/examples/statemachine/pingpong/main.cpp b/examples/widgets/statemachine/pingpong/main.cpp
index 636e7193b2d..636e7193b2d 100644
--- a/examples/statemachine/pingpong/main.cpp
+++ b/examples/widgets/statemachine/pingpong/main.cpp
diff --git a/examples/statemachine/pingpong/pingpong.desktop b/examples/widgets/statemachine/pingpong/pingpong.desktop
index 79646a2cc80..79646a2cc80 100644
--- a/examples/statemachine/pingpong/pingpong.desktop
+++ b/examples/widgets/statemachine/pingpong/pingpong.desktop
diff --git a/examples/statemachine/pingpong/pingpong.pro b/examples/widgets/statemachine/pingpong/pingpong.pro
index 1cfddaf282a..1cfddaf282a 100644
--- a/examples/statemachine/pingpong/pingpong.pro
+++ b/examples/widgets/statemachine/pingpong/pingpong.pro
diff --git a/examples/statemachine/rogue/main.cpp b/examples/widgets/statemachine/rogue/main.cpp
index c909c17cdee..c909c17cdee 100644
--- a/examples/statemachine/rogue/main.cpp
+++ b/examples/widgets/statemachine/rogue/main.cpp
diff --git a/examples/statemachine/rogue/movementtransition.h b/examples/widgets/statemachine/rogue/movementtransition.h
index 6f27da93b84..6f27da93b84 100644
--- a/examples/statemachine/rogue/movementtransition.h
+++ b/examples/widgets/statemachine/rogue/movementtransition.h
diff --git a/examples/statemachine/rogue/rogue.desktop b/examples/widgets/statemachine/rogue/rogue.desktop
index 71ca4b6511a..71ca4b6511a 100644
--- a/examples/statemachine/rogue/rogue.desktop
+++ b/examples/widgets/statemachine/rogue/rogue.desktop
diff --git a/examples/statemachine/rogue/rogue.pro b/examples/widgets/statemachine/rogue/rogue.pro
index 4ed132db06c..4ed132db06c 100644
--- a/examples/statemachine/rogue/rogue.pro
+++ b/examples/widgets/statemachine/rogue/rogue.pro
diff --git a/examples/statemachine/rogue/window.cpp b/examples/widgets/statemachine/rogue/window.cpp
index 0c57b2c2d74..0c57b2c2d74 100644
--- a/examples/statemachine/rogue/window.cpp
+++ b/examples/widgets/statemachine/rogue/window.cpp
diff --git a/examples/statemachine/rogue/window.h b/examples/widgets/statemachine/rogue/window.h
index 8ef3591e96b..8ef3591e96b 100644
--- a/examples/statemachine/rogue/window.h
+++ b/examples/widgets/statemachine/rogue/window.h
diff --git a/examples/statemachine/statemachine.pro b/examples/widgets/statemachine/statemachine.pro
index 7d510b29bec..7d510b29bec 100644
--- a/examples/statemachine/statemachine.pro
+++ b/examples/widgets/statemachine/statemachine.pro
diff --git a/examples/statemachine/trafficlight/main.cpp b/examples/widgets/statemachine/trafficlight/main.cpp
index 624e3f1559c..624e3f1559c 100644
--- a/examples/statemachine/trafficlight/main.cpp
+++ b/examples/widgets/statemachine/trafficlight/main.cpp
diff --git a/examples/statemachine/trafficlight/trafficlight.desktop b/examples/widgets/statemachine/trafficlight/trafficlight.desktop
index 8a5cc1673b6..8a5cc1673b6 100644
--- a/examples/statemachine/trafficlight/trafficlight.desktop
+++ b/examples/widgets/statemachine/trafficlight/trafficlight.desktop
diff --git a/examples/statemachine/trafficlight/trafficlight.pro b/examples/widgets/statemachine/trafficlight/trafficlight.pro
index 5bc0cdaef5c..5bc0cdaef5c 100644
--- a/examples/statemachine/trafficlight/trafficlight.pro
+++ b/examples/widgets/statemachine/trafficlight/trafficlight.pro
diff --git a/examples/statemachine/twowaybutton/main.cpp b/examples/widgets/statemachine/twowaybutton/main.cpp
index 05f82538ffc..05f82538ffc 100644
--- a/examples/statemachine/twowaybutton/main.cpp
+++ b/examples/widgets/statemachine/twowaybutton/main.cpp
diff --git a/examples/statemachine/twowaybutton/twowaybutton.desktop b/examples/widgets/statemachine/twowaybutton/twowaybutton.desktop
index 9dd0918937e..9dd0918937e 100644
--- a/examples/statemachine/twowaybutton/twowaybutton.desktop
+++ b/examples/widgets/statemachine/twowaybutton/twowaybutton.desktop
diff --git a/examples/statemachine/twowaybutton/twowaybutton.pro b/examples/widgets/statemachine/twowaybutton/twowaybutton.pro
index ffbd9828452..ffbd9828452 100644
--- a/examples/statemachine/twowaybutton/twowaybutton.pro
+++ b/examples/widgets/statemachine/twowaybutton/twowaybutton.pro
diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro
index 8ec33b42ea5..8c68b3721ef 100644
--- a/examples/widgets/widgets.pro
+++ b/examples/widgets/widgets.pro
@@ -1,35 +1,25 @@
TEMPLATE = subdirs
-SUBDIRS = analogclock \
- applicationicon \
- calculator \
- calendarwidget \
- charactermap \
- codeeditor \
- digitalclock \
- elidedlabel \
- groupbox \
- icons \
- imageviewer \
- lineedits \
- movie \
- mousebuttons \
- orientation \
- scribble \
- shapedclock \
- sliders \
- spinboxes \
- stylesheet \
- tablet \
- tetrix \
- tooltips \
- validators \
- wiggly \
- windowflags
+CONFIG += no_docs_target
-contains(styles, motif): SUBDIRS += styles
+SUBDIRS = \
+ animation \
+ desktop \
+ dialogs \
+ draganddrop \
+ effects \
+ graphicsview \
+ itemviews \
+ layouts \
+ mainwindows \
+ painting \
+ richtext \
+ scroller \
+ statemachine \
+ widgets
+
+contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
# install
-target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets
-sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS widgets.pro README
-sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets
-INSTALLS += target sources
+sources.files = README *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]
+INSTALLS += sources \ No newline at end of file
diff --git a/examples/widgets/README b/examples/widgets/widgets/README
index e862f07b714..e862f07b714 100644
--- a/examples/widgets/README
+++ b/examples/widgets/widgets/README
diff --git a/examples/widgets/analogclock/analogclock.cpp b/examples/widgets/widgets/analogclock/analogclock.cpp
index 029ca1031a3..029ca1031a3 100644
--- a/examples/widgets/analogclock/analogclock.cpp
+++ b/examples/widgets/widgets/analogclock/analogclock.cpp
diff --git a/examples/widgets/analogclock/analogclock.desktop b/examples/widgets/widgets/analogclock/analogclock.desktop
index b177a62d35b..b177a62d35b 100644
--- a/examples/widgets/analogclock/analogclock.desktop
+++ b/examples/widgets/widgets/analogclock/analogclock.desktop
diff --git a/examples/widgets/analogclock/analogclock.h b/examples/widgets/widgets/analogclock/analogclock.h
index f95a0957124..f95a0957124 100644
--- a/examples/widgets/analogclock/analogclock.h
+++ b/examples/widgets/widgets/analogclock/analogclock.h
diff --git a/examples/widgets/analogclock/analogclock.pro b/examples/widgets/widgets/analogclock/analogclock.pro
index a2641150e21..a2641150e21 100644
--- a/examples/widgets/analogclock/analogclock.pro
+++ b/examples/widgets/widgets/analogclock/analogclock.pro
diff --git a/examples/widgets/analogclock/main.cpp b/examples/widgets/widgets/analogclock/main.cpp
index 0efedc7acfe..0efedc7acfe 100644
--- a/examples/widgets/analogclock/main.cpp
+++ b/examples/widgets/widgets/analogclock/main.cpp
diff --git a/examples/widgets/applicationicon/applicationicon.desktop b/examples/widgets/widgets/applicationicon/applicationicon.desktop
index 96458021952..96458021952 100644
--- a/examples/widgets/applicationicon/applicationicon.desktop
+++ b/examples/widgets/widgets/applicationicon/applicationicon.desktop
diff --git a/examples/widgets/applicationicon/applicationicon.png b/examples/widgets/widgets/applicationicon/applicationicon.png
index 83a186ee56c..83a186ee56c 100644
--- a/examples/widgets/applicationicon/applicationicon.png
+++ b/examples/widgets/widgets/applicationicon/applicationicon.png
Binary files differ
diff --git a/examples/widgets/applicationicon/applicationicon.pro b/examples/widgets/widgets/applicationicon/applicationicon.pro
index 0a3ba8bbdd0..0a3ba8bbdd0 100644
--- a/examples/widgets/applicationicon/applicationicon.pro
+++ b/examples/widgets/widgets/applicationicon/applicationicon.pro
diff --git a/examples/widgets/applicationicon/applicationicon.svg b/examples/widgets/widgets/applicationicon/applicationicon.svg
index aa2835b08fd..aa2835b08fd 100644
--- a/examples/widgets/applicationicon/applicationicon.svg
+++ b/examples/widgets/widgets/applicationicon/applicationicon.svg
diff --git a/examples/widgets/applicationicon/main.cpp b/examples/widgets/widgets/applicationicon/main.cpp
index 1314de1cbfc..1314de1cbfc 100644
--- a/examples/widgets/applicationicon/main.cpp
+++ b/examples/widgets/widgets/applicationicon/main.cpp
diff --git a/examples/widgets/calculator/button.cpp b/examples/widgets/widgets/calculator/button.cpp
index 14c3ebe20d2..14c3ebe20d2 100644
--- a/examples/widgets/calculator/button.cpp
+++ b/examples/widgets/widgets/calculator/button.cpp
diff --git a/examples/widgets/calculator/button.h b/examples/widgets/widgets/calculator/button.h
index 50874ea574d..50874ea574d 100644
--- a/examples/widgets/calculator/button.h
+++ b/examples/widgets/widgets/calculator/button.h
diff --git a/examples/widgets/calculator/calculator.cpp b/examples/widgets/widgets/calculator/calculator.cpp
index 29503befc56..29503befc56 100644
--- a/examples/widgets/calculator/calculator.cpp
+++ b/examples/widgets/widgets/calculator/calculator.cpp
diff --git a/examples/widgets/calculator/calculator.desktop b/examples/widgets/widgets/calculator/calculator.desktop
index d0ae81d5a97..d0ae81d5a97 100644
--- a/examples/widgets/calculator/calculator.desktop
+++ b/examples/widgets/widgets/calculator/calculator.desktop
diff --git a/examples/widgets/calculator/calculator.h b/examples/widgets/widgets/calculator/calculator.h
index 6727d9b7331..6727d9b7331 100644
--- a/examples/widgets/calculator/calculator.h
+++ b/examples/widgets/widgets/calculator/calculator.h
diff --git a/examples/widgets/calculator/calculator.pro b/examples/widgets/widgets/calculator/calculator.pro
index d237871e0dc..d237871e0dc 100644
--- a/examples/widgets/calculator/calculator.pro
+++ b/examples/widgets/widgets/calculator/calculator.pro
diff --git a/examples/widgets/calculator/main.cpp b/examples/widgets/widgets/calculator/main.cpp
index e4f591aabee..e4f591aabee 100644
--- a/examples/widgets/calculator/main.cpp
+++ b/examples/widgets/widgets/calculator/main.cpp
diff --git a/examples/widgets/calculator/releasenotes.txt b/examples/widgets/widgets/calculator/releasenotes.txt
index 053f651dba1..053f651dba1 100644
--- a/examples/widgets/calculator/releasenotes.txt
+++ b/examples/widgets/widgets/calculator/releasenotes.txt
diff --git a/examples/widgets/calendarwidget/calendarwidget.desktop b/examples/widgets/widgets/calendarwidget/calendarwidget.desktop
index 645dc412e3b..645dc412e3b 100644
--- a/examples/widgets/calendarwidget/calendarwidget.desktop
+++ b/examples/widgets/widgets/calendarwidget/calendarwidget.desktop
diff --git a/examples/widgets/calendarwidget/calendarwidget.pro b/examples/widgets/widgets/calendarwidget/calendarwidget.pro
index 3c75fb6a33f..3c75fb6a33f 100644
--- a/examples/widgets/calendarwidget/calendarwidget.pro
+++ b/examples/widgets/widgets/calendarwidget/calendarwidget.pro
diff --git a/examples/widgets/calendarwidget/main.cpp b/examples/widgets/widgets/calendarwidget/main.cpp
index 8c4e2573d57..8c4e2573d57 100644
--- a/examples/widgets/calendarwidget/main.cpp
+++ b/examples/widgets/widgets/calendarwidget/main.cpp
diff --git a/examples/widgets/calendarwidget/window.cpp b/examples/widgets/widgets/calendarwidget/window.cpp
index 8ba044bf115..8ba044bf115 100644
--- a/examples/widgets/calendarwidget/window.cpp
+++ b/examples/widgets/widgets/calendarwidget/window.cpp
diff --git a/examples/widgets/calendarwidget/window.h b/examples/widgets/widgets/calendarwidget/window.h
index 68587400d37..68587400d37 100644
--- a/examples/widgets/calendarwidget/window.h
+++ b/examples/widgets/widgets/calendarwidget/window.h
diff --git a/examples/widgets/charactermap/charactermap.desktop b/examples/widgets/widgets/charactermap/charactermap.desktop
index 7f1919470af..7f1919470af 100644
--- a/examples/widgets/charactermap/charactermap.desktop
+++ b/examples/widgets/widgets/charactermap/charactermap.desktop
diff --git a/examples/widgets/charactermap/charactermap.pro b/examples/widgets/widgets/charactermap/charactermap.pro
index 0a9d6e7b5ca..0a9d6e7b5ca 100644
--- a/examples/widgets/charactermap/charactermap.pro
+++ b/examples/widgets/widgets/charactermap/charactermap.pro
diff --git a/examples/widgets/charactermap/characterwidget.cpp b/examples/widgets/widgets/charactermap/characterwidget.cpp
index 7ce5d61cf79..7ce5d61cf79 100644
--- a/examples/widgets/charactermap/characterwidget.cpp
+++ b/examples/widgets/widgets/charactermap/characterwidget.cpp
diff --git a/examples/widgets/charactermap/characterwidget.h b/examples/widgets/widgets/charactermap/characterwidget.h
index d523c130118..d523c130118 100644
--- a/examples/widgets/charactermap/characterwidget.h
+++ b/examples/widgets/widgets/charactermap/characterwidget.h
diff --git a/examples/widgets/charactermap/main.cpp b/examples/widgets/widgets/charactermap/main.cpp
index 09a923477cd..09a923477cd 100644
--- a/examples/widgets/charactermap/main.cpp
+++ b/examples/widgets/widgets/charactermap/main.cpp
diff --git a/examples/widgets/charactermap/mainwindow.cpp b/examples/widgets/widgets/charactermap/mainwindow.cpp
index fbe0df616cf..fbe0df616cf 100644
--- a/examples/widgets/charactermap/mainwindow.cpp
+++ b/examples/widgets/widgets/charactermap/mainwindow.cpp
diff --git a/examples/widgets/charactermap/mainwindow.h b/examples/widgets/widgets/charactermap/mainwindow.h
index 37109827abe..37109827abe 100644
--- a/examples/widgets/charactermap/mainwindow.h
+++ b/examples/widgets/widgets/charactermap/mainwindow.h
diff --git a/examples/widgets/codeeditor/codeeditor.cpp b/examples/widgets/widgets/codeeditor/codeeditor.cpp
index 2a2750c0357..2a2750c0357 100644
--- a/examples/widgets/codeeditor/codeeditor.cpp
+++ b/examples/widgets/widgets/codeeditor/codeeditor.cpp
diff --git a/examples/widgets/codeeditor/codeeditor.desktop b/examples/widgets/widgets/codeeditor/codeeditor.desktop
index 9347479e11e..9347479e11e 100644
--- a/examples/widgets/codeeditor/codeeditor.desktop
+++ b/examples/widgets/widgets/codeeditor/codeeditor.desktop
diff --git a/examples/widgets/codeeditor/codeeditor.h b/examples/widgets/widgets/codeeditor/codeeditor.h
index 71de46ed612..71de46ed612 100644
--- a/examples/widgets/codeeditor/codeeditor.h
+++ b/examples/widgets/widgets/codeeditor/codeeditor.h
diff --git a/examples/widgets/codeeditor/codeeditor.pro b/examples/widgets/widgets/codeeditor/codeeditor.pro
index ec38770cc61..ec38770cc61 100644
--- a/examples/widgets/codeeditor/codeeditor.pro
+++ b/examples/widgets/widgets/codeeditor/codeeditor.pro
diff --git a/examples/widgets/codeeditor/main.cpp b/examples/widgets/widgets/codeeditor/main.cpp
index 8c60c26f06b..8c60c26f06b 100644
--- a/examples/widgets/codeeditor/main.cpp
+++ b/examples/widgets/widgets/codeeditor/main.cpp
diff --git a/examples/widgets/digitalclock/digitalclock.cpp b/examples/widgets/widgets/digitalclock/digitalclock.cpp
index 4f11286114a..4f11286114a 100644
--- a/examples/widgets/digitalclock/digitalclock.cpp
+++ b/examples/widgets/widgets/digitalclock/digitalclock.cpp
diff --git a/examples/widgets/digitalclock/digitalclock.desktop b/examples/widgets/widgets/digitalclock/digitalclock.desktop
index b13876878c9..b13876878c9 100644
--- a/examples/widgets/digitalclock/digitalclock.desktop
+++ b/examples/widgets/widgets/digitalclock/digitalclock.desktop
diff --git a/examples/widgets/digitalclock/digitalclock.h b/examples/widgets/widgets/digitalclock/digitalclock.h
index 791633f12dc..791633f12dc 100644
--- a/examples/widgets/digitalclock/digitalclock.h
+++ b/examples/widgets/widgets/digitalclock/digitalclock.h
diff --git a/examples/widgets/digitalclock/digitalclock.pro b/examples/widgets/widgets/digitalclock/digitalclock.pro
index c0ad11e146b..c0ad11e146b 100644
--- a/examples/widgets/digitalclock/digitalclock.pro
+++ b/examples/widgets/widgets/digitalclock/digitalclock.pro
diff --git a/examples/widgets/digitalclock/main.cpp b/examples/widgets/widgets/digitalclock/main.cpp
index d28c7d36f2b..d28c7d36f2b 100644
--- a/examples/widgets/digitalclock/main.cpp
+++ b/examples/widgets/widgets/digitalclock/main.cpp
diff --git a/examples/widgets/elidedlabel/elidedlabel.cpp b/examples/widgets/widgets/elidedlabel/elidedlabel.cpp
index 5f58bbcca82..5f58bbcca82 100644
--- a/examples/widgets/elidedlabel/elidedlabel.cpp
+++ b/examples/widgets/widgets/elidedlabel/elidedlabel.cpp
diff --git a/examples/widgets/elidedlabel/elidedlabel.desktop b/examples/widgets/widgets/elidedlabel/elidedlabel.desktop
index 5da3a6c15a9..5da3a6c15a9 100644
--- a/examples/widgets/elidedlabel/elidedlabel.desktop
+++ b/examples/widgets/widgets/elidedlabel/elidedlabel.desktop
diff --git a/examples/widgets/elidedlabel/elidedlabel.h b/examples/widgets/widgets/elidedlabel/elidedlabel.h
index 2c19589bc22..2c19589bc22 100644
--- a/examples/widgets/elidedlabel/elidedlabel.h
+++ b/examples/widgets/widgets/elidedlabel/elidedlabel.h
diff --git a/examples/widgets/elidedlabel/elidedlabel.pro b/examples/widgets/widgets/elidedlabel/elidedlabel.pro
index f3fbc23d96c..f3fbc23d96c 100644
--- a/examples/widgets/elidedlabel/elidedlabel.pro
+++ b/examples/widgets/widgets/elidedlabel/elidedlabel.pro
diff --git a/examples/widgets/elidedlabel/main.cpp b/examples/widgets/widgets/elidedlabel/main.cpp
index a79284e7298..a79284e7298 100644
--- a/examples/widgets/elidedlabel/main.cpp
+++ b/examples/widgets/widgets/elidedlabel/main.cpp
diff --git a/examples/widgets/elidedlabel/testwidget.cpp b/examples/widgets/widgets/elidedlabel/testwidget.cpp
index a60ed655a57..a60ed655a57 100644
--- a/examples/widgets/elidedlabel/testwidget.cpp
+++ b/examples/widgets/widgets/elidedlabel/testwidget.cpp
diff --git a/examples/widgets/elidedlabel/testwidget.h b/examples/widgets/widgets/elidedlabel/testwidget.h
index aff90e6ae20..aff90e6ae20 100644
--- a/examples/widgets/elidedlabel/testwidget.h
+++ b/examples/widgets/widgets/elidedlabel/testwidget.h
diff --git a/examples/widgets/groupbox/groupbox.desktop b/examples/widgets/widgets/groupbox/groupbox.desktop
index 8239bbf5d06..8239bbf5d06 100644
--- a/examples/widgets/groupbox/groupbox.desktop
+++ b/examples/widgets/widgets/groupbox/groupbox.desktop
diff --git a/examples/widgets/groupbox/groupbox.pro b/examples/widgets/widgets/groupbox/groupbox.pro
index 07c0ed88182..07c0ed88182 100644
--- a/examples/widgets/groupbox/groupbox.pro
+++ b/examples/widgets/widgets/groupbox/groupbox.pro
diff --git a/examples/widgets/groupbox/main.cpp b/examples/widgets/widgets/groupbox/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/widgets/groupbox/main.cpp
+++ b/examples/widgets/widgets/groupbox/main.cpp
diff --git a/examples/widgets/groupbox/window.cpp b/examples/widgets/widgets/groupbox/window.cpp
index 7436e2dfb60..7436e2dfb60 100644
--- a/examples/widgets/groupbox/window.cpp
+++ b/examples/widgets/widgets/groupbox/window.cpp
diff --git a/examples/widgets/groupbox/window.h b/examples/widgets/widgets/groupbox/window.h
index a88374b429f..a88374b429f 100644
--- a/examples/widgets/groupbox/window.h
+++ b/examples/widgets/widgets/groupbox/window.h
diff --git a/examples/widgets/icons/iconpreviewarea.cpp b/examples/widgets/widgets/icons/iconpreviewarea.cpp
index 53391c7f4fa..53391c7f4fa 100644
--- a/examples/widgets/icons/iconpreviewarea.cpp
+++ b/examples/widgets/widgets/icons/iconpreviewarea.cpp
diff --git a/examples/widgets/icons/iconpreviewarea.h b/examples/widgets/widgets/icons/iconpreviewarea.h
index 4c6bc92dbc4..4c6bc92dbc4 100644
--- a/examples/widgets/icons/iconpreviewarea.h
+++ b/examples/widgets/widgets/icons/iconpreviewarea.h
diff --git a/examples/widgets/icons/icons.desktop b/examples/widgets/widgets/icons/icons.desktop
index df90cc5e6fa..df90cc5e6fa 100644
--- a/examples/widgets/icons/icons.desktop
+++ b/examples/widgets/widgets/icons/icons.desktop
diff --git a/examples/widgets/icons/icons.pro b/examples/widgets/widgets/icons/icons.pro
index 8b0831117cc..8b0831117cc 100644
--- a/examples/widgets/icons/icons.pro
+++ b/examples/widgets/widgets/icons/icons.pro
diff --git a/examples/widgets/icons/iconsizespinbox.cpp b/examples/widgets/widgets/icons/iconsizespinbox.cpp
index bc3609ccb3f..bc3609ccb3f 100644
--- a/examples/widgets/icons/iconsizespinbox.cpp
+++ b/examples/widgets/widgets/icons/iconsizespinbox.cpp
diff --git a/examples/widgets/icons/iconsizespinbox.h b/examples/widgets/widgets/icons/iconsizespinbox.h
index c163c0f5972..c163c0f5972 100644
--- a/examples/widgets/icons/iconsizespinbox.h
+++ b/examples/widgets/widgets/icons/iconsizespinbox.h
diff --git a/examples/widgets/icons/imagedelegate.cpp b/examples/widgets/widgets/icons/imagedelegate.cpp
index b801fc21716..b801fc21716 100644
--- a/examples/widgets/icons/imagedelegate.cpp
+++ b/examples/widgets/widgets/icons/imagedelegate.cpp
diff --git a/examples/widgets/icons/imagedelegate.h b/examples/widgets/widgets/icons/imagedelegate.h
index a07dc4b9ad4..a07dc4b9ad4 100644
--- a/examples/widgets/icons/imagedelegate.h
+++ b/examples/widgets/widgets/icons/imagedelegate.h
diff --git a/examples/widgets/icons/images/designer.png b/examples/widgets/widgets/icons/images/designer.png
index 0988fcee3f2..0988fcee3f2 100644
--- a/examples/widgets/icons/images/designer.png
+++ b/examples/widgets/widgets/icons/images/designer.png
Binary files differ
diff --git a/examples/widgets/icons/images/find_disabled.png b/examples/widgets/widgets/icons/images/find_disabled.png
index e85e33fe05a..e85e33fe05a 100644
--- a/examples/widgets/icons/images/find_disabled.png
+++ b/examples/widgets/widgets/icons/images/find_disabled.png
Binary files differ
diff --git a/examples/widgets/icons/images/find_normal.png b/examples/widgets/widgets/icons/images/find_normal.png
index 728c27f9051..728c27f9051 100644
--- a/examples/widgets/icons/images/find_normal.png
+++ b/examples/widgets/widgets/icons/images/find_normal.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_off_128x128.png b/examples/widgets/widgets/icons/images/monkey_off_128x128.png
index f8782672879..f8782672879 100644
--- a/examples/widgets/icons/images/monkey_off_128x128.png
+++ b/examples/widgets/widgets/icons/images/monkey_off_128x128.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_off_16x16.png b/examples/widgets/widgets/icons/images/monkey_off_16x16.png
index 0ac57d7d4f9..0ac57d7d4f9 100644
--- a/examples/widgets/icons/images/monkey_off_16x16.png
+++ b/examples/widgets/widgets/icons/images/monkey_off_16x16.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_off_32x32.png b/examples/widgets/widgets/icons/images/monkey_off_32x32.png
index 1f7fab694c1..1f7fab694c1 100644
--- a/examples/widgets/icons/images/monkey_off_32x32.png
+++ b/examples/widgets/widgets/icons/images/monkey_off_32x32.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_off_64x64.png b/examples/widgets/widgets/icons/images/monkey_off_64x64.png
index 47d8f6de354..47d8f6de354 100644
--- a/examples/widgets/icons/images/monkey_off_64x64.png
+++ b/examples/widgets/widgets/icons/images/monkey_off_64x64.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_on_128x128.png b/examples/widgets/widgets/icons/images/monkey_on_128x128.png
index 8e1c7468bf6..8e1c7468bf6 100644
--- a/examples/widgets/icons/images/monkey_on_128x128.png
+++ b/examples/widgets/widgets/icons/images/monkey_on_128x128.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_on_16x16.png b/examples/widgets/widgets/icons/images/monkey_on_16x16.png
index 082e8527f1b..082e8527f1b 100644
--- a/examples/widgets/icons/images/monkey_on_16x16.png
+++ b/examples/widgets/widgets/icons/images/monkey_on_16x16.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_on_32x32.png b/examples/widgets/widgets/icons/images/monkey_on_32x32.png
index bf9acc6caee..bf9acc6caee 100644
--- a/examples/widgets/icons/images/monkey_on_32x32.png
+++ b/examples/widgets/widgets/icons/images/monkey_on_32x32.png
Binary files differ
diff --git a/examples/widgets/icons/images/monkey_on_64x64.png b/examples/widgets/widgets/icons/images/monkey_on_64x64.png
index 990f604d98c..990f604d98c 100644
--- a/examples/widgets/icons/images/monkey_on_64x64.png
+++ b/examples/widgets/widgets/icons/images/monkey_on_64x64.png
Binary files differ
diff --git a/examples/widgets/icons/images/qt_extended_16x16.png b/examples/widgets/widgets/icons/images/qt_extended_16x16.png
index 95d3bae8389..95d3bae8389 100644
--- a/examples/widgets/icons/images/qt_extended_16x16.png
+++ b/examples/widgets/widgets/icons/images/qt_extended_16x16.png
Binary files differ
diff --git a/examples/widgets/icons/images/qt_extended_32x32.png b/examples/widgets/widgets/icons/images/qt_extended_32x32.png
index 7b7a790c122..7b7a790c122 100644
--- a/examples/widgets/icons/images/qt_extended_32x32.png
+++ b/examples/widgets/widgets/icons/images/qt_extended_32x32.png
Binary files differ
diff --git a/examples/widgets/icons/images/qt_extended_48x48.png b/examples/widgets/widgets/icons/images/qt_extended_48x48.png
index 8434dc26dbd..8434dc26dbd 100644
--- a/examples/widgets/icons/images/qt_extended_48x48.png
+++ b/examples/widgets/widgets/icons/images/qt_extended_48x48.png
Binary files differ
diff --git a/examples/widgets/icons/main.cpp b/examples/widgets/widgets/icons/main.cpp
index e96d256e9b6..e96d256e9b6 100644
--- a/examples/widgets/icons/main.cpp
+++ b/examples/widgets/widgets/icons/main.cpp
diff --git a/examples/widgets/icons/mainwindow.cpp b/examples/widgets/widgets/icons/mainwindow.cpp
index 00f5a21854f..00f5a21854f 100644
--- a/examples/widgets/icons/mainwindow.cpp
+++ b/examples/widgets/widgets/icons/mainwindow.cpp
diff --git a/examples/widgets/icons/mainwindow.h b/examples/widgets/widgets/icons/mainwindow.h
index 8afaf9496eb..8afaf9496eb 100644
--- a/examples/widgets/icons/mainwindow.h
+++ b/examples/widgets/widgets/icons/mainwindow.h
diff --git a/examples/widgets/imageviewer/imageviewer.cpp b/examples/widgets/widgets/imageviewer/imageviewer.cpp
index 97ab1d77f8f..97ab1d77f8f 100644
--- a/examples/widgets/imageviewer/imageviewer.cpp
+++ b/examples/widgets/widgets/imageviewer/imageviewer.cpp
diff --git a/examples/widgets/imageviewer/imageviewer.desktop b/examples/widgets/widgets/imageviewer/imageviewer.desktop
index 63f2408c384..63f2408c384 100644
--- a/examples/widgets/imageviewer/imageviewer.desktop
+++ b/examples/widgets/widgets/imageviewer/imageviewer.desktop
diff --git a/examples/widgets/imageviewer/imageviewer.h b/examples/widgets/widgets/imageviewer/imageviewer.h
index 98300794a21..98300794a21 100644
--- a/examples/widgets/imageviewer/imageviewer.h
+++ b/examples/widgets/widgets/imageviewer/imageviewer.h
diff --git a/examples/widgets/imageviewer/imageviewer.pro b/examples/widgets/widgets/imageviewer/imageviewer.pro
index 15751ff3d91..15751ff3d91 100644
--- a/examples/widgets/imageviewer/imageviewer.pro
+++ b/examples/widgets/widgets/imageviewer/imageviewer.pro
diff --git a/examples/widgets/imageviewer/main.cpp b/examples/widgets/widgets/imageviewer/main.cpp
index 4d735d4c462..4d735d4c462 100644
--- a/examples/widgets/imageviewer/main.cpp
+++ b/examples/widgets/widgets/imageviewer/main.cpp
diff --git a/examples/widgets/lineedits/lineedits.desktop b/examples/widgets/widgets/lineedits/lineedits.desktop
index 7d8dea3ec0f..7d8dea3ec0f 100644
--- a/examples/widgets/lineedits/lineedits.desktop
+++ b/examples/widgets/widgets/lineedits/lineedits.desktop
diff --git a/examples/widgets/lineedits/lineedits.pro b/examples/widgets/widgets/lineedits/lineedits.pro
index 01d4b2f1b76..01d4b2f1b76 100644
--- a/examples/widgets/lineedits/lineedits.pro
+++ b/examples/widgets/widgets/lineedits/lineedits.pro
diff --git a/examples/widgets/lineedits/main.cpp b/examples/widgets/widgets/lineedits/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/widgets/lineedits/main.cpp
+++ b/examples/widgets/widgets/lineedits/main.cpp
diff --git a/examples/widgets/lineedits/window.cpp b/examples/widgets/widgets/lineedits/window.cpp
index 7628132e5b9..7628132e5b9 100644
--- a/examples/widgets/lineedits/window.cpp
+++ b/examples/widgets/widgets/lineedits/window.cpp
diff --git a/examples/widgets/lineedits/window.h b/examples/widgets/widgets/lineedits/window.h
index 82e5f9e965d..82e5f9e965d 100644
--- a/examples/widgets/lineedits/window.h
+++ b/examples/widgets/widgets/lineedits/window.h
diff --git a/examples/widgets/mousebuttons/buttontester.cpp b/examples/widgets/widgets/mousebuttons/buttontester.cpp
index 32f73ebb72d..32f73ebb72d 100644
--- a/examples/widgets/mousebuttons/buttontester.cpp
+++ b/examples/widgets/widgets/mousebuttons/buttontester.cpp
diff --git a/examples/widgets/mousebuttons/buttontester.h b/examples/widgets/widgets/mousebuttons/buttontester.h
index 0801a9ae5c4..0801a9ae5c4 100644
--- a/examples/widgets/mousebuttons/buttontester.h
+++ b/examples/widgets/widgets/mousebuttons/buttontester.h
diff --git a/examples/widgets/mousebuttons/main.cpp b/examples/widgets/widgets/mousebuttons/main.cpp
index 7c9674a9d9f..7c9674a9d9f 100644
--- a/examples/widgets/mousebuttons/main.cpp
+++ b/examples/widgets/widgets/mousebuttons/main.cpp
diff --git a/examples/widgets/mousebuttons/mousebuttons.pro b/examples/widgets/widgets/mousebuttons/mousebuttons.pro
index ed181d082c0..ed181d082c0 100644
--- a/examples/widgets/mousebuttons/mousebuttons.pro
+++ b/examples/widgets/widgets/mousebuttons/mousebuttons.pro
diff --git a/examples/widgets/movie/animation.gif b/examples/widgets/widgets/movie/animation.gif
index f674369efc4..f674369efc4 100644
--- a/examples/widgets/movie/animation.gif
+++ b/examples/widgets/widgets/movie/animation.gif
Binary files differ
diff --git a/examples/widgets/movie/main.cpp b/examples/widgets/widgets/movie/main.cpp
index f0d36bc04e5..f0d36bc04e5 100644
--- a/examples/widgets/movie/main.cpp
+++ b/examples/widgets/widgets/movie/main.cpp
diff --git a/examples/widgets/movie/movie.desktop b/examples/widgets/widgets/movie/movie.desktop
index 5c7ae21896d..5c7ae21896d 100644
--- a/examples/widgets/movie/movie.desktop
+++ b/examples/widgets/widgets/movie/movie.desktop
diff --git a/examples/widgets/movie/movie.pro b/examples/widgets/widgets/movie/movie.pro
index dd6e40b83cb..dd6e40b83cb 100644
--- a/examples/widgets/movie/movie.pro
+++ b/examples/widgets/widgets/movie/movie.pro
diff --git a/examples/widgets/movie/movieplayer.cpp b/examples/widgets/widgets/movie/movieplayer.cpp
index 885fbdd0c62..885fbdd0c62 100644
--- a/examples/widgets/movie/movieplayer.cpp
+++ b/examples/widgets/widgets/movie/movieplayer.cpp
diff --git a/examples/widgets/movie/movieplayer.h b/examples/widgets/widgets/movie/movieplayer.h
index f21fef5a926..f21fef5a926 100644
--- a/examples/widgets/movie/movieplayer.h
+++ b/examples/widgets/widgets/movie/movieplayer.h
diff --git a/examples/widgets/orientation/image_a.png b/examples/widgets/widgets/orientation/image_a.png
index 4a1a0d32527..4a1a0d32527 100644
--- a/examples/widgets/orientation/image_a.png
+++ b/examples/widgets/widgets/orientation/image_a.png
Binary files differ
diff --git a/examples/widgets/orientation/image_b.png b/examples/widgets/widgets/orientation/image_b.png
index 8722d1edee3..8722d1edee3 100644
--- a/examples/widgets/orientation/image_b.png
+++ b/examples/widgets/widgets/orientation/image_b.png
Binary files differ
diff --git a/examples/widgets/orientation/image_c.png b/examples/widgets/widgets/orientation/image_c.png
index 6c9304fda05..6c9304fda05 100644
--- a/examples/widgets/orientation/image_c.png
+++ b/examples/widgets/widgets/orientation/image_c.png
Binary files differ
diff --git a/examples/widgets/orientation/images.qrc b/examples/widgets/widgets/orientation/images.qrc
index b258291e6fc..b258291e6fc 100644
--- a/examples/widgets/orientation/images.qrc
+++ b/examples/widgets/widgets/orientation/images.qrc
diff --git a/examples/widgets/orientation/landscape.ui b/examples/widgets/widgets/orientation/landscape.ui
index 4616c041dc2..4616c041dc2 100644
--- a/examples/widgets/orientation/landscape.ui
+++ b/examples/widgets/widgets/orientation/landscape.ui
diff --git a/examples/widgets/orientation/main.cpp b/examples/widgets/widgets/orientation/main.cpp
index d92ae0c16f3..d92ae0c16f3 100644
--- a/examples/widgets/orientation/main.cpp
+++ b/examples/widgets/widgets/orientation/main.cpp
diff --git a/examples/widgets/orientation/mainwindow.cpp b/examples/widgets/widgets/orientation/mainwindow.cpp
index 3acbef12f81..3acbef12f81 100644
--- a/examples/widgets/orientation/mainwindow.cpp
+++ b/examples/widgets/widgets/orientation/mainwindow.cpp
diff --git a/examples/widgets/orientation/mainwindow.h b/examples/widgets/widgets/orientation/mainwindow.h
index d0f1b072422..d0f1b072422 100644
--- a/examples/widgets/orientation/mainwindow.h
+++ b/examples/widgets/widgets/orientation/mainwindow.h
diff --git a/examples/widgets/orientation/orientation.desktop b/examples/widgets/widgets/orientation/orientation.desktop
index 7bbf5584d37..7bbf5584d37 100644
--- a/examples/widgets/orientation/orientation.desktop
+++ b/examples/widgets/widgets/orientation/orientation.desktop
diff --git a/examples/widgets/orientation/orientation.pro b/examples/widgets/widgets/orientation/orientation.pro
index 36a3e91a9c5..36a3e91a9c5 100644
--- a/examples/widgets/orientation/orientation.pro
+++ b/examples/widgets/widgets/orientation/orientation.pro
diff --git a/examples/widgets/orientation/portrait.ui b/examples/widgets/widgets/orientation/portrait.ui
index 31a55aff736..31a55aff736 100644
--- a/examples/widgets/orientation/portrait.ui
+++ b/examples/widgets/widgets/orientation/portrait.ui
diff --git a/examples/widgets/scribble/main.cpp b/examples/widgets/widgets/scribble/main.cpp
index 09a923477cd..09a923477cd 100644
--- a/examples/widgets/scribble/main.cpp
+++ b/examples/widgets/widgets/scribble/main.cpp
diff --git a/examples/widgets/scribble/mainwindow.cpp b/examples/widgets/widgets/scribble/mainwindow.cpp
index 6db7b39b4c4..6db7b39b4c4 100644
--- a/examples/widgets/scribble/mainwindow.cpp
+++ b/examples/widgets/widgets/scribble/mainwindow.cpp
diff --git a/examples/widgets/scribble/mainwindow.h b/examples/widgets/widgets/scribble/mainwindow.h
index 54144340f30..54144340f30 100644
--- a/examples/widgets/scribble/mainwindow.h
+++ b/examples/widgets/widgets/scribble/mainwindow.h
diff --git a/examples/widgets/scribble/scribble.desktop b/examples/widgets/widgets/scribble/scribble.desktop
index 9c1ee0c482f..9c1ee0c482f 100644
--- a/examples/widgets/scribble/scribble.desktop
+++ b/examples/widgets/widgets/scribble/scribble.desktop
diff --git a/examples/widgets/scribble/scribble.pro b/examples/widgets/widgets/scribble/scribble.pro
index 9c6e3cb1003..9c6e3cb1003 100644
--- a/examples/widgets/scribble/scribble.pro
+++ b/examples/widgets/widgets/scribble/scribble.pro
diff --git a/examples/widgets/scribble/scribblearea.cpp b/examples/widgets/widgets/scribble/scribblearea.cpp
index ab527e1d63d..ab527e1d63d 100644
--- a/examples/widgets/scribble/scribblearea.cpp
+++ b/examples/widgets/widgets/scribble/scribblearea.cpp
diff --git a/examples/widgets/scribble/scribblearea.h b/examples/widgets/widgets/scribble/scribblearea.h
index c95cca7b8d9..c95cca7b8d9 100644
--- a/examples/widgets/scribble/scribblearea.h
+++ b/examples/widgets/widgets/scribble/scribblearea.h
diff --git a/examples/widgets/shapedclock/main.cpp b/examples/widgets/widgets/shapedclock/main.cpp
index 45ae5d14b72..45ae5d14b72 100644
--- a/examples/widgets/shapedclock/main.cpp
+++ b/examples/widgets/widgets/shapedclock/main.cpp
diff --git a/examples/widgets/shapedclock/shapedclock.cpp b/examples/widgets/widgets/shapedclock/shapedclock.cpp
index 20b98d134d7..20b98d134d7 100644
--- a/examples/widgets/shapedclock/shapedclock.cpp
+++ b/examples/widgets/widgets/shapedclock/shapedclock.cpp
diff --git a/examples/widgets/shapedclock/shapedclock.desktop b/examples/widgets/widgets/shapedclock/shapedclock.desktop
index bae58e30d5c..bae58e30d5c 100644
--- a/examples/widgets/shapedclock/shapedclock.desktop
+++ b/examples/widgets/widgets/shapedclock/shapedclock.desktop
diff --git a/examples/widgets/shapedclock/shapedclock.h b/examples/widgets/widgets/shapedclock/shapedclock.h
index b37ef69a8df..b37ef69a8df 100644
--- a/examples/widgets/shapedclock/shapedclock.h
+++ b/examples/widgets/widgets/shapedclock/shapedclock.h
diff --git a/examples/widgets/shapedclock/shapedclock.pro b/examples/widgets/widgets/shapedclock/shapedclock.pro
index 5bc1cb87068..5bc1cb87068 100644
--- a/examples/widgets/shapedclock/shapedclock.pro
+++ b/examples/widgets/widgets/shapedclock/shapedclock.pro
diff --git a/examples/widgets/sliders/main.cpp b/examples/widgets/widgets/sliders/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/widgets/sliders/main.cpp
+++ b/examples/widgets/widgets/sliders/main.cpp
diff --git a/examples/widgets/sliders/sliders.desktop b/examples/widgets/widgets/sliders/sliders.desktop
index bc8904317b5..bc8904317b5 100644
--- a/examples/widgets/sliders/sliders.desktop
+++ b/examples/widgets/widgets/sliders/sliders.desktop
diff --git a/examples/widgets/sliders/sliders.pro b/examples/widgets/widgets/sliders/sliders.pro
index b0438072ec8..b0438072ec8 100644
--- a/examples/widgets/sliders/sliders.pro
+++ b/examples/widgets/widgets/sliders/sliders.pro
diff --git a/examples/widgets/sliders/slidersgroup.cpp b/examples/widgets/widgets/sliders/slidersgroup.cpp
index 6091db99edf..6091db99edf 100644
--- a/examples/widgets/sliders/slidersgroup.cpp
+++ b/examples/widgets/widgets/sliders/slidersgroup.cpp
diff --git a/examples/widgets/sliders/slidersgroup.h b/examples/widgets/widgets/sliders/slidersgroup.h
index ea1939cbc78..ea1939cbc78 100644
--- a/examples/widgets/sliders/slidersgroup.h
+++ b/examples/widgets/widgets/sliders/slidersgroup.h
diff --git a/examples/widgets/sliders/window.cpp b/examples/widgets/widgets/sliders/window.cpp
index ad4c4cb4d4d..ad4c4cb4d4d 100644
--- a/examples/widgets/sliders/window.cpp
+++ b/examples/widgets/widgets/sliders/window.cpp
diff --git a/examples/widgets/sliders/window.h b/examples/widgets/widgets/sliders/window.h
index 382f953e8d8..382f953e8d8 100644
--- a/examples/widgets/sliders/window.h
+++ b/examples/widgets/widgets/sliders/window.h
diff --git a/examples/widgets/softkeys/main.cpp b/examples/widgets/widgets/softkeys/main.cpp
index 8d307835560..8d307835560 100644
--- a/examples/widgets/softkeys/main.cpp
+++ b/examples/widgets/widgets/softkeys/main.cpp
diff --git a/examples/widgets/softkeys/softkeys.cpp b/examples/widgets/widgets/softkeys/softkeys.cpp
index 2b16ebf3b70..2b16ebf3b70 100644
--- a/examples/widgets/softkeys/softkeys.cpp
+++ b/examples/widgets/widgets/softkeys/softkeys.cpp
diff --git a/examples/widgets/softkeys/softkeys.desktop b/examples/widgets/widgets/softkeys/softkeys.desktop
index 7f4993a5888..7f4993a5888 100644
--- a/examples/widgets/softkeys/softkeys.desktop
+++ b/examples/widgets/widgets/softkeys/softkeys.desktop
diff --git a/examples/widgets/softkeys/softkeys.h b/examples/widgets/widgets/softkeys/softkeys.h
index 36991d35ed7..36991d35ed7 100644
--- a/examples/widgets/softkeys/softkeys.h
+++ b/examples/widgets/widgets/softkeys/softkeys.h
diff --git a/examples/widgets/softkeys/softkeys.pro b/examples/widgets/widgets/softkeys/softkeys.pro
index 5473069bb18..5473069bb18 100644
--- a/examples/widgets/softkeys/softkeys.pro
+++ b/examples/widgets/widgets/softkeys/softkeys.pro
diff --git a/examples/widgets/spinboxes/main.cpp b/examples/widgets/widgets/spinboxes/main.cpp
index dcbf1c0449d..dcbf1c0449d 100644
--- a/examples/widgets/spinboxes/main.cpp
+++ b/examples/widgets/widgets/spinboxes/main.cpp
diff --git a/examples/widgets/spinboxes/spinboxes.desktop b/examples/widgets/widgets/spinboxes/spinboxes.desktop
index 7de30383f25..7de30383f25 100644
--- a/examples/widgets/spinboxes/spinboxes.desktop
+++ b/examples/widgets/widgets/spinboxes/spinboxes.desktop
diff --git a/examples/widgets/spinboxes/spinboxes.pro b/examples/widgets/widgets/spinboxes/spinboxes.pro
index e19e33178db..e19e33178db 100644
--- a/examples/widgets/spinboxes/spinboxes.pro
+++ b/examples/widgets/widgets/spinboxes/spinboxes.pro
diff --git a/examples/widgets/spinboxes/window.cpp b/examples/widgets/widgets/spinboxes/window.cpp
index 1e01386d31a..1e01386d31a 100644
--- a/examples/widgets/spinboxes/window.cpp
+++ b/examples/widgets/widgets/spinboxes/window.cpp
diff --git a/examples/widgets/spinboxes/window.h b/examples/widgets/widgets/spinboxes/window.h
index 17f18e710de..17f18e710de 100644
--- a/examples/widgets/spinboxes/window.h
+++ b/examples/widgets/widgets/spinboxes/window.h
diff --git a/examples/widgets/styles/images/woodbackground.png b/examples/widgets/widgets/styles/images/woodbackground.png
index 8be3366bb48..8be3366bb48 100644
--- a/examples/widgets/styles/images/woodbackground.png
+++ b/examples/widgets/widgets/styles/images/woodbackground.png
Binary files differ
diff --git a/examples/widgets/styles/images/woodbutton.png b/examples/widgets/widgets/styles/images/woodbutton.png
index adb59ef6337..adb59ef6337 100644
--- a/examples/widgets/styles/images/woodbutton.png
+++ b/examples/widgets/widgets/styles/images/woodbutton.png
Binary files differ
diff --git a/examples/widgets/styles/main.cpp b/examples/widgets/widgets/styles/main.cpp
index 65d8459542f..65d8459542f 100644
--- a/examples/widgets/styles/main.cpp
+++ b/examples/widgets/widgets/styles/main.cpp
diff --git a/examples/widgets/styles/norwegianwoodstyle.cpp b/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
index d609c54eb32..d609c54eb32 100644
--- a/examples/widgets/styles/norwegianwoodstyle.cpp
+++ b/examples/widgets/widgets/styles/norwegianwoodstyle.cpp
diff --git a/examples/widgets/styles/norwegianwoodstyle.h b/examples/widgets/widgets/styles/norwegianwoodstyle.h
index 99a206e7531..99a206e7531 100644
--- a/examples/widgets/styles/norwegianwoodstyle.h
+++ b/examples/widgets/widgets/styles/norwegianwoodstyle.h
diff --git a/examples/widgets/styles/styles.desktop b/examples/widgets/widgets/styles/styles.desktop
index fb9ef429946..fb9ef429946 100644
--- a/examples/widgets/styles/styles.desktop
+++ b/examples/widgets/widgets/styles/styles.desktop
diff --git a/examples/widgets/styles/styles.pro b/examples/widgets/widgets/styles/styles.pro
index fef1dc6084f..fef1dc6084f 100644
--- a/examples/widgets/styles/styles.pro
+++ b/examples/widgets/widgets/styles/styles.pro
diff --git a/examples/widgets/styles/styles.qrc b/examples/widgets/widgets/styles/styles.qrc
index 4fdad8d914a..4fdad8d914a 100644
--- a/examples/widgets/styles/styles.qrc
+++ b/examples/widgets/widgets/styles/styles.qrc
diff --git a/examples/widgets/styles/widgetgallery.cpp b/examples/widgets/widgets/styles/widgetgallery.cpp
index d00f689183c..d00f689183c 100644
--- a/examples/widgets/styles/widgetgallery.cpp
+++ b/examples/widgets/widgets/styles/widgetgallery.cpp
diff --git a/examples/widgets/styles/widgetgallery.h b/examples/widgets/widgets/styles/widgetgallery.h
index 93b5cce9847..93b5cce9847 100644
--- a/examples/widgets/styles/widgetgallery.h
+++ b/examples/widgets/widgets/styles/widgetgallery.h
diff --git a/examples/widgets/stylesheet/images/checkbox_checked.png b/examples/widgets/widgets/stylesheet/images/checkbox_checked.png
index cbf06f6513d..cbf06f6513d 100644
--- a/examples/widgets/stylesheet/images/checkbox_checked.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_checked.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/checkbox_checked_hover.png b/examples/widgets/widgets/stylesheet/images/checkbox_checked_hover.png
index fb4d4d3fdb8..fb4d4d3fdb8 100644
--- a/examples/widgets/stylesheet/images/checkbox_checked_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_checked_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/checkbox_checked_pressed.png b/examples/widgets/widgets/stylesheet/images/checkbox_checked_pressed.png
index 852fcc0306c..852fcc0306c 100644
--- a/examples/widgets/stylesheet/images/checkbox_checked_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_checked_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/checkbox_unchecked.png b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked.png
index 5f5465582a9..5f5465582a9 100644
--- a/examples/widgets/stylesheet/images/checkbox_unchecked.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/checkbox_unchecked_hover.png b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked_hover.png
index 687364497ef..687364497ef 100644
--- a/examples/widgets/stylesheet/images/checkbox_unchecked_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/checkbox_unchecked_pressed.png b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked_pressed.png
index 6a768c44de6..6a768c44de6 100644
--- a/examples/widgets/stylesheet/images/checkbox_unchecked_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/checkbox_unchecked_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/down_arrow.png b/examples/widgets/widgets/stylesheet/images/down_arrow.png
index 85004aeaf6b..85004aeaf6b 100644
--- a/examples/widgets/stylesheet/images/down_arrow.png
+++ b/examples/widgets/widgets/stylesheet/images/down_arrow.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/down_arrow_disabled.png b/examples/widgets/widgets/stylesheet/images/down_arrow_disabled.png
index d9eefed4c8c..d9eefed4c8c 100644
--- a/examples/widgets/stylesheet/images/down_arrow_disabled.png
+++ b/examples/widgets/widgets/stylesheet/images/down_arrow_disabled.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/frame.png b/examples/widgets/widgets/stylesheet/images/frame.png
index 05a600502ed..05a600502ed 100644
--- a/examples/widgets/stylesheet/images/frame.png
+++ b/examples/widgets/widgets/stylesheet/images/frame.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/pagefold.png b/examples/widgets/widgets/stylesheet/images/pagefold.png
index 69be8f2a38d..69be8f2a38d 100644
--- a/examples/widgets/stylesheet/images/pagefold.png
+++ b/examples/widgets/widgets/stylesheet/images/pagefold.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/pushbutton.png b/examples/widgets/widgets/stylesheet/images/pushbutton.png
index c7529ba02d5..c7529ba02d5 100644
--- a/examples/widgets/stylesheet/images/pushbutton.png
+++ b/examples/widgets/widgets/stylesheet/images/pushbutton.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/pushbutton_hover.png b/examples/widgets/widgets/stylesheet/images/pushbutton_hover.png
index af0ef9d5612..af0ef9d5612 100644
--- a/examples/widgets/stylesheet/images/pushbutton_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/pushbutton_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/pushbutton_pressed.png b/examples/widgets/widgets/stylesheet/images/pushbutton_pressed.png
index f7381f752a0..f7381f752a0 100644
--- a/examples/widgets/stylesheet/images/pushbutton_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/pushbutton_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_checked.png b/examples/widgets/widgets/stylesheet/images/radiobutton_checked.png
index 8ab91575780..8ab91575780 100644
--- a/examples/widgets/stylesheet/images/radiobutton_checked.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_checked.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_checked_hover.png b/examples/widgets/widgets/stylesheet/images/radiobutton_checked_hover.png
index d68cb009a7c..d68cb009a7c 100644
--- a/examples/widgets/stylesheet/images/radiobutton_checked_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_checked_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_checked_pressed.png b/examples/widgets/widgets/stylesheet/images/radiobutton_checked_pressed.png
index e3cd5a59e4b..e3cd5a59e4b 100644
--- a/examples/widgets/stylesheet/images/radiobutton_checked_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_checked_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_unchecked.png b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked.png
index 321a9a1558a..321a9a1558a 100644
--- a/examples/widgets/stylesheet/images/radiobutton_unchecked.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_unchecked_hover.png b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_hover.png
index 666a3b0bdd4..666a3b0bdd4 100644
--- a/examples/widgets/stylesheet/images/radiobutton_unchecked_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/radiobutton_unchecked_pressed.png b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_pressed.png
index c4b0567aa9c..c4b0567aa9c 100644
--- a/examples/widgets/stylesheet/images/radiobutton_unchecked_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/radiobutton_unchecked_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/sizegrip.png b/examples/widgets/widgets/stylesheet/images/sizegrip.png
index 350583aaac4..350583aaac4 100644
--- a/examples/widgets/stylesheet/images/sizegrip.png
+++ b/examples/widgets/widgets/stylesheet/images/sizegrip.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spindown.png b/examples/widgets/widgets/stylesheet/images/spindown.png
index 7ff3c649265..7ff3c649265 100644
--- a/examples/widgets/stylesheet/images/spindown.png
+++ b/examples/widgets/widgets/stylesheet/images/spindown.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spindown_hover.png b/examples/widgets/widgets/stylesheet/images/spindown_hover.png
index 1486c4dfe46..1486c4dfe46 100644
--- a/examples/widgets/stylesheet/images/spindown_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/spindown_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spindown_off.png b/examples/widgets/widgets/stylesheet/images/spindown_off.png
index a90ab3f0384..a90ab3f0384 100644
--- a/examples/widgets/stylesheet/images/spindown_off.png
+++ b/examples/widgets/widgets/stylesheet/images/spindown_off.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spindown_pressed.png b/examples/widgets/widgets/stylesheet/images/spindown_pressed.png
index f6271cbde21..f6271cbde21 100644
--- a/examples/widgets/stylesheet/images/spindown_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/spindown_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spinup.png b/examples/widgets/widgets/stylesheet/images/spinup.png
index 1069dd00dfc..1069dd00dfc 100644
--- a/examples/widgets/stylesheet/images/spinup.png
+++ b/examples/widgets/widgets/stylesheet/images/spinup.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spinup_hover.png b/examples/widgets/widgets/stylesheet/images/spinup_hover.png
index 884c8d77c51..884c8d77c51 100644
--- a/examples/widgets/stylesheet/images/spinup_hover.png
+++ b/examples/widgets/widgets/stylesheet/images/spinup_hover.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spinup_off.png b/examples/widgets/widgets/stylesheet/images/spinup_off.png
index 02dad1fb292..02dad1fb292 100644
--- a/examples/widgets/stylesheet/images/spinup_off.png
+++ b/examples/widgets/widgets/stylesheet/images/spinup_off.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/spinup_pressed.png b/examples/widgets/widgets/stylesheet/images/spinup_pressed.png
index b1843e2a1fa..b1843e2a1fa 100644
--- a/examples/widgets/stylesheet/images/spinup_pressed.png
+++ b/examples/widgets/widgets/stylesheet/images/spinup_pressed.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/up_arrow.png b/examples/widgets/widgets/stylesheet/images/up_arrow.png
index e7f7ddb3a63..e7f7ddb3a63 100644
--- a/examples/widgets/stylesheet/images/up_arrow.png
+++ b/examples/widgets/widgets/stylesheet/images/up_arrow.png
Binary files differ
diff --git a/examples/widgets/stylesheet/images/up_arrow_disabled.png b/examples/widgets/widgets/stylesheet/images/up_arrow_disabled.png
index 4d2c27770fe..4d2c27770fe 100644
--- a/examples/widgets/stylesheet/images/up_arrow_disabled.png
+++ b/examples/widgets/widgets/stylesheet/images/up_arrow_disabled.png
Binary files differ
diff --git a/examples/widgets/stylesheet/layouts/default.ui b/examples/widgets/widgets/stylesheet/layouts/default.ui
index 431a40956e4..431a40956e4 100644
--- a/examples/widgets/stylesheet/layouts/default.ui
+++ b/examples/widgets/widgets/stylesheet/layouts/default.ui
diff --git a/examples/widgets/stylesheet/layouts/pagefold.ui b/examples/widgets/widgets/stylesheet/layouts/pagefold.ui
index 7ae313c3318..7ae313c3318 100644
--- a/examples/widgets/stylesheet/layouts/pagefold.ui
+++ b/examples/widgets/widgets/stylesheet/layouts/pagefold.ui
diff --git a/examples/widgets/stylesheet/main.cpp b/examples/widgets/widgets/stylesheet/main.cpp
index 0ddd63c2987..0ddd63c2987 100644
--- a/examples/widgets/stylesheet/main.cpp
+++ b/examples/widgets/widgets/stylesheet/main.cpp
diff --git a/examples/widgets/stylesheet/mainwindow.cpp b/examples/widgets/widgets/stylesheet/mainwindow.cpp
index 0732d78347c..0732d78347c 100644
--- a/examples/widgets/stylesheet/mainwindow.cpp
+++ b/examples/widgets/widgets/stylesheet/mainwindow.cpp
diff --git a/examples/widgets/stylesheet/mainwindow.h b/examples/widgets/widgets/stylesheet/mainwindow.h
index 2ccaf9ba02e..2ccaf9ba02e 100644
--- a/examples/widgets/stylesheet/mainwindow.h
+++ b/examples/widgets/widgets/stylesheet/mainwindow.h
diff --git a/examples/widgets/stylesheet/mainwindow.ui b/examples/widgets/widgets/stylesheet/mainwindow.ui
index cc29257afb9..cc29257afb9 100644
--- a/examples/widgets/stylesheet/mainwindow.ui
+++ b/examples/widgets/widgets/stylesheet/mainwindow.ui
diff --git a/examples/widgets/stylesheet/qss/coffee.qss b/examples/widgets/widgets/stylesheet/qss/coffee.qss
index 4571d42d7e2..4571d42d7e2 100644
--- a/examples/widgets/stylesheet/qss/coffee.qss
+++ b/examples/widgets/widgets/stylesheet/qss/coffee.qss
diff --git a/examples/widgets/stylesheet/qss/default.qss b/examples/widgets/widgets/stylesheet/qss/default.qss
index 84eb5e0bc25..84eb5e0bc25 100644
--- a/examples/widgets/stylesheet/qss/default.qss
+++ b/examples/widgets/widgets/stylesheet/qss/default.qss
diff --git a/examples/widgets/stylesheet/qss/pagefold.qss b/examples/widgets/widgets/stylesheet/qss/pagefold.qss
index 3701fc713cb..3701fc713cb 100644
--- a/examples/widgets/stylesheet/qss/pagefold.qss
+++ b/examples/widgets/widgets/stylesheet/qss/pagefold.qss
diff --git a/examples/widgets/stylesheet/stylesheet.desktop b/examples/widgets/widgets/stylesheet/stylesheet.desktop
index 0550b19ba29..0550b19ba29 100644
--- a/examples/widgets/stylesheet/stylesheet.desktop
+++ b/examples/widgets/widgets/stylesheet/stylesheet.desktop
diff --git a/examples/widgets/stylesheet/stylesheet.pro b/examples/widgets/widgets/stylesheet/stylesheet.pro
index 4d609a92104..4d609a92104 100644
--- a/examples/widgets/stylesheet/stylesheet.pro
+++ b/examples/widgets/widgets/stylesheet/stylesheet.pro
diff --git a/examples/widgets/stylesheet/stylesheet.qrc b/examples/widgets/widgets/stylesheet/stylesheet.qrc
index e1e61a920a2..e1e61a920a2 100644
--- a/examples/widgets/stylesheet/stylesheet.qrc
+++ b/examples/widgets/widgets/stylesheet/stylesheet.qrc
diff --git a/examples/widgets/stylesheet/stylesheeteditor.cpp b/examples/widgets/widgets/stylesheet/stylesheeteditor.cpp
index 5514291a7f5..5514291a7f5 100644
--- a/examples/widgets/stylesheet/stylesheeteditor.cpp
+++ b/examples/widgets/widgets/stylesheet/stylesheeteditor.cpp
diff --git a/examples/widgets/stylesheet/stylesheeteditor.h b/examples/widgets/widgets/stylesheet/stylesheeteditor.h
index 36b18d91fb9..36b18d91fb9 100644
--- a/examples/widgets/stylesheet/stylesheeteditor.h
+++ b/examples/widgets/widgets/stylesheet/stylesheeteditor.h
diff --git a/examples/widgets/stylesheet/stylesheeteditor.ui b/examples/widgets/widgets/stylesheet/stylesheeteditor.ui
index 34cd7f6d041..34cd7f6d041 100644
--- a/examples/widgets/stylesheet/stylesheeteditor.ui
+++ b/examples/widgets/widgets/stylesheet/stylesheeteditor.ui
diff --git a/examples/widgets/tablet/main.cpp b/examples/widgets/widgets/tablet/main.cpp
index bca3076cfc5..bca3076cfc5 100644
--- a/examples/widgets/tablet/main.cpp
+++ b/examples/widgets/widgets/tablet/main.cpp
diff --git a/examples/widgets/tablet/mainwindow.cpp b/examples/widgets/widgets/tablet/mainwindow.cpp
index 3b873465836..3b873465836 100644
--- a/examples/widgets/tablet/mainwindow.cpp
+++ b/examples/widgets/widgets/tablet/mainwindow.cpp
diff --git a/examples/widgets/tablet/mainwindow.h b/examples/widgets/widgets/tablet/mainwindow.h
index dcab683b4e0..dcab683b4e0 100644
--- a/examples/widgets/tablet/mainwindow.h
+++ b/examples/widgets/widgets/tablet/mainwindow.h
diff --git a/examples/widgets/tablet/tablet.desktop b/examples/widgets/widgets/tablet/tablet.desktop
index 9b40dc25d40..9b40dc25d40 100644
--- a/examples/widgets/tablet/tablet.desktop
+++ b/examples/widgets/widgets/tablet/tablet.desktop
diff --git a/examples/widgets/tablet/tablet.pro b/examples/widgets/widgets/tablet/tablet.pro
index 9ad533fc649..9ad533fc649 100644
--- a/examples/widgets/tablet/tablet.pro
+++ b/examples/widgets/widgets/tablet/tablet.pro
diff --git a/examples/widgets/tablet/tabletapplication.cpp b/examples/widgets/widgets/tablet/tabletapplication.cpp
index 68038d2f84a..68038d2f84a 100644
--- a/examples/widgets/tablet/tabletapplication.cpp
+++ b/examples/widgets/widgets/tablet/tabletapplication.cpp
diff --git a/examples/widgets/tablet/tabletapplication.h b/examples/widgets/widgets/tablet/tabletapplication.h
index 4f981b9074d..4f981b9074d 100644
--- a/examples/widgets/tablet/tabletapplication.h
+++ b/examples/widgets/widgets/tablet/tabletapplication.h
diff --git a/examples/widgets/tablet/tabletcanvas.cpp b/examples/widgets/widgets/tablet/tabletcanvas.cpp
index 184de57c641..184de57c641 100644
--- a/examples/widgets/tablet/tabletcanvas.cpp
+++ b/examples/widgets/widgets/tablet/tabletcanvas.cpp
diff --git a/examples/widgets/tablet/tabletcanvas.h b/examples/widgets/widgets/tablet/tabletcanvas.h
index c778578928c..c778578928c 100644
--- a/examples/widgets/tablet/tabletcanvas.h
+++ b/examples/widgets/widgets/tablet/tabletcanvas.h
diff --git a/examples/widgets/tetrix/main.cpp b/examples/widgets/widgets/tetrix/main.cpp
index fdf76a294cb..fdf76a294cb 100644
--- a/examples/widgets/tetrix/main.cpp
+++ b/examples/widgets/widgets/tetrix/main.cpp
diff --git a/examples/widgets/tetrix/tetrix.desktop b/examples/widgets/widgets/tetrix/tetrix.desktop
index 4d7a3de4170..4d7a3de4170 100644
--- a/examples/widgets/tetrix/tetrix.desktop
+++ b/examples/widgets/widgets/tetrix/tetrix.desktop
diff --git a/examples/widgets/tetrix/tetrix.pro b/examples/widgets/widgets/tetrix/tetrix.pro
index 6e8a2703351..6e8a2703351 100644
--- a/examples/widgets/tetrix/tetrix.pro
+++ b/examples/widgets/widgets/tetrix/tetrix.pro
diff --git a/examples/widgets/tetrix/tetrixboard.cpp b/examples/widgets/widgets/tetrix/tetrixboard.cpp
index ebc001826a3..ebc001826a3 100644
--- a/examples/widgets/tetrix/tetrixboard.cpp
+++ b/examples/widgets/widgets/tetrix/tetrixboard.cpp
diff --git a/examples/widgets/tetrix/tetrixboard.h b/examples/widgets/widgets/tetrix/tetrixboard.h
index 6a511325c54..6a511325c54 100644
--- a/examples/widgets/tetrix/tetrixboard.h
+++ b/examples/widgets/widgets/tetrix/tetrixboard.h
diff --git a/examples/widgets/tetrix/tetrixpiece.cpp b/examples/widgets/widgets/tetrix/tetrixpiece.cpp
index 26da0fca5bd..26da0fca5bd 100644
--- a/examples/widgets/tetrix/tetrixpiece.cpp
+++ b/examples/widgets/widgets/tetrix/tetrixpiece.cpp
diff --git a/examples/widgets/tetrix/tetrixpiece.h b/examples/widgets/widgets/tetrix/tetrixpiece.h
index 884b848e773..884b848e773 100644
--- a/examples/widgets/tetrix/tetrixpiece.h
+++ b/examples/widgets/widgets/tetrix/tetrixpiece.h
diff --git a/examples/widgets/tetrix/tetrixwindow.cpp b/examples/widgets/widgets/tetrix/tetrixwindow.cpp
index a6cea3555b7..a6cea3555b7 100644
--- a/examples/widgets/tetrix/tetrixwindow.cpp
+++ b/examples/widgets/widgets/tetrix/tetrixwindow.cpp
diff --git a/examples/widgets/tetrix/tetrixwindow.h b/examples/widgets/widgets/tetrix/tetrixwindow.h
index 521b9cc7c4b..521b9cc7c4b 100644
--- a/examples/widgets/tetrix/tetrixwindow.h
+++ b/examples/widgets/widgets/tetrix/tetrixwindow.h
diff --git a/examples/widgets/tooltips/images/circle.png b/examples/widgets/widgets/tooltips/images/circle.png
index dc392cb3f75..dc392cb3f75 100644
--- a/examples/widgets/tooltips/images/circle.png
+++ b/examples/widgets/widgets/tooltips/images/circle.png
Binary files differ
diff --git a/examples/widgets/tooltips/images/square.png b/examples/widgets/widgets/tooltips/images/square.png
index c0fd2d540ab..c0fd2d540ab 100644
--- a/examples/widgets/tooltips/images/square.png
+++ b/examples/widgets/widgets/tooltips/images/square.png
Binary files differ
diff --git a/examples/widgets/tooltips/images/triangle.png b/examples/widgets/widgets/tooltips/images/triangle.png
index 2ee15f8f1f5..2ee15f8f1f5 100644
--- a/examples/widgets/tooltips/images/triangle.png
+++ b/examples/widgets/widgets/tooltips/images/triangle.png
Binary files differ
diff --git a/examples/widgets/tooltips/main.cpp b/examples/widgets/widgets/tooltips/main.cpp
index c416eb19fdc..c416eb19fdc 100644
--- a/examples/widgets/tooltips/main.cpp
+++ b/examples/widgets/widgets/tooltips/main.cpp
diff --git a/examples/widgets/tooltips/shapeitem.cpp b/examples/widgets/widgets/tooltips/shapeitem.cpp
index c77df25119d..c77df25119d 100644
--- a/examples/widgets/tooltips/shapeitem.cpp
+++ b/examples/widgets/widgets/tooltips/shapeitem.cpp
diff --git a/examples/widgets/tooltips/shapeitem.h b/examples/widgets/widgets/tooltips/shapeitem.h
index f0d71a7c30f..f0d71a7c30f 100644
--- a/examples/widgets/tooltips/shapeitem.h
+++ b/examples/widgets/widgets/tooltips/shapeitem.h
diff --git a/examples/widgets/tooltips/sortingbox.cpp b/examples/widgets/widgets/tooltips/sortingbox.cpp
index 7c72dc41c52..7c72dc41c52 100644
--- a/examples/widgets/tooltips/sortingbox.cpp
+++ b/examples/widgets/widgets/tooltips/sortingbox.cpp
diff --git a/examples/widgets/tooltips/sortingbox.h b/examples/widgets/widgets/tooltips/sortingbox.h
index 318a1c459e8..318a1c459e8 100644
--- a/examples/widgets/tooltips/sortingbox.h
+++ b/examples/widgets/widgets/tooltips/sortingbox.h
diff --git a/examples/widgets/tooltips/tooltips.desktop b/examples/widgets/widgets/tooltips/tooltips.desktop
index 7dade26cc35..7dade26cc35 100644
--- a/examples/widgets/tooltips/tooltips.desktop
+++ b/examples/widgets/widgets/tooltips/tooltips.desktop
diff --git a/examples/widgets/tooltips/tooltips.pro b/examples/widgets/widgets/tooltips/tooltips.pro
index 76a6cd00f85..76a6cd00f85 100644
--- a/examples/widgets/tooltips/tooltips.pro
+++ b/examples/widgets/widgets/tooltips/tooltips.pro
diff --git a/examples/widgets/tooltips/tooltips.qrc b/examples/widgets/widgets/tooltips/tooltips.qrc
index dabc894e9bf..dabc894e9bf 100644
--- a/examples/widgets/tooltips/tooltips.qrc
+++ b/examples/widgets/widgets/tooltips/tooltips.qrc
diff --git a/examples/widgets/validators/ledoff.png b/examples/widgets/widgets/validators/ledoff.png
index 8b1f2ed1237..8b1f2ed1237 100644
--- a/examples/widgets/validators/ledoff.png
+++ b/examples/widgets/widgets/validators/ledoff.png
Binary files differ
diff --git a/examples/widgets/validators/ledon.png b/examples/widgets/widgets/validators/ledon.png
index 601c34d5a8b..601c34d5a8b 100644
--- a/examples/widgets/validators/ledon.png
+++ b/examples/widgets/widgets/validators/ledon.png
Binary files differ
diff --git a/examples/widgets/validators/ledwidget.cpp b/examples/widgets/widgets/validators/ledwidget.cpp
index a5f04544941..a5f04544941 100644
--- a/examples/widgets/validators/ledwidget.cpp
+++ b/examples/widgets/widgets/validators/ledwidget.cpp
diff --git a/examples/widgets/validators/ledwidget.h b/examples/widgets/widgets/validators/ledwidget.h
index 15bbeb23cd0..15bbeb23cd0 100644
--- a/examples/widgets/validators/ledwidget.h
+++ b/examples/widgets/widgets/validators/ledwidget.h
diff --git a/examples/widgets/validators/localeselector.cpp b/examples/widgets/widgets/validators/localeselector.cpp
index c367ca5d347..c367ca5d347 100644
--- a/examples/widgets/validators/localeselector.cpp
+++ b/examples/widgets/widgets/validators/localeselector.cpp
diff --git a/examples/widgets/validators/localeselector.h b/examples/widgets/widgets/validators/localeselector.h
index 6cec8d3bacb..6cec8d3bacb 100644
--- a/examples/widgets/validators/localeselector.h
+++ b/examples/widgets/widgets/validators/localeselector.h
diff --git a/examples/widgets/validators/main.cpp b/examples/widgets/widgets/validators/main.cpp
index 85304b9138a..85304b9138a 100644
--- a/examples/widgets/validators/main.cpp
+++ b/examples/widgets/widgets/validators/main.cpp
diff --git a/examples/widgets/validators/validators.desktop b/examples/widgets/widgets/validators/validators.desktop
index 073131632fd..073131632fd 100644
--- a/examples/widgets/validators/validators.desktop
+++ b/examples/widgets/widgets/validators/validators.desktop
diff --git a/examples/widgets/validators/validators.pro b/examples/widgets/widgets/validators/validators.pro
index 7970f961cd0..7970f961cd0 100644
--- a/examples/widgets/validators/validators.pro
+++ b/examples/widgets/widgets/validators/validators.pro
diff --git a/examples/widgets/validators/validators.qrc b/examples/widgets/widgets/validators/validators.qrc
index 94874317a8b..94874317a8b 100644
--- a/examples/widgets/validators/validators.qrc
+++ b/examples/widgets/widgets/validators/validators.qrc
diff --git a/examples/widgets/validators/validators.ui b/examples/widgets/widgets/validators/validators.ui
index cd984e6b97d..cd984e6b97d 100644
--- a/examples/widgets/validators/validators.ui
+++ b/examples/widgets/widgets/validators/validators.ui
diff --git a/examples/widgets/widgets/widgets.pro b/examples/widgets/widgets/widgets.pro
new file mode 100644
index 00000000000..65289da995f
--- /dev/null
+++ b/examples/widgets/widgets/widgets.pro
@@ -0,0 +1,34 @@
+TEMPLATE = subdirs
+SUBDIRS = analogclock \
+ applicationicon \
+ calculator \
+ calendarwidget \
+ charactermap \
+ codeeditor \
+ digitalclock \
+ elidedlabel \
+ groupbox \
+ icons \
+ imageviewer \
+ lineedits \
+ movie \
+ mousebuttons \
+ orientation \
+ scribble \
+ shapedclock \
+ sliders \
+ spinboxes \
+ stylesheet \
+ tablet \
+ tetrix \
+ tooltips \
+ validators \
+ wiggly \
+ windowflags
+
+contains(styles, motif): SUBDIRS += styles
+
+# install
+sources.files = widgets.pro README
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets
+INSTALLS += sources
diff --git a/examples/widgets/wiggly/dialog.cpp b/examples/widgets/widgets/wiggly/dialog.cpp
index e808b77e87c..e808b77e87c 100644
--- a/examples/widgets/wiggly/dialog.cpp
+++ b/examples/widgets/widgets/wiggly/dialog.cpp
diff --git a/examples/widgets/wiggly/dialog.h b/examples/widgets/widgets/wiggly/dialog.h
index 84167d91537..84167d91537 100644
--- a/examples/widgets/wiggly/dialog.h
+++ b/examples/widgets/widgets/wiggly/dialog.h
diff --git a/examples/widgets/wiggly/main.cpp b/examples/widgets/widgets/wiggly/main.cpp
index ccf50e7411a..ccf50e7411a 100644
--- a/examples/widgets/wiggly/main.cpp
+++ b/examples/widgets/widgets/wiggly/main.cpp
diff --git a/examples/widgets/wiggly/wiggly.desktop b/examples/widgets/widgets/wiggly/wiggly.desktop
index b83e1ab3f05..b83e1ab3f05 100644
--- a/examples/widgets/wiggly/wiggly.desktop
+++ b/examples/widgets/widgets/wiggly/wiggly.desktop
diff --git a/examples/widgets/wiggly/wiggly.pro b/examples/widgets/widgets/wiggly/wiggly.pro
index 6b89cd17694..6b89cd17694 100644
--- a/examples/widgets/wiggly/wiggly.pro
+++ b/examples/widgets/widgets/wiggly/wiggly.pro
diff --git a/examples/widgets/wiggly/wigglywidget.cpp b/examples/widgets/widgets/wiggly/wigglywidget.cpp
index bf9a13cbca1..bf9a13cbca1 100644
--- a/examples/widgets/wiggly/wigglywidget.cpp
+++ b/examples/widgets/widgets/wiggly/wigglywidget.cpp
diff --git a/examples/widgets/wiggly/wigglywidget.h b/examples/widgets/widgets/wiggly/wigglywidget.h
index 9dae9cfb2ed..9dae9cfb2ed 100644
--- a/examples/widgets/wiggly/wigglywidget.h
+++ b/examples/widgets/widgets/wiggly/wigglywidget.h
diff --git a/examples/widgets/windowflags/controllerwindow.cpp b/examples/widgets/widgets/windowflags/controllerwindow.cpp
index 15d5bcf23be..15d5bcf23be 100644
--- a/examples/widgets/windowflags/controllerwindow.cpp
+++ b/examples/widgets/widgets/windowflags/controllerwindow.cpp
diff --git a/examples/widgets/windowflags/controllerwindow.h b/examples/widgets/widgets/windowflags/controllerwindow.h
index 7479fe8bee0..7479fe8bee0 100644
--- a/examples/widgets/windowflags/controllerwindow.h
+++ b/examples/widgets/widgets/windowflags/controllerwindow.h
diff --git a/examples/widgets/windowflags/main.cpp b/examples/widgets/widgets/windowflags/main.cpp
index 1cb90f70312..1cb90f70312 100644
--- a/examples/widgets/windowflags/main.cpp
+++ b/examples/widgets/widgets/windowflags/main.cpp
diff --git a/examples/widgets/windowflags/previewwindow.cpp b/examples/widgets/widgets/windowflags/previewwindow.cpp
index f8c297a41ec..f8c297a41ec 100644
--- a/examples/widgets/windowflags/previewwindow.cpp
+++ b/examples/widgets/widgets/windowflags/previewwindow.cpp
diff --git a/examples/widgets/windowflags/previewwindow.h b/examples/widgets/widgets/windowflags/previewwindow.h
index afe88957a02..afe88957a02 100644
--- a/examples/widgets/windowflags/previewwindow.h
+++ b/examples/widgets/widgets/windowflags/previewwindow.h
diff --git a/examples/widgets/windowflags/windowflags.desktop b/examples/widgets/widgets/windowflags/windowflags.desktop
index 27fd7bd3647..27fd7bd3647 100644
--- a/examples/widgets/windowflags/windowflags.desktop
+++ b/examples/widgets/widgets/windowflags/windowflags.desktop
diff --git a/examples/widgets/windowflags/windowflags.pro b/examples/widgets/widgets/windowflags/windowflags.pro
index b063b8ab2c3..b063b8ab2c3 100644
--- a/examples/widgets/windowflags/windowflags.pro
+++ b/examples/widgets/widgets/windowflags/windowflags.pro
diff --git a/src/widgets/doc/qtwidgets.qdocconf b/src/widgets/doc/qtwidgets.qdocconf
index 6aa89c92c66..78a6a227838 100644
--- a/src/widgets/doc/qtwidgets.qdocconf
+++ b/src/widgets/doc/qtwidgets.qdocconf
@@ -84,12 +84,15 @@ depends += qtcore qtgui
headerdirs += ..
-sourcedirs += ..
+sourcedirs += .. \
+ ../../../examples/widgets/doc
-exampledirs += ../../../examples \
+exampledirs += ../../../examples/widgets \
+ ../../../doc/src/snippets \
../ \
snippets
excludedirs += snippets
-imagedirs += images
+imagedirs += images \
+ ../../../doc/src/images