summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt23
-rw-r--r--examples/corelib/CMakeLists.txt10
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt29
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.cpp57
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.h53
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/bindableuser.cpp51
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/bindableuser.h62
-rw-r--r--examples/corelib/bindableproperties/bindablesubscription/main.cpp60
-rw-r--r--examples/corelib/bindableproperties/doc/src/bindableproperties.qdoc62
-rw-r--r--examples/corelib/bindableproperties/shared/subscriptionwindow.cpp51
-rw-r--r--examples/corelib/bindableproperties/shared/subscriptionwindow.h51
-rw-r--r--examples/corelib/bindableproperties/subscription/CMakeLists.txt29
-rw-r--r--examples/corelib/bindableproperties/subscription/main.cpp60
-rw-r--r--examples/corelib/bindableproperties/subscription/subscription.cpp57
-rw-r--r--examples/corelib/bindableproperties/subscription/subscription.h53
-rw-r--r--examples/corelib/bindableproperties/subscription/user.cpp51
-rw-r--r--examples/corelib/bindableproperties/subscription/user.h64
-rw-r--r--examples/corelib/ipc/CMakeLists.txt7
-rw-r--r--examples/corelib/ipc/doc/src/localfortuneclient.qdoc28
-rw-r--r--examples/corelib/ipc/doc/src/localfortuneserver.qdoc28
-rw-r--r--examples/corelib/ipc/doc/src/sharedmemory.qdoc28
-rw-r--r--examples/corelib/ipc/localfortuneclient/CMakeLists.txt30
-rw-r--r--examples/corelib/ipc/localfortuneclient/client.cpp51
-rw-r--r--examples/corelib/ipc/localfortuneclient/client.h51
-rw-r--r--examples/corelib/ipc/localfortuneclient/main.cpp51
-rw-r--r--examples/corelib/ipc/localfortuneserver/CMakeLists.txt30
-rw-r--r--examples/corelib/ipc/localfortuneserver/main.cpp51
-rw-r--r--examples/corelib/ipc/localfortuneserver/server.cpp51
-rw-r--r--examples/corelib/ipc/localfortuneserver/server.h51
-rw-r--r--examples/corelib/ipc/sharedmemory/CMakeLists.txt27
-rw-r--r--examples/corelib/ipc/sharedmemory/dialog.cpp60
-rw-r--r--examples/corelib/ipc/sharedmemory/dialog.h51
-rw-r--r--examples/corelib/ipc/sharedmemory/main.cpp51
-rw-r--r--examples/corelib/mimetypes/CMakeLists.txt5
-rw-r--r--examples/corelib/mimetypes/doc/src/mimetypebrowser.qdoc28
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt27
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/main.cpp51
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/mainwindow.cpp51
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/mainwindow.h51
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.cpp51
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.h51
-rw-r--r--examples/corelib/permissions/CMakeLists.txt47
-rw-r--r--examples/corelib/permissions/Info.plist59
-rw-r--r--examples/corelib/permissions/android/AndroidManifest.xml53
-rw-r--r--examples/corelib/permissions/main.cpp87
-rw-r--r--examples/corelib/platform/CMakeLists.txt3
-rw-r--r--examples/corelib/platform/androidnotifier/CMakeLists.txt83
-rw-r--r--examples/corelib/platform/androidnotifier/android/AndroidManifest.xml7
-rw-r--r--examples/corelib/platform/androidnotifier/android/src/org/qtproject/example/androidnotifier/NotificationClient.java51
-rw-r--r--examples/corelib/platform/androidnotifier/doc/src/androidnotifier-example.qdoc31
-rw-r--r--examples/corelib/platform/androidnotifier/main.cpp51
-rw-r--r--examples/corelib/platform/androidnotifier/notificationclient.cpp51
-rw-r--r--examples/corelib/platform/androidnotifier/notificationclient.h51
-rw-r--r--examples/corelib/serialization/CMakeLists.txt9
-rw-r--r--examples/corelib/serialization/cbordump/CMakeLists.txt24
-rwxr-xr-xexamples/corelib/serialization/cbordump/cbortag.py188
-rw-r--r--examples/corelib/serialization/cbordump/doc/images/cbordump.pngbin0 -> 9556 bytes
-rw-r--r--examples/corelib/serialization/cbordump/doc/src/cbordump.qdoc55
-rw-r--r--examples/corelib/serialization/cbordump/main.cpp195
-rw-r--r--examples/corelib/serialization/cbordump/tag-transform.xslt25
-rw-r--r--examples/corelib/serialization/convert/CMakeLists.txt24
-rw-r--r--examples/corelib/serialization/convert/cborconverter.cpp71
-rw-r--r--examples/corelib/serialization/convert/cborconverter.h51
-rw-r--r--examples/corelib/serialization/convert/converter.h52
-rw-r--r--examples/corelib/serialization/convert/datastreamconverter.cpp57
-rw-r--r--examples/corelib/serialization/convert/datastreamconverter.h51
-rw-r--r--examples/corelib/serialization/convert/doc/images/convert.pngbin0 -> 49201 bytes
-rw-r--r--examples/corelib/serialization/convert/doc/src/convert.qdoc82
-rw-r--r--examples/corelib/serialization/convert/jsonconverter.cpp58
-rw-r--r--examples/corelib/serialization/convert/jsonconverter.h51
-rw-r--r--examples/corelib/serialization/convert/main.cpp63
-rw-r--r--examples/corelib/serialization/convert/nullconverter.cpp51
-rw-r--r--examples/corelib/serialization/convert/nullconverter.h51
-rw-r--r--examples/corelib/serialization/convert/textconverter.cpp51
-rw-r--r--examples/corelib/serialization/convert/textconverter.h51
-rw-r--r--examples/corelib/serialization/convert/xmlconverter.cpp58
-rw-r--r--examples/corelib/serialization/convert/xmlconverter.h51
-rw-r--r--examples/corelib/serialization/rsslisting/CMakeLists.txt38
-rw-r--r--examples/corelib/serialization/rsslisting/doc/images/rsslisting.pngbin0 -> 19739 bytes
-rw-r--r--examples/corelib/serialization/rsslisting/doc/src/rsslisting.qdoc129
-rw-r--r--examples/corelib/serialization/rsslisting/main.cpp16
-rw-r--r--examples/corelib/serialization/rsslisting/rsslisting.cpp126
-rw-r--r--examples/corelib/serialization/rsslisting/rsslisting.h54
-rw-r--r--examples/corelib/serialization/rsslisting/rsslisting.pro (renamed from examples/xml/rsslisting/rsslisting.pro)4
-rw-r--r--examples/corelib/serialization/savegame/CMakeLists.txt24
-rw-r--r--examples/corelib/serialization/savegame/character.cpp97
-rw-r--r--examples/corelib/serialization/savegame/character.h65
-rw-r--r--examples/corelib/serialization/savegame/doc/src/savegame.qdoc177
-rw-r--r--examples/corelib/serialization/savegame/game.cpp125
-rw-r--r--examples/corelib/serialization/savegame/game.h61
-rw-r--r--examples/corelib/serialization/savegame/level.cpp103
-rw-r--r--examples/corelib/serialization/savegame/level.h63
-rw-r--r--examples/corelib/serialization/savegame/main.cpp78
-rw-r--r--examples/corelib/serialization/serialization.pro6
-rw-r--r--examples/corelib/serialization/streambookmarks/CMakeLists.txt (renamed from examples/xml/streambookmarks/CMakeLists.txt)31
-rw-r--r--examples/corelib/serialization/streambookmarks/doc/images/xmlstreamexample-filemenu.png (renamed from examples/xml/streambookmarks/doc/images/xmlstreamexample-filemenu.png)bin9380 -> 9380 bytes
-rw-r--r--examples/corelib/serialization/streambookmarks/doc/images/xmlstreamexample-helpmenu.png (renamed from examples/xml/streambookmarks/doc/images/xmlstreamexample-helpmenu.png)bin10856 -> 10856 bytes
-rw-r--r--examples/corelib/serialization/streambookmarks/doc/images/xmlstreamexample-screenshot.png (renamed from examples/xml/streambookmarks/doc/images/xmlstreamexample-screenshot.png)bin22323 -> 22323 bytes
-rw-r--r--examples/corelib/serialization/streambookmarks/doc/src/qxmlstreambookmarks.qdoc (renamed from examples/xml/streambookmarks/doc/src/qxmlstreambookmarks.qdoc)70
-rw-r--r--examples/corelib/serialization/streambookmarks/jennifer.xbel (renamed from examples/xml/streambookmarks/jennifer.xbel)0
-rw-r--r--examples/corelib/serialization/streambookmarks/main.cpp17
-rw-r--r--examples/corelib/serialization/streambookmarks/mainwindow.cpp (renamed from examples/xml/streambookmarks/mainwindow.cpp)51
-rw-r--r--examples/corelib/serialization/streambookmarks/mainwindow.h35
-rw-r--r--examples/corelib/serialization/streambookmarks/streambookmarks.pro (renamed from examples/xml/streambookmarks/streambookmarks.pro)4
-rw-r--r--examples/corelib/serialization/streambookmarks/xbelreader.cpp (renamed from examples/xml/streambookmarks/xbelreader.cpp)51
-rw-r--r--examples/corelib/serialization/streambookmarks/xbelreader.h50
-rw-r--r--examples/corelib/serialization/streambookmarks/xbelwriter.cpp60
-rw-r--r--examples/corelib/serialization/streambookmarks/xbelwriter.h28
-rw-r--r--examples/corelib/threads/CMakeLists.txt5
-rw-r--r--examples/corelib/threads/doc/src/mandelbrot.qdoc47
-rw-r--r--examples/corelib/threads/doc/src/queuedcustomtype.qdoc28
-rw-r--r--examples/corelib/threads/doc/src/semaphores.qdoc30
-rw-r--r--examples/corelib/threads/doc/src/waitconditions.qdoc30
-rw-r--r--examples/corelib/threads/mandelbrot/CMakeLists.txt33
-rw-r--r--examples/corelib/threads/mandelbrot/main.cpp57
-rw-r--r--examples/corelib/threads/mandelbrot/mandelbrot.pro2
-rw-r--r--examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp106
-rw-r--r--examples/corelib/threads/mandelbrot/mandelbrotwidget.h59
-rw-r--r--examples/corelib/threads/mandelbrot/renderthread.cpp51
-rw-r--r--examples/corelib/threads/mandelbrot/renderthread.h51
-rw-r--r--examples/corelib/threads/queuedcustomtype/CMakeLists.txt27
-rw-r--r--examples/corelib/threads/queuedcustomtype/block.cpp51
-rw-r--r--examples/corelib/threads/queuedcustomtype/block.h51
-rw-r--r--examples/corelib/threads/queuedcustomtype/main.cpp51
-rw-r--r--examples/corelib/threads/queuedcustomtype/renderthread.cpp51
-rw-r--r--examples/corelib/threads/queuedcustomtype/renderthread.h51
-rw-r--r--examples/corelib/threads/queuedcustomtype/window.cpp51
-rw-r--r--examples/corelib/threads/queuedcustomtype/window.h51
-rw-r--r--examples/corelib/threads/semaphores/CMakeLists.txt24
-rw-r--r--examples/corelib/threads/semaphores/semaphores.cpp54
-rw-r--r--examples/corelib/threads/waitconditions/CMakeLists.txt24
-rw-r--r--examples/corelib/threads/waitconditions/waitconditions.cpp119
-rw-r--r--examples/corelib/tools/CMakeLists.txt5
-rw-r--r--examples/corelib/tools/contiguouscache/CMakeLists.txt27
-rw-r--r--examples/corelib/tools/contiguouscache/main.cpp51
-rw-r--r--examples/corelib/tools/contiguouscache/randomlistmodel.cpp51
-rw-r--r--examples/corelib/tools/contiguouscache/randomlistmodel.h51
-rw-r--r--examples/corelib/tools/customtype/CMakeLists.txt27
-rw-r--r--examples/corelib/tools/customtype/main.cpp51
-rw-r--r--examples/corelib/tools/customtype/message.cpp54
-rw-r--r--examples/corelib/tools/customtype/message.h51
-rw-r--r--examples/corelib/tools/customtypesending/CMakeLists.txt27
-rw-r--r--examples/corelib/tools/customtypesending/main.cpp51
-rw-r--r--examples/corelib/tools/customtypesending/message.cpp51
-rw-r--r--examples/corelib/tools/customtypesending/message.h51
-rw-r--r--examples/corelib/tools/customtypesending/window.cpp51
-rw-r--r--examples/corelib/tools/customtypesending/window.h51
-rw-r--r--examples/corelib/tools/doc/src/contiguouscache.qdoc30
-rw-r--r--examples/corelib/tools/doc/src/customtype.qdoc28
-rw-r--r--examples/dbus/CMakeLists.txt10
-rw-r--r--examples/dbus/chat/CMakeLists.txt39
-rw-r--r--examples/dbus/chat/chat.cpp170
-rw-r--r--examples/dbus/chat/chat.h71
-rw-r--r--examples/dbus/chat/chat.pro2
-rw-r--r--examples/dbus/chat/chatsetnickname.ui149
-rw-r--r--examples/dbus/complexpingpong/CMakeLists.txt61
-rw-r--r--examples/dbus/complexpingpong/complexping.cpp91
-rw-r--r--examples/dbus/complexpingpong/complexping.h60
-rw-r--r--examples/dbus/complexpingpong/complexpong.cpp71
-rw-r--r--examples/dbus/complexpingpong/complexpong.h62
-rw-r--r--examples/dbus/complexpingpong/ping-common.h51
-rw-r--r--examples/dbus/dbus.pro3
-rw-r--r--examples/dbus/doc/images/dbus-chat-example.pngbin38530 -> 0 bytes
-rw-r--r--examples/dbus/doc/images/dbus-chat-example.webpbin0 -> 17556 bytes
-rw-r--r--examples/dbus/doc/src/chat.qdoc32
-rw-r--r--examples/dbus/doc/src/complexpingpong.qdoc32
-rw-r--r--examples/dbus/doc/src/listnames.qdoc39
-rw-r--r--examples/dbus/doc/src/pingpong.qdoc30
-rw-r--r--examples/dbus/listnames/CMakeLists.txt43
-rw-r--r--examples/dbus/listnames/listnames.cpp105
-rw-r--r--examples/dbus/listnames/listnames.pro8
-rw-r--r--examples/dbus/pingpong/CMakeLists.txt63
-rw-r--r--examples/dbus/pingpong/ping-common.h51
-rw-r--r--examples/dbus/pingpong/ping.cpp72
-rw-r--r--examples/dbus/pingpong/pong.cpp83
-rw-r--r--examples/dbus/pingpong/pong.h63
-rw-r--r--examples/dbus/pingpong/pong.pro2
-rw-r--r--examples/dbus/remotecontrolledcar/CMakeLists.txt14
-rw-r--r--examples/dbus/remotecontrolledcar/car/CMakeLists.txt38
-rw-r--r--examples/dbus/remotecontrolledcar/car/car.cpp60
-rw-r--r--examples/dbus/remotecontrolledcar/car/car.h69
-rw-r--r--examples/dbus/remotecontrolledcar/car/car.pro2
-rw-r--r--examples/dbus/remotecontrolledcar/car/main.cpp55
-rw-r--r--examples/dbus/remotecontrolledcar/common/car.xml (renamed from examples/dbus/remotecontrolledcar/car/car.xml)3
-rw-r--r--examples/dbus/remotecontrolledcar/controller/CMakeLists.txt38
-rw-r--r--examples/dbus/remotecontrolledcar/controller/car.xml11
-rw-r--r--examples/dbus/remotecontrolledcar/controller/controller.cpp93
-rw-r--r--examples/dbus/remotecontrolledcar/controller/controller.h61
-rw-r--r--examples/dbus/remotecontrolledcar/controller/controller.pro2
-rw-r--r--examples/dbus/remotecontrolledcar/controller/main.cpp51
-rw-r--r--examples/dbus/remotecontrolledcar/doc/images/remotecontrolledcar-car-example.pngbin8833 -> 0 bytes
-rw-r--r--examples/dbus/remotecontrolledcar/doc/images/remotecontrolledcar-car-example.webpbin0 -> 14484 bytes
-rw-r--r--examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc32
-rw-r--r--examples/embedded/CMakeLists.txt5
-rw-r--r--examples/embedded/digiflip/CMakeLists.txt27
-rw-r--r--examples/embedded/digiflip/digiflip.cpp60
-rw-r--r--examples/embedded/flickable/CMakeLists.txt27
-rw-r--r--examples/embedded/flickable/flickable.cpp51
-rw-r--r--examples/embedded/flickable/flickable.h51
-rw-r--r--examples/embedded/flickable/main.cpp55
-rw-r--r--examples/embedded/flightinfo/CMakeLists.txt33
-rw-r--r--examples/embedded/flightinfo/flightinfo.cpp65
-rw-r--r--examples/embedded/lightmaps/CMakeLists.txt30
-rw-r--r--examples/embedded/lightmaps/lightmaps.cpp55
-rw-r--r--examples/embedded/lightmaps/lightmaps.h51
-rw-r--r--examples/embedded/lightmaps/main.cpp51
-rw-r--r--examples/embedded/lightmaps/mapzoom.cpp51
-rw-r--r--examples/embedded/lightmaps/mapzoom.h53
-rw-r--r--examples/embedded/lightmaps/slippymap.cpp51
-rw-r--r--examples/embedded/lightmaps/slippymap.h51
-rw-r--r--examples/embedded/raycasting/CMakeLists.txt30
-rw-r--r--examples/embedded/raycasting/raycasting.cpp51
-rw-r--r--examples/embedded/styleexample/CMakeLists.txt30
-rw-r--r--examples/embedded/styleexample/main.cpp51
-rw-r--r--examples/embedded/styleexample/stylewidget.cpp51
-rw-r--r--examples/embedded/styleexample/stylewidget.h51
-rw-r--r--examples/gui/CMakeLists.txt7
-rw-r--r--examples/gui/analogclock/CMakeLists.txt49
-rw-r--r--examples/gui/analogclock/analogclock.pro10
-rw-r--r--examples/gui/analogclock/main.cpp170
-rw-r--r--examples/gui/doc/images/analogclock-window-example.pngbin14556 -> 0 bytes
-rw-r--r--examples/gui/doc/images/analogclockwindow-viewport.pngbin29668 -> 0 bytes
-rw-r--r--examples/gui/doc/images/rhiwindow_example.jpgbin0 -> 47775 bytes
-rw-r--r--examples/gui/doc/src/analogclockwindow.qdoc138
-rw-r--r--examples/gui/doc/src/rasterwindow.qdoc28
-rw-r--r--examples/gui/doc/src/rhiwindow.qdoc439
-rw-r--r--examples/gui/gui.pro4
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt27
-rw-r--r--examples/gui/rasterwindow/main.cpp51
-rw-r--r--examples/gui/rasterwindow/rasterwindow.cpp51
-rw-r--r--examples/gui/rasterwindow/rasterwindow.h51
-rw-r--r--examples/gui/rhiwindow/CMakeLists.txt59
-rw-r--r--examples/gui/rhiwindow/main.cpp100
-rw-r--r--examples/gui/rhiwindow/rhiwindow.cpp435
-rw-r--r--examples/gui/rhiwindow/rhiwindow.h78
-rw-r--r--examples/gui/rhiwindow/rhiwindow.pri4
-rw-r--r--examples/gui/rhiwindow/rhiwindow.pro9
-rw-r--r--examples/gui/rhiwindow/rhiwindow.qrc8
-rw-r--r--examples/gui/rhiwindow/shaders/color.frag15
-rw-r--r--examples/gui/rhiwindow/shaders/color.vert17
-rw-r--r--examples/gui/rhiwindow/shaders/prebuilt/color.frag.qsbbin0 -> 1035 bytes
-rw-r--r--examples/gui/rhiwindow/shaders/prebuilt/color.vert.qsbbin0 -> 1131 bytes
-rw-r--r--examples/gui/rhiwindow/shaders/prebuilt/quad.frag.qsbbin0 -> 1023 bytes
-rw-r--r--examples/gui/rhiwindow/shaders/prebuilt/quad.vert.qsbbin0 -> 982 bytes
-rw-r--r--examples/gui/rhiwindow/shaders/quad.frag11
-rw-r--r--examples/gui/rhiwindow/shaders/quad.vert10
-rw-r--r--examples/network/CMakeLists.txt19
-rw-r--r--examples/network/blockingfortuneclient/CMakeLists.txt30
-rw-r--r--examples/network/blockingfortuneclient/blockingclient.cpp60
-rw-r--r--examples/network/blockingfortuneclient/blockingclient.h51
-rw-r--r--examples/network/blockingfortuneclient/fortunethread.cpp53
-rw-r--r--examples/network/blockingfortuneclient/fortunethread.h51
-rw-r--r--examples/network/blockingfortuneclient/main.cpp51
-rw-r--r--examples/network/broadcastreceiver/CMakeLists.txt30
-rw-r--r--examples/network/broadcastreceiver/main.cpp51
-rw-r--r--examples/network/broadcastreceiver/receiver.cpp54
-rw-r--r--examples/network/broadcastreceiver/receiver.h51
-rw-r--r--examples/network/broadcastsender/CMakeLists.txt30
-rw-r--r--examples/network/broadcastsender/main.cpp51
-rw-r--r--examples/network/broadcastsender/sender.cpp53
-rw-r--r--examples/network/broadcastsender/sender.h51
-rw-r--r--examples/network/dnslookup/CMakeLists.txt27
-rw-r--r--examples/network/dnslookup/dnslookup.cpp214
-rw-r--r--examples/network/dnslookup/dnslookup.h51
-rw-r--r--examples/network/doc/images/blockingfortuneclient-example.pngbin9199 -> 7013 bytes
-rw-r--r--examples/network/doc/images/fortuneclient-example.pngbin8282 -> 7814 bytes
-rw-r--r--examples/network/doc/images/fortuneserver-example.pngbin7883 -> 6167 bytes
-rw-r--r--examples/network/doc/images/googlesuggest-example.pngbin21272 -> 0 bytes
-rw-r--r--examples/network/doc/images/http-example.pngbin8099 -> 0 bytes
-rw-r--r--examples/network/doc/images/http-example.webpbin0 -> 8250 bytes
-rw-r--r--examples/network/doc/images/loopback-example.pngbin6195 -> 0 bytes
-rw-r--r--examples/network/doc/images/multicastreceiver-example.pngbin13042 -> 0 bytes
-rw-r--r--examples/network/doc/images/multicastreceiver-example.webpbin0 -> 3280 bytes
-rw-r--r--examples/network/doc/images/multicastsender-example.pngbin21092 -> 0 bytes
-rw-r--r--examples/network/doc/images/multicastsender-example.webpbin0 -> 3502 bytes
-rw-r--r--examples/network/doc/images/threadedfortuneserver-example.pngbin16232 -> 5558 bytes
-rw-r--r--examples/network/doc/src/blockingfortuneclient.qdoc38
-rw-r--r--examples/network/doc/src/broadcastreceiver.qdoc28
-rw-r--r--examples/network/doc/src/broadcastsender.qdoc28
-rw-r--r--examples/network/doc/src/fortuneclient.qdoc36
-rw-r--r--examples/network/doc/src/fortuneserver.qdoc38
-rw-r--r--examples/network/doc/src/googlesuggest.qdoc177
-rw-r--r--examples/network/doc/src/http.qdoc34
-rw-r--r--examples/network/doc/src/loopback.qdoc38
-rw-r--r--examples/network/doc/src/multicastreceiver.qdoc36
-rw-r--r--examples/network/doc/src/multicastsender.qdoc34
-rw-r--r--examples/network/doc/src/network-chat.qdoc32
-rw-r--r--examples/network/doc/src/network-download.qdoc41
-rw-r--r--examples/network/doc/src/network-downloadmanager.qdoc41
-rw-r--r--examples/network/doc/src/securesocketclient.qdoc28
-rw-r--r--examples/network/doc/src/secureudpclient.qdoc28
-rw-r--r--examples/network/doc/src/secureudpserver.qdoc28
-rw-r--r--examples/network/doc/src/threadedfortuneserver.qdoc35
-rw-r--r--examples/network/doc/src/torrent.qdoc28
-rw-r--r--examples/network/download/CMakeLists.txt37
-rw-r--r--examples/network/download/download.pro8
-rw-r--r--examples/network/download/main.cpp213
-rw-r--r--examples/network/downloadmanager/CMakeLists.txt39
-rw-r--r--examples/network/downloadmanager/downloadmanager.cpp212
-rw-r--r--examples/network/downloadmanager/downloadmanager.h93
-rw-r--r--examples/network/downloadmanager/downloadmanager.pro17
-rw-r--r--examples/network/downloadmanager/main.cpp82
-rw-r--r--examples/network/downloadmanager/textprogressbar.cpp107
-rw-r--r--examples/network/downloadmanager/textprogressbar.h71
-rw-r--r--examples/network/fortuneclient/CMakeLists.txt30
-rw-r--r--examples/network/fortuneclient/client.cpp68
-rw-r--r--examples/network/fortuneclient/client.h51
-rw-r--r--examples/network/fortuneclient/main.cpp51
-rw-r--r--examples/network/fortuneserver/CMakeLists.txt30
-rw-r--r--examples/network/fortuneserver/main.cpp51
-rw-r--r--examples/network/fortuneserver/server.cpp63
-rw-r--r--examples/network/fortuneserver/server.h51
-rw-r--r--examples/network/googlesuggest/CMakeLists.txt43
-rw-r--r--examples/network/googlesuggest/googlesuggest.cpp231
-rw-r--r--examples/network/googlesuggest/googlesuggest.h84
-rw-r--r--examples/network/googlesuggest/googlesuggest.pro8
-rw-r--r--examples/network/googlesuggest/main.cpp61
-rw-r--r--examples/network/googlesuggest/searchbox.cpp82
-rw-r--r--examples/network/googlesuggest/searchbox.h75
-rw-r--r--examples/network/http/CMakeLists.txt30
-rw-r--r--examples/network/http/httpwindow.cpp111
-rw-r--r--examples/network/http/httpwindow.h57
-rw-r--r--examples/network/http/main.cpp55
-rw-r--r--examples/network/loopback/CMakeLists.txt42
-rw-r--r--examples/network/loopback/dialog.cpp202
-rw-r--r--examples/network/loopback/dialog.h98
-rw-r--r--examples/network/loopback/loopback.pro9
-rw-r--r--examples/network/loopback/main.cpp61
-rw-r--r--examples/network/multicastreceiver/CMakeLists.txt30
-rw-r--r--examples/network/multicastreceiver/main.cpp51
-rw-r--r--examples/network/multicastreceiver/receiver.cpp55
-rw-r--r--examples/network/multicastreceiver/receiver.h51
-rw-r--r--examples/network/multicastsender/CMakeLists.txt30
-rw-r--r--examples/network/multicastsender/main.cpp51
-rw-r--r--examples/network/multicastsender/sender.cpp51
-rw-r--r--examples/network/multicastsender/sender.h51
-rw-r--r--examples/network/multistreamclient/CMakeLists.txt30
-rw-r--r--examples/network/multistreamclient/chatconsumer.cpp51
-rw-r--r--examples/network/multistreamclient/chatconsumer.h51
-rw-r--r--examples/network/multistreamclient/client.cpp51
-rw-r--r--examples/network/multistreamclient/client.h51
-rw-r--r--examples/network/multistreamclient/consumer.h51
-rw-r--r--examples/network/multistreamclient/main.cpp51
-rw-r--r--examples/network/multistreamclient/movieconsumer.cpp51
-rw-r--r--examples/network/multistreamclient/movieconsumer.h51
-rw-r--r--examples/network/multistreamclient/timeconsumer.cpp51
-rw-r--r--examples/network/multistreamclient/timeconsumer.h51
-rw-r--r--examples/network/multistreamserver/CMakeLists.txt30
-rw-r--r--examples/network/multistreamserver/chatprovider.cpp51
-rw-r--r--examples/network/multistreamserver/chatprovider.h51
-rw-r--r--examples/network/multistreamserver/main.cpp51
-rw-r--r--examples/network/multistreamserver/movieprovider.cpp51
-rw-r--r--examples/network/multistreamserver/movieprovider.h51
-rw-r--r--examples/network/multistreamserver/provider.h51
-rw-r--r--examples/network/multistreamserver/server.cpp51
-rw-r--r--examples/network/multistreamserver/server.h51
-rw-r--r--examples/network/multistreamserver/timeprovider.cpp51
-rw-r--r--examples/network/multistreamserver/timeprovider.h51
-rw-r--r--examples/network/network-chat/CMakeLists.txt34
-rw-r--r--examples/network/network-chat/chatdialog.cpp61
-rw-r--r--examples/network/network-chat/chatdialog.h53
-rw-r--r--examples/network/network-chat/client.cpp81
-rw-r--r--examples/network/network-chat/client.h55
-rw-r--r--examples/network/network-chat/connection.cpp61
-rw-r--r--examples/network/network-chat/connection.h67
-rw-r--r--examples/network/network-chat/main.cpp55
-rw-r--r--examples/network/network-chat/network-chat.pro1
-rw-r--r--examples/network/network-chat/peermanager.cpp73
-rw-r--r--examples/network/network-chat/peermanager.h57
-rw-r--r--examples/network/network-chat/server.cpp53
-rw-r--r--examples/network/network-chat/server.h53
-rw-r--r--examples/network/network.pro5
-rw-r--r--examples/network/securesocketclient/CMakeLists.txt33
-rw-r--r--examples/network/securesocketclient/certificateinfo.cpp51
-rw-r--r--examples/network/securesocketclient/certificateinfo.h51
-rw-r--r--examples/network/securesocketclient/main.cpp51
-rw-r--r--examples/network/securesocketclient/sslclient.cpp51
-rw-r--r--examples/network/securesocketclient/sslclient.h51
-rw-r--r--examples/network/secureudpclient/CMakeLists.txt30
-rw-r--r--examples/network/secureudpclient/addressdialog.cpp51
-rw-r--r--examples/network/secureudpclient/addressdialog.h57
-rw-r--r--examples/network/secureudpclient/association.cpp55
-rw-r--r--examples/network/secureudpclient/association.h55
-rw-r--r--examples/network/secureudpclient/main.cpp53
-rw-r--r--examples/network/secureudpclient/mainwindow.cpp53
-rw-r--r--examples/network/secureudpclient/mainwindow.h59
-rw-r--r--examples/network/secureudpserver/CMakeLists.txt30
-rw-r--r--examples/network/secureudpserver/main.cpp53
-rw-r--r--examples/network/secureudpserver/mainwindow.cpp51
-rw-r--r--examples/network/secureudpserver/mainwindow.h55
-rw-r--r--examples/network/secureudpserver/nicselector.cpp51
-rw-r--r--examples/network/secureudpserver/nicselector.h55
-rw-r--r--examples/network/secureudpserver/server.cpp63
-rw-r--r--examples/network/secureudpserver/server.h55
-rw-r--r--examples/network/shared/sctpchannels.h51
-rw-r--r--examples/network/threadedfortuneserver/CMakeLists.txt30
-rw-r--r--examples/network/threadedfortuneserver/dialog.cpp61
-rw-r--r--examples/network/threadedfortuneserver/dialog.h51
-rw-r--r--examples/network/threadedfortuneserver/fortuneserver.cpp51
-rw-r--r--examples/network/threadedfortuneserver/fortuneserver.h51
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.cpp55
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.h55
-rw-r--r--examples/network/threadedfortuneserver/main.cpp51
-rw-r--r--examples/network/torrent/CMakeLists.txt33
-rw-r--r--examples/network/torrent/addtorrentdialog.cpp51
-rw-r--r--examples/network/torrent/addtorrentdialog.h51
-rw-r--r--examples/network/torrent/bencodeparser.cpp51
-rw-r--r--examples/network/torrent/bencodeparser.h51
-rw-r--r--examples/network/torrent/connectionmanager.cpp51
-rw-r--r--examples/network/torrent/connectionmanager.h51
-rw-r--r--examples/network/torrent/filemanager.cpp73
-rw-r--r--examples/network/torrent/filemanager.h83
-rw-r--r--examples/network/torrent/main.cpp51
-rw-r--r--examples/network/torrent/mainwindow.cpp57
-rw-r--r--examples/network/torrent/mainwindow.h51
-rw-r--r--examples/network/torrent/metainfo.cpp51
-rw-r--r--examples/network/torrent/metainfo.h53
-rw-r--r--examples/network/torrent/peerwireclient.cpp152
-rw-r--r--examples/network/torrent/peerwireclient.h59
-rw-r--r--examples/network/torrent/ratecontroller.cpp57
-rw-r--r--examples/network/torrent/ratecontroller.h51
-rw-r--r--examples/network/torrent/torrentclient.cpp141
-rw-r--r--examples/network/torrent/torrentclient.h54
-rw-r--r--examples/network/torrent/torrentserver.cpp53
-rw-r--r--examples/network/torrent/torrentserver.h51
-rw-r--r--examples/network/torrent/trackerclient.cpp65
-rw-r--r--examples/network/torrent/trackerclient.h52
-rw-r--r--examples/opengl/2dpainting/CMakeLists.txt33
-rw-r--r--examples/opengl/2dpainting/glwidget.cpp51
-rw-r--r--examples/opengl/2dpainting/glwidget.h51
-rw-r--r--examples/opengl/2dpainting/helper.cpp51
-rw-r--r--examples/opengl/2dpainting/helper.h51
-rw-r--r--examples/opengl/2dpainting/main.cpp51
-rw-r--r--examples/opengl/2dpainting/widget.cpp51
-rw-r--r--examples/opengl/2dpainting/widget.h51
-rw-r--r--examples/opengl/2dpainting/window.cpp51
-rw-r--r--examples/opengl/2dpainting/window.h51
-rw-r--r--examples/opengl/CMakeLists.txt14
-rw-r--r--examples/opengl/computegles31/CMakeLists.txt53
-rw-r--r--examples/opengl/computegles31/Qt-logo-medium.pngbin24817 -> 0 bytes
-rw-r--r--examples/opengl/computegles31/computegles31.pro11
-rw-r--r--examples/opengl/computegles31/computegles31.qrc5
-rw-r--r--examples/opengl/computegles31/glwindow.cpp419
-rw-r--r--examples/opengl/computegles31/glwindow.h110
-rw-r--r--examples/opengl/computegles31/main.cpp148
-rw-r--r--examples/opengl/contextinfo/CMakeLists.txt30
-rw-r--r--examples/opengl/contextinfo/main.cpp51
-rw-r--r--examples/opengl/contextinfo/renderwindow.cpp51
-rw-r--r--examples/opengl/contextinfo/renderwindow.h51
-rw-r--r--examples/opengl/contextinfo/widget.cpp57
-rw-r--r--examples/opengl/contextinfo/widget.h51
-rw-r--r--examples/opengl/cube/CMakeLists.txt35
-rw-r--r--examples/opengl/cube/cube.pngbin30341 -> 88913 bytes
-rw-r--r--examples/opengl/cube/geometryengine.cpp51
-rw-r--r--examples/opengl/cube/geometryengine.h51
-rw-r--r--examples/opengl/cube/main.cpp51
-rw-r--r--examples/opengl/cube/mainwidget.cpp68
-rw-r--r--examples/opengl/cube/mainwidget.h51
-rw-r--r--examples/opengl/doc/images/hellogles3-example.png (renamed from examples/opengl/hellogles3/doc/images/hellogles3-example.png)bin61792 -> 61792 bytes
-rw-r--r--examples/opengl/doc/images/stereoexample-leftbuffer.pngbin0 -> 9987 bytes
-rw-r--r--examples/opengl/doc/images/stereoexample-rightbuffer.pngbin0 -> 10002 bytes
-rw-r--r--examples/opengl/doc/src/2dpainting.qdoc28
-rw-r--r--examples/opengl/doc/src/cube.qdoc38
-rw-r--r--examples/opengl/doc/src/hellogl2.qdoc28
-rw-r--r--examples/opengl/doc/src/hellogles3.qdoc147
-rw-r--r--examples/opengl/doc/src/openglwindow.qdoc30
-rw-r--r--examples/opengl/doc/src/stereoqopenglwidget.qdoc41
-rw-r--r--examples/opengl/doc/src/textures.qdoc28
-rw-r--r--examples/opengl/hellogl2/CMakeLists.txt33
-rw-r--r--examples/opengl/hellogl2/glwidget.cpp52
-rw-r--r--examples/opengl/hellogl2/glwidget.h51
-rw-r--r--examples/opengl/hellogl2/logo.cpp51
-rw-r--r--examples/opengl/hellogl2/logo.h51
-rw-r--r--examples/opengl/hellogl2/main.cpp51
-rw-r--r--examples/opengl/hellogl2/mainwindow.cpp51
-rw-r--r--examples/opengl/hellogl2/mainwindow.h51
-rw-r--r--examples/opengl/hellogl2/window.cpp51
-rw-r--r--examples/opengl/hellogl2/window.h57
-rw-r--r--examples/opengl/hellogles3/CMakeLists.txt30
-rw-r--r--examples/opengl/hellogles3/doc/src/hellogles3.qdoc46
-rw-r--r--examples/opengl/hellogles3/glwindow.cpp51
-rw-r--r--examples/opengl/hellogles3/glwindow.h63
-rw-r--r--examples/opengl/hellogles3/main.cpp51
-rw-r--r--examples/opengl/hellowindow/CMakeLists.txt42
-rw-r--r--examples/opengl/hellowindow/hellowindow.cpp352
-rw-r--r--examples/opengl/hellowindow/hellowindow.h119
-rw-r--r--examples/opengl/hellowindow/hellowindow.pro9
-rw-r--r--examples/opengl/hellowindow/main.cpp172
-rw-r--r--examples/opengl/opengl.pro11
-rw-r--r--examples/opengl/openglwindow/CMakeLists.txt29
-rw-r--r--examples/opengl/openglwindow/main.cpp51
-rw-r--r--examples/opengl/openglwindow/openglwindow.cpp51
-rw-r--r--examples/opengl/openglwindow/openglwindow.h63
-rw-r--r--examples/opengl/paintedwindow/CMakeLists.txt40
-rw-r--r--examples/opengl/paintedwindow/main.cpp65
-rw-r--r--examples/opengl/paintedwindow/paintedwindow.cpp232
-rw-r--r--examples/opengl/paintedwindow/paintedwindow.h104
-rw-r--r--examples/opengl/paintedwindow/paintedwindow.pro8
-rw-r--r--examples/opengl/qopenglwidget/CMakeLists.txt59
-rw-r--r--examples/opengl/qopenglwidget/bubble.cpp146
-rw-r--r--examples/opengl/qopenglwidget/bubble.h86
-rw-r--r--examples/opengl/qopenglwidget/glwidget.cpp560
-rw-r--r--examples/opengl/qopenglwidget/glwidget.h133
-rw-r--r--examples/opengl/qopenglwidget/main.cpp89
-rw-r--r--examples/opengl/qopenglwidget/mainwindow.cpp187
-rw-r--r--examples/opengl/qopenglwidget/mainwindow.h83
-rw-r--r--examples/opengl/qopenglwidget/qopenglwidget.pro15
-rw-r--r--examples/opengl/qopenglwidget/qt.pngbin2991 -> 0 bytes
-rw-r--r--examples/opengl/qopenglwidget/texture.qrc5
-rw-r--r--examples/opengl/qopenglwindow/CMakeLists.txt57
-rw-r--r--examples/opengl/qopenglwindow/background.frag30
-rw-r--r--examples/opengl/qopenglwindow/background_renderer.cpp214
-rw-r--r--examples/opengl/qopenglwindow/background_renderer.h93
-rw-r--r--examples/opengl/qopenglwindow/main.cpp201
-rw-r--r--examples/opengl/qopenglwindow/qopenglwindow.pro16
-rw-r--r--examples/opengl/qopenglwindow/shaders.qrc5
-rw-r--r--examples/opengl/stereoqopenglwidget/CMakeLists.txt41
-rw-r--r--examples/opengl/stereoqopenglwidget/glwidget.cpp277
-rw-r--r--examples/opengl/stereoqopenglwidget/glwidget.h53
-rw-r--r--examples/opengl/stereoqopenglwidget/main.cpp31
-rw-r--r--examples/opengl/stereoqopenglwidget/mainwindow.cpp25
-rw-r--r--examples/opengl/stereoqopenglwidget/mainwindow.h21
-rw-r--r--examples/opengl/stereoqopenglwidget/stereoqopenglwidget.pro (renamed from examples/opengl/threadedqopenglwidget/threadedqopenglwidget.pro)2
-rw-r--r--examples/opengl/textures/CMakeLists.txt34
-rw-r--r--examples/opengl/textures/glwidget.cpp59
-rw-r--r--examples/opengl/textures/glwidget.h51
-rw-r--r--examples/opengl/textures/main.cpp51
-rw-r--r--examples/opengl/textures/window.cpp51
-rw-r--r--examples/opengl/textures/window.h51
-rw-r--r--examples/opengl/threadedqopenglwidget/CMakeLists.txt45
-rw-r--r--examples/opengl/threadedqopenglwidget/glwidget.cpp367
-rw-r--r--examples/opengl/threadedqopenglwidget/glwidget.h136
-rw-r--r--examples/opengl/threadedqopenglwidget/main.cpp131
-rw-r--r--examples/opengl/threadedqopenglwidget/mainwindow.cpp63
-rw-r--r--examples/opengl/threadedqopenglwidget/mainwindow.h64
-rw-r--r--examples/qmake/precompile/main.cpp54
-rw-r--r--examples/qmake/precompile/mydialog.cpp51
-rw-r--r--examples/qmake/precompile/mydialog.h51
-rw-r--r--examples/qmake/precompile/myobject.cpp51
-rw-r--r--examples/qmake/precompile/myobject.h51
-rw-r--r--examples/qmake/precompile/stable.h51
-rw-r--r--examples/qmake/precompile/util.cpp51
-rw-r--r--examples/qmake/tutorial/hello.cpp51
-rw-r--r--examples/qmake/tutorial/hello.h51
-rw-r--r--examples/qmake/tutorial/hellounix.cpp51
-rw-r--r--examples/qmake/tutorial/hellowin.cpp51
-rw-r--r--examples/qmake/tutorial/main.cpp51
-rw-r--r--examples/qpa/CMakeLists.txt5
-rw-r--r--examples/qpa/qrasterwindow/CMakeLists.txt24
-rw-r--r--examples/qpa/qrasterwindow/main.cpp53
-rw-r--r--examples/qpa/windows/CMakeLists.txt28
-rw-r--r--examples/qpa/windows/main.cpp51
-rw-r--r--examples/qpa/windows/window.cpp51
-rw-r--r--examples/qpa/windows/window.h56
-rw-r--r--examples/qtconcurrent/CMakeLists.txt13
-rw-r--r--examples/qtconcurrent/imagescaling/CMakeLists.txt33
-rw-r--r--examples/qtconcurrent/imagescaling/doc/images/imagescaling.webpbin0 -> 46826 bytes
-rw-r--r--examples/qtconcurrent/imagescaling/doc/images/imagescaling_example.pngbin21049 -> 0 bytes
-rw-r--r--examples/qtconcurrent/imagescaling/doc/src/qtconcurrent-imagescaling.qdoc141
-rw-r--r--examples/qtconcurrent/imagescaling/downloaddialog.cpp51
-rw-r--r--examples/qtconcurrent/imagescaling/downloaddialog.h51
-rw-r--r--examples/qtconcurrent/imagescaling/imagescaling.cpp150
-rw-r--r--examples/qtconcurrent/imagescaling/imagescaling.h62
-rw-r--r--examples/qtconcurrent/imagescaling/main.cpp58
-rw-r--r--examples/qtconcurrent/map/CMakeLists.txt38
-rw-r--r--examples/qtconcurrent/map/doc/src/qtconcurrent-map.qdoc38
-rw-r--r--examples/qtconcurrent/map/main.cpp82
-rw-r--r--examples/qtconcurrent/map/map.pro9
-rw-r--r--examples/qtconcurrent/primecounter/CMakeLists.txt40
-rw-r--r--examples/qtconcurrent/primecounter/doc/images/primecounter.pngbin0 -> 9732 bytes
-rw-r--r--examples/qtconcurrent/primecounter/doc/src/qtconcurrent-primecounter.qdoc88
-rw-r--r--examples/qtconcurrent/primecounter/main.cpp18
-rw-r--r--examples/qtconcurrent/primecounter/primecounter.cpp139
-rw-r--r--examples/qtconcurrent/primecounter/primecounter.h49
-rw-r--r--examples/qtconcurrent/primecounter/primecounter.pro9
-rw-r--r--examples/qtconcurrent/primecounter/primecounter.ui177
-rw-r--r--examples/qtconcurrent/progressdialog/CMakeLists.txt41
-rw-r--r--examples/qtconcurrent/progressdialog/doc/images/qtconcurrent-progressdialog.pngbin4608 -> 0 bytes
-rw-r--r--examples/qtconcurrent/progressdialog/doc/src/qtconcurrent-progressdialog.qdoc38
-rw-r--r--examples/qtconcurrent/progressdialog/main.cpp100
-rw-r--r--examples/qtconcurrent/progressdialog/progressdialog.pro7
-rw-r--r--examples/qtconcurrent/qtconcurrent.pro13
-rw-r--r--examples/qtconcurrent/runfunction/CMakeLists.txt41
-rw-r--r--examples/qtconcurrent/runfunction/doc/src/qtconcurrent-runfunction.qdoc39
-rw-r--r--examples/qtconcurrent/runfunction/main.cpp71
-rw-r--r--examples/qtconcurrent/runfunction/runfunction.pro7
-rw-r--r--examples/qtconcurrent/wordcount/CMakeLists.txt33
-rw-r--r--examples/qtconcurrent/wordcount/doc/src/qtconcurrent-wordcount.qdoc69
-rw-r--r--examples/qtconcurrent/wordcount/main.cpp195
-rw-r--r--examples/qtestlib/CMakeLists.txt5
-rw-r--r--examples/qtestlib/tutorial1/CMakeLists.txt30
-rw-r--r--examples/qtestlib/tutorial1/testqstring.cpp51
-rw-r--r--examples/qtestlib/tutorial2/CMakeLists.txt30
-rw-r--r--examples/qtestlib/tutorial2/testqstring.cpp55
-rw-r--r--examples/qtestlib/tutorial3/CMakeLists.txt30
-rw-r--r--examples/qtestlib/tutorial3/testgui.cpp51
-rw-r--r--examples/qtestlib/tutorial4/CMakeLists.txt30
-rw-r--r--examples/qtestlib/tutorial4/testgui.cpp53
-rw-r--r--examples/qtestlib/tutorial5/CMakeLists.txt30
-rw-r--r--examples/qtestlib/tutorial5/benchmarking.cpp60
-rw-r--r--examples/sql/CMakeLists.txt9
-rw-r--r--examples/sql/books/CMakeLists.txt35
-rw-r--r--examples/sql/books/bookdelegate.cpp51
-rw-r--r--examples/sql/books/bookdelegate.h51
-rw-r--r--examples/sql/books/bookwindow.cpp53
-rw-r--r--examples/sql/books/bookwindow.h51
-rw-r--r--examples/sql/books/initdb.h51
-rw-r--r--examples/sql/books/main.cpp51
-rw-r--r--examples/sql/cachedtable/CMakeLists.txt30
-rw-r--r--examples/sql/cachedtable/main.cpp51
-rw-r--r--examples/sql/cachedtable/tableeditor.cpp51
-rw-r--r--examples/sql/cachedtable/tableeditor.h51
-rw-r--r--examples/sql/connection.h51
-rw-r--r--examples/sql/doc/src/books.qdoc28
-rw-r--r--examples/sql/doc/src/cachedtable.qdoc35
-rw-r--r--examples/sql/doc/src/drilldown.qdoc30
-rw-r--r--examples/sql/doc/src/masterdetail.qdoc28
-rw-r--r--examples/sql/doc/src/querymodel.qdoc28
-rw-r--r--examples/sql/doc/src/relationaltablemodel.qdoc28
-rw-r--r--examples/sql/doc/src/sqlbrowser.qdoc28
-rw-r--r--examples/sql/doc/src/sqlwidgetmapper.qdoc28
-rw-r--r--examples/sql/doc/src/tablemodel.qdoc28
-rw-r--r--examples/sql/drilldown/CMakeLists.txt33
-rw-r--r--examples/sql/drilldown/imageitem.cpp51
-rw-r--r--examples/sql/drilldown/imageitem.h51
-rw-r--r--examples/sql/drilldown/informationwindow.cpp51
-rw-r--r--examples/sql/drilldown/informationwindow.h51
-rw-r--r--examples/sql/drilldown/main.cpp51
-rw-r--r--examples/sql/drilldown/view.cpp51
-rw-r--r--examples/sql/drilldown/view.h51
-rw-r--r--examples/sql/masterdetail/CMakeLists.txt36
-rw-r--r--examples/sql/masterdetail/database.h51
-rw-r--r--examples/sql/masterdetail/dialog.cpp51
-rw-r--r--examples/sql/masterdetail/dialog.h51
-rw-r--r--examples/sql/masterdetail/main.cpp51
-rw-r--r--examples/sql/masterdetail/mainwindow.cpp53
-rw-r--r--examples/sql/masterdetail/mainwindow.h51
-rw-r--r--examples/sql/querymodel/CMakeLists.txt30
-rw-r--r--examples/sql/querymodel/customsqlmodel.cpp51
-rw-r--r--examples/sql/querymodel/customsqlmodel.h51
-rw-r--r--examples/sql/querymodel/editablesqlmodel.cpp51
-rw-r--r--examples/sql/querymodel/editablesqlmodel.h51
-rw-r--r--examples/sql/querymodel/main.cpp51
-rw-r--r--examples/sql/relationaltablemodel/CMakeLists.txt30
-rw-r--r--examples/sql/relationaltablemodel/relationaltablemodel.cpp51
-rw-r--r--examples/sql/sqlbrowser/CMakeLists.txt28
-rw-r--r--examples/sql/sqlbrowser/browser.cpp51
-rw-r--r--examples/sql/sqlbrowser/browser.h51
-rw-r--r--examples/sql/sqlbrowser/connectionwidget.cpp51
-rw-r--r--examples/sql/sqlbrowser/connectionwidget.h51
-rw-r--r--examples/sql/sqlbrowser/main.cpp51
-rw-r--r--examples/sql/sqlbrowser/qsqlconnectiondialog.cpp51
-rw-r--r--examples/sql/sqlbrowser/qsqlconnectiondialog.h51
-rw-r--r--examples/sql/sqlwidgetmapper/CMakeLists.txt30
-rw-r--r--examples/sql/sqlwidgetmapper/main.cpp51
-rw-r--r--examples/sql/sqlwidgetmapper/window.cpp51
-rw-r--r--examples/sql/sqlwidgetmapper/window.h51
-rw-r--r--examples/sql/tablemodel/CMakeLists.txt30
-rw-r--r--examples/sql/tablemodel/tablemodel.cpp51
-rw-r--r--examples/vulkan/CMakeLists.txt9
-rw-r--r--examples/vulkan/doc/images/hellovulkantexture.pngbin10259 -> 0 bytes
-rw-r--r--examples/vulkan/doc/images/hellovulkanwindow.pngbin2736 -> 0 bytes
-rw-r--r--examples/vulkan/doc/src/hellovulkancubes.qdoc28
-rw-r--r--examples/vulkan/doc/src/hellovulkantexture.qdoc42
-rw-r--r--examples/vulkan/doc/src/hellovulkantriangle.qdoc76
-rw-r--r--examples/vulkan/doc/src/hellovulkanwidget.qdoc28
-rw-r--r--examples/vulkan/doc/src/hellovulkanwindow.qdoc102
-rw-r--r--examples/vulkan/hellovulkancubes/CMakeLists.txt33
-rw-r--r--examples/vulkan/hellovulkancubes/camera.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/camera.h51
-rw-r--r--examples/vulkan/hellovulkancubes/main.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/mainwindow.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/mainwindow.h61
-rw-r--r--examples/vulkan/hellovulkancubes/mesh.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/mesh.h51
-rw-r--r--examples/vulkan/hellovulkancubes/renderer.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/renderer.h51
-rw-r--r--examples/vulkan/hellovulkancubes/shader.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/shader.h51
-rw-r--r--examples/vulkan/hellovulkancubes/vulkanwindow.cpp51
-rw-r--r--examples/vulkan/hellovulkancubes/vulkanwindow.h51
-rw-r--r--examples/vulkan/hellovulkantexture/CMakeLists.txt53
-rw-r--r--examples/vulkan/hellovulkantexture/hellovulkantexture.cpp839
-rw-r--r--examples/vulkan/hellovulkantexture/hellovulkantexture.h108
-rw-r--r--examples/vulkan/hellovulkantexture/hellovulkantexture.pro7
-rw-r--r--examples/vulkan/hellovulkantexture/hellovulkantexture.qrc7
-rw-r--r--examples/vulkan/hellovulkantexture/main.cpp79
-rw-r--r--examples/vulkan/hellovulkantexture/qt256.pngbin6208 -> 0 bytes
-rw-r--r--examples/vulkan/hellovulkantexture/texture.frag12
-rw-r--r--examples/vulkan/hellovulkantexture/texture.vert18
-rw-r--r--examples/vulkan/hellovulkantexture/texture_frag.spvbin556 -> 0 bytes
-rw-r--r--examples/vulkan/hellovulkantexture/texture_vert.spvbin968 -> 0 bytes
-rw-r--r--examples/vulkan/hellovulkantriangle/CMakeLists.txt29
-rw-r--r--examples/vulkan/hellovulkantriangle/main.cpp58
-rw-r--r--examples/vulkan/hellovulkanwidget/CMakeLists.txt32
-rw-r--r--examples/vulkan/hellovulkanwidget/hellovulkanwidget.cpp51
-rw-r--r--examples/vulkan/hellovulkanwidget/hellovulkanwidget.h66
-rw-r--r--examples/vulkan/hellovulkanwidget/main.cpp51
-rw-r--r--examples/vulkan/hellovulkanwindow/CMakeLists.txt38
-rw-r--r--examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp128
-rw-r--r--examples/vulkan/hellovulkanwindow/hellovulkanwindow.h77
-rw-r--r--examples/vulkan/hellovulkanwindow/hellovulkanwindow.pro6
-rw-r--r--examples/vulkan/hellovulkanwindow/main.cpp80
-rw-r--r--examples/vulkan/shared/objconvert.js51
-rw-r--r--examples/vulkan/shared/trianglerenderer.cpp51
-rw-r--r--examples/vulkan/shared/trianglerenderer.h56
-rw-r--r--examples/vulkan/vulkan.pro4
-rw-r--r--examples/widgets/CMakeLists.txt9
-rw-r--r--examples/widgets/animation/CMakeLists.txt2
-rw-r--r--examples/widgets/animation/easing/CMakeLists.txt30
-rw-r--r--examples/widgets/animation/easing/animation.h55
-rw-r--r--examples/widgets/animation/easing/main.cpp51
-rw-r--r--examples/widgets/animation/easing/window.cpp69
-rw-r--r--examples/widgets/animation/easing/window.h56
-rw-r--r--examples/widgets/desktop/CMakeLists.txt2
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt27
-rw-r--r--examples/widgets/desktop/screenshot/main.cpp51
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.cpp53
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.h51
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt30
-rw-r--r--examples/widgets/desktop/systray/doc/src/systray.qdoc28
-rw-r--r--examples/widgets/desktop/systray/main.cpp51
-rw-r--r--examples/widgets/desktop/systray/window.cpp51
-rw-r--r--examples/widgets/desktop/systray/window.h51
-rw-r--r--examples/widgets/dialogs/CMakeLists.txt12
-rw-r--r--examples/widgets/dialogs/classwizard/CMakeLists.txt59
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.cpp441
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.h166
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.pro10
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.qrc11
-rw-r--r--examples/widgets/dialogs/classwizard/images/background.pngbin22578 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/banner.pngbin3947 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo1.pngbin1619 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo2.pngbin1619 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/logo3.pngbin1619 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/watermark1.pngbin14516 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/images/watermark2.pngbin14912 -> 0 bytes
-rw-r--r--examples/widgets/dialogs/classwizard/main.cpp75
-rw-r--r--examples/widgets/dialogs/dialogs.pro5
-rw-r--r--examples/widgets/dialogs/extension/CMakeLists.txt40
-rw-r--r--examples/widgets/dialogs/extension/extension.pro9
-rw-r--r--examples/widgets/dialogs/extension/finddialog.cpp124
-rw-r--r--examples/widgets/dialogs/extension/finddialog.h88
-rw-r--r--examples/widgets/dialogs/extension/main.cpp63
-rw-r--r--examples/widgets/dialogs/findfiles/CMakeLists.txt40
-rw-r--r--examples/widgets/dialogs/findfiles/findfiles.pro10
-rw-r--r--examples/widgets/dialogs/findfiles/main.cpp61
-rw-r--r--examples/widgets/dialogs/findfiles/window.cpp311
-rw-r--r--examples/widgets/dialogs/findfiles/window.h97
-rw-r--r--examples/widgets/dialogs/licensewizard/CMakeLists.txt33
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.cpp56
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.h51
-rw-r--r--examples/widgets/dialogs/licensewizard/main.cpp51
-rw-r--r--examples/widgets/dialogs/standarddialogs/CMakeLists.txt27
-rw-r--r--examples/widgets/dialogs/standarddialogs/dialog.cpp125
-rw-r--r--examples/widgets/dialogs/standarddialogs/dialog.h52
-rw-r--r--examples/widgets/dialogs/standarddialogs/main.cpp55
-rw-r--r--examples/widgets/dialogs/standarddialogs/main.mm47
-rw-r--r--examples/widgets/dialogs/tabdialog/CMakeLists.txt27
-rw-r--r--examples/widgets/dialogs/tabdialog/main.cpp51
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.cpp51
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.h51
-rw-r--r--examples/widgets/dialogs/trivialwizard/CMakeLists.txt27
-rw-r--r--examples/widgets/dialogs/trivialwizard/trivialwizard.cpp53
-rw-r--r--examples/widgets/doc/dropsite.qdoc32
-rw-r--r--examples/widgets/doc/images/graphicsanchorlayout-example.pngbin24372 -> 0 bytes
-rw-r--r--examples/widgets/doc/images/mousebutton-buttontester.pngbin17428 -> 0 bytes
-rw-r--r--examples/widgets/doc/images/notepad1.pngbin12418 -> 11747 bytes
-rw-r--r--examples/widgets/doc/images/notepad2.pngbin22700 -> 26246 bytes
-rw-r--r--examples/widgets/doc/images/notepad3.pngbin40584 -> 21002 bytes
-rw-r--r--examples/widgets/doc/images/stylepluginexample.pngbin5259 -> 15331 bytes
-rw-r--r--examples/widgets/doc/images/undodemo.pngbin84941 -> 0 bytes
-rw-r--r--examples/widgets/doc/images/weatheranchorlayout-example.pngbin88805 -> 0 bytes
-rw-r--r--examples/widgets/doc/mousebuttons.qdoc94
-rw-r--r--examples/widgets/doc/src/addressbook-tutorial.qdoc972
-rw-r--r--examples/widgets/doc/src/addressbook.qdoc46
-rw-r--r--examples/widgets/doc/src/affine.qdoc28
-rw-r--r--examples/widgets/doc/src/analogclock.qdoc33
-rw-r--r--examples/widgets/doc/src/application.qdoc395
-rw-r--r--examples/widgets/doc/src/basicdrawing.qdoc28
-rw-r--r--examples/widgets/doc/src/basicgraphicslayouts.qdoc28
-rw-r--r--examples/widgets/doc/src/basiclayouts.qdoc28
-rw-r--r--examples/widgets/doc/src/basicsortfiltermodel.qdoc28
-rw-r--r--examples/widgets/doc/src/blurpicker.qdoc44
-rw-r--r--examples/widgets/doc/src/borderlayout.qdoc28
-rw-r--r--examples/widgets/doc/src/calculator.qdoc28
-rw-r--r--examples/widgets/doc/src/calendar.qdoc28
-rw-r--r--examples/widgets/doc/src/calendarwidget.qdoc28
-rw-r--r--examples/widgets/doc/src/charactermap.qdoc30
-rw-r--r--examples/widgets/doc/src/chart.qdoc28
-rw-r--r--examples/widgets/doc/src/chip.qdoc28
-rw-r--r--examples/widgets/doc/src/classwizard.qdoc191
-rw-r--r--examples/widgets/doc/src/codeeditor.qdoc197
-rw-r--r--examples/widgets/doc/src/collidingmice-example.qdoc30
-rw-r--r--examples/widgets/doc/src/coloreditorfactory.qdoc28
-rw-r--r--examples/widgets/doc/src/combowidgetmapper.qdoc28
-rw-r--r--examples/widgets/doc/src/completer.qdoc28
-rw-r--r--examples/widgets/doc/src/composition.qdoc28
-rw-r--r--examples/widgets/doc/src/concentriccircles.qdoc28
-rw-r--r--examples/widgets/doc/src/customsortfiltermodel.qdoc28
-rw-r--r--examples/widgets/doc/src/deform.qdoc28
-rw-r--r--examples/widgets/doc/src/diagramscene.qdoc30
-rw-r--r--examples/widgets/doc/src/digitalclock.qdoc28
-rw-r--r--examples/widgets/doc/src/dirview.qdoc28
-rw-r--r--examples/widgets/doc/src/dockwidgets.qdoc28
-rw-r--r--examples/widgets/doc/src/draganddroppuzzle.qdoc28
-rw-r--r--examples/widgets/doc/src/dragdroprobot.qdoc30
-rw-r--r--examples/widgets/doc/src/draggableicons.qdoc28
-rw-r--r--examples/widgets/doc/src/draggabletext.qdoc28
-rw-r--r--examples/widgets/doc/src/dynamiclayouts.qdoc28
-rw-r--r--examples/widgets/doc/src/easing.qdoc28
-rw-r--r--examples/widgets/doc/src/echoplugin.qdoc28
-rw-r--r--examples/widgets/doc/src/editabletreemodel.qdoc30
-rw-r--r--examples/widgets/doc/src/elasticnodes.qdoc32
-rw-r--r--examples/widgets/doc/src/elidedlabel.qdoc155
-rw-r--r--examples/widgets/doc/src/embeddeddialogs.qdoc28
-rw-r--r--examples/widgets/doc/src/extension.qdoc145
-rw-r--r--examples/widgets/doc/src/fademessage.qdoc28
-rw-r--r--examples/widgets/doc/src/fetchmore.qdoc28
-rw-r--r--examples/widgets/doc/src/findfiles.qdoc293
-rw-r--r--examples/widgets/doc/src/flowlayout.qdoc28
-rw-r--r--examples/widgets/doc/src/fontsampler.qdoc28
-rw-r--r--examples/widgets/doc/src/fridgemagnets.qdoc32
-rw-r--r--examples/widgets/doc/src/frozencolumn.qdoc30
-rw-r--r--examples/widgets/doc/src/gallery.qdoc28
-rw-r--r--examples/widgets/doc/src/gradients.qdoc28
-rw-r--r--examples/widgets/doc/src/graphicsview-anchorlayout.qdoc81
-rw-r--r--examples/widgets/doc/src/graphicsview-flowlayout.qdoc28
-rw-r--r--examples/widgets/doc/src/graphicsview-simpleanchorlayout.qdoc30
-rw-r--r--examples/widgets/doc/src/graphicsview-weatheranchorlayout.qdoc38
-rw-r--r--examples/widgets/doc/src/groupbox.qdoc28
-rw-r--r--examples/widgets/doc/src/i18n.qdoc40
-rw-r--r--examples/widgets/doc/src/icons.qdoc28
-rw-r--r--examples/widgets/doc/src/imagecomposition.qdoc28
-rw-r--r--examples/widgets/doc/src/imageviewer.qdoc32
-rw-r--r--examples/widgets/doc/src/interview.qdoc28
-rw-r--r--examples/widgets/doc/src/itemviewspuzzle.qdoc28
-rw-r--r--examples/widgets/doc/src/licensewizard.qdoc32
-rw-r--r--examples/widgets/doc/src/lineedits.qdoc28
-rw-r--r--examples/widgets/doc/src/mainwindow.qdoc28
-rw-r--r--examples/widgets/doc/src/mdi.qdoc28
-rw-r--r--examples/widgets/doc/src/menus.qdoc28
-rw-r--r--examples/widgets/doc/src/movie.qdoc28
-rw-r--r--examples/widgets/doc/src/orderform.qdoc28
-rw-r--r--examples/widgets/doc/src/painterpaths.qdoc28
-rw-r--r--examples/widgets/doc/src/pathstroke.qdoc28
-rw-r--r--examples/widgets/doc/src/pixelator.qdoc28
-rw-r--r--examples/widgets/doc/src/plugandpaint.qdoc28
-rw-r--r--examples/widgets/doc/src/regularexpression.qdoc28
-rw-r--r--examples/widgets/doc/src/screenshot.qdoc30
-rw-r--r--examples/widgets/doc/src/scribble.qdoc28
-rw-r--r--examples/widgets/doc/src/sdi.qdoc37
-rw-r--r--examples/widgets/doc/src/settingseditor.qdoc28
-rw-r--r--examples/widgets/doc/src/shapedclock.qdoc103
-rw-r--r--examples/widgets/doc/src/shortcuteditor.qdoc230
-rw-r--r--examples/widgets/doc/src/simpledommodel.qdoc28
-rw-r--r--examples/widgets/doc/src/simpletreemodel.qdoc28
-rw-r--r--examples/widgets/doc/src/simplewidgetmapper.qdoc28
-rw-r--r--examples/widgets/doc/src/sliders.qdoc28
-rw-r--r--examples/widgets/doc/src/spinboxdelegate.qdoc28
-rw-r--r--examples/widgets/doc/src/spinboxes.qdoc28
-rw-r--r--examples/widgets/doc/src/spreadsheet.qdoc28
-rw-r--r--examples/widgets/doc/src/standarddialogs.qdoc28
-rw-r--r--examples/widgets/doc/src/stardelegate.qdoc28
-rw-r--r--examples/widgets/doc/src/styleplugin.qdoc79
-rw-r--r--examples/widgets/doc/src/styles.qdoc30
-rw-r--r--examples/widgets/doc/src/stylesheet.qdoc28
-rw-r--r--examples/widgets/doc/src/syntaxhighlighter.qdoc34
-rw-r--r--examples/widgets/doc/src/tabdialog.qdoc28
-rw-r--r--examples/widgets/doc/src/tablet.qdoc30
-rw-r--r--examples/widgets/doc/src/tetrix.qdoc28
-rw-r--r--examples/widgets/doc/src/textedit.qdoc28
-rw-r--r--examples/widgets/doc/src/tooltips.qdoc46
-rw-r--r--examples/widgets/doc/src/transformations.qdoc42
-rw-r--r--examples/widgets/doc/src/treemodelcompleter.qdoc28
-rw-r--r--examples/widgets/doc/src/trivialwizard.qdoc30
-rw-r--r--examples/widgets/doc/src/undo.qdoc44
-rw-r--r--examples/widgets/doc/src/undoframework.qdoc69
-rw-r--r--examples/widgets/doc/src/validators.qdoc28
-rw-r--r--examples/widgets/doc/src/wiggly.qdoc168
-rw-r--r--examples/widgets/doc/src/windowflags.qdoc28
-rw-r--r--examples/widgets/draganddrop/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/draggableicons/CMakeLists.txt30
-rw-r--r--examples/widgets/draganddrop/draggableicons/dragwidget.cpp53
-rw-r--r--examples/widgets/draganddrop/draggableicons/dragwidget.h51
-rw-r--r--examples/widgets/draganddrop/draggableicons/main.cpp51
-rw-r--r--examples/widgets/draganddrop/draggabletext/CMakeLists.txt30
-rw-r--r--examples/widgets/draganddrop/draggabletext/dragwidget.cpp51
-rw-r--r--examples/widgets/draganddrop/draggabletext/dragwidget.h51
-rw-r--r--examples/widgets/draganddrop/draggabletext/main.cpp51
-rw-r--r--examples/widgets/draganddrop/dropsite/CMakeLists.txt27
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.cpp61
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.h54
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsitewindow.cpp93
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsitewindow.h51
-rw-r--r--examples/widgets/draganddrop/dropsite/main.cpp51
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt30
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/draglabel.cpp51
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/draglabel.h51
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp53
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/dragwidget.h51
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/main.cpp51
-rw-r--r--examples/widgets/draganddrop/puzzle/CMakeLists.txt38
-rw-r--r--examples/widgets/draganddrop/puzzle/main.cpp51
-rw-r--r--examples/widgets/draganddrop/puzzle/mainwindow.cpp51
-rw-r--r--examples/widgets/draganddrop/puzzle/mainwindow.h51
-rw-r--r--examples/widgets/draganddrop/puzzle/pieceslist.cpp51
-rw-r--r--examples/widgets/draganddrop/puzzle/pieceslist.h51
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzlewidget.cpp51
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzlewidget.h51
-rw-r--r--examples/widgets/effects/CMakeLists.txt3
-rw-r--r--examples/widgets/effects/blurpicker/CMakeLists.txt62
-rw-r--r--examples/widgets/effects/blurpicker/blureffect.cpp78
-rw-r--r--examples/widgets/effects/blurpicker/blureffect.h76
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.cpp169
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.h85
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.pro9
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.qrc14
-rw-r--r--examples/widgets/effects/blurpicker/images/README.txt5
-rw-r--r--examples/widgets/effects/blurpicker/images/accessories-calculator.pngbin3760 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/accessories-text-editor.pngbin4746 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/background.jpgbin16259 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/help-browser.pngbin5392 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-group-chat.pngbin2809 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-mail.pngbin3899 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/internet-web-browser.pngbin6376 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/office-calendar.pngbin4010 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/images/system-users.pngbin5353 -> 0 bytes
-rw-r--r--examples/widgets/effects/blurpicker/main.cpp65
-rw-r--r--examples/widgets/effects/effects.pro1
-rw-r--r--examples/widgets/effects/fademessage/CMakeLists.txt30
-rw-r--r--examples/widgets/effects/fademessage/fademessage.cpp51
-rw-r--r--examples/widgets/effects/fademessage/fademessage.h51
-rw-r--r--examples/widgets/effects/fademessage/main.cpp51
-rw-r--r--examples/widgets/gallery/CMakeLists.txt27
-rw-r--r--examples/widgets/gallery/main.cpp51
-rw-r--r--examples/widgets/gallery/widgetgallery.cpp51
-rw-r--r--examples/widgets/gallery/widgetgallery.h51
-rw-r--r--examples/widgets/gestures/CMakeLists.txt5
-rw-r--r--examples/widgets/gestures/imagegestures/CMakeLists.txt27
-rw-r--r--examples/widgets/gestures/imagegestures/doc/src/imagegestures.qdoc28
-rw-r--r--examples/widgets/gestures/imagegestures/imagewidget.cpp51
-rw-r--r--examples/widgets/gestures/imagegestures/imagewidget.h51
-rw-r--r--examples/widgets/gestures/imagegestures/main.cpp51
-rw-r--r--examples/widgets/gestures/imagegestures/mainwidget.cpp51
-rw-r--r--examples/widgets/gestures/imagegestures/mainwidget.h51
-rw-r--r--examples/widgets/graphicsview/CMakeLists.txt5
-rw-r--r--examples/widgets/graphicsview/anchorlayout/CMakeLists.txt39
-rw-r--r--examples/widgets/graphicsview/anchorlayout/anchorlayout.pro9
-rw-r--r--examples/widgets/graphicsview/anchorlayout/main.cpp136
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.cpp51
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/layoutitem.h51
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/main.cpp51
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/window.cpp51
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/window.h51
-rw-r--r--examples/widgets/graphicsview/chip/CMakeLists.txt41
-rw-r--r--examples/widgets/graphicsview/chip/chip.cpp51
-rw-r--r--examples/widgets/graphicsview/chip/chip.h51
-rw-r--r--examples/widgets/graphicsview/chip/main.cpp51
-rw-r--r--examples/widgets/graphicsview/chip/mainwindow.cpp54
-rw-r--r--examples/widgets/graphicsview/chip/mainwindow.h51
-rw-r--r--examples/widgets/graphicsview/chip/view.cpp69
-rw-r--r--examples/widgets/graphicsview/chip/view.h57
-rw-r--r--examples/widgets/graphicsview/collidingmice/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/collidingmice/main.cpp51
-rw-r--r--examples/widgets/graphicsview/collidingmice/mouse.cpp51
-rw-r--r--examples/widgets/graphicsview/collidingmice/mouse.h51
-rw-r--r--examples/widgets/graphicsview/diagramscene/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/diagramscene/arrow.cpp51
-rw-r--r--examples/widgets/graphicsview/diagramscene/arrow.h51
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramitem.cpp55
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramitem.h51
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.cpp51
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.h51
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramtextitem.cpp51
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramtextitem.h51
-rw-r--r--examples/widgets/graphicsview/diagramscene/main.cpp51
-rw-r--r--examples/widgets/graphicsview/diagramscene/mainwindow.cpp66
-rw-r--r--examples/widgets/graphicsview/diagramscene/mainwindow.h55
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/coloritem.cpp51
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/coloritem.h51
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/main.cpp51
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/robot.cpp51
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/robot.h51
-rw-r--r--examples/widgets/graphicsview/elasticnodes/CMakeLists.txt27
-rw-r--r--examples/widgets/graphicsview/elasticnodes/edge.cpp51
-rw-r--r--examples/widgets/graphicsview/elasticnodes/edge.h51
-rw-r--r--examples/widgets/graphicsview/elasticnodes/graphwidget.cpp55
-rw-r--r--examples/widgets/graphicsview/elasticnodes/graphwidget.h51
-rw-r--r--examples/widgets/graphicsview/elasticnodes/main.cpp51
-rw-r--r--examples/widgets/graphicsview/elasticnodes/node.cpp55
-rw-r--r--examples/widgets/graphicsview/elasticnodes/node.h51
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/customproxy.cpp51
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/customproxy.h51
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp51
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.h51
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/main.cpp51
-rw-r--r--examples/widgets/graphicsview/flowlayout/CMakeLists.txt35
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.cpp57
-rw-r--r--examples/widgets/graphicsview/flowlayout/flowlayout.h56
-rw-r--r--examples/widgets/graphicsview/flowlayout/main.cpp51
-rw-r--r--examples/widgets/graphicsview/flowlayout/window.cpp51
-rw-r--r--examples/widgets/graphicsview/flowlayout/window.h56
-rw-r--r--examples/widgets/graphicsview/graphicsview.pro4
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt27
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/main.cpp51
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt57
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/5days.jpgbin5748 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/details.jpgbin5323 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/place.jpgbin62438 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/tabbar.jpgbin849 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/title.jpgbin3472 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/images/weather-few-clouds.pngbin18976 -> 0 bytes
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/main.cpp286
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.pro8
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/weatheranchorlayout.qrc10
-rw-r--r--examples/widgets/itemviews/CMakeLists.txt5
-rw-r--r--examples/widgets/itemviews/addressbook/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/addressbook/adddialog.cpp51
-rw-r--r--examples/widgets/itemviews/addressbook/adddialog.h51
-rw-r--r--examples/widgets/itemviews/addressbook/addresswidget.cpp65
-rw-r--r--examples/widgets/itemviews/addressbook/addresswidget.h59
-rw-r--r--examples/widgets/itemviews/addressbook/main.cpp51
-rw-r--r--examples/widgets/itemviews/addressbook/mainwindow.cpp61
-rw-r--r--examples/widgets/itemviews/addressbook/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/addressbook/newaddresstab.cpp51
-rw-r--r--examples/widgets/itemviews/addressbook/newaddresstab.h51
-rw-r--r--examples/widgets/itemviews/addressbook/tablemodel.cpp51
-rw-r--r--examples/widgets/itemviews/addressbook/tablemodel.h51
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/main.cpp51
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/window.cpp51
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/window.h51
-rw-r--r--examples/widgets/itemviews/chart/CMakeLists.txt32
-rw-r--r--examples/widgets/itemviews/chart/main.cpp51
-rw-r--r--examples/widgets/itemviews/chart/mainwindow.cpp51
-rw-r--r--examples/widgets/itemviews/chart/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/chart/pieview.cpp55
-rw-r--r--examples/widgets/itemviews/chart/pieview.h51
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/colorlisteditor.cpp51
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/colorlisteditor.h51
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/main.cpp51
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/window.cpp51
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/window.h51
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/main.cpp51
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/window.cpp51
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/window.h51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/filterwidget.cpp51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/filterwidget.h51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/main.cpp51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.cpp51
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.h51
-rw-r--r--examples/widgets/itemviews/dirview/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/dirview/main.cpp51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/editabletreemodel/main.cpp51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/mainwindow.cpp51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treeitem.cpp55
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treeitem.h51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treemodel.cpp51
-rw-r--r--examples/widgets/itemviews/editabletreemodel/treemodel.h51
-rw-r--r--examples/widgets/itemviews/fetchmore/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/fetchmore/filelistmodel.cpp51
-rw-r--r--examples/widgets/itemviews/fetchmore/filelistmodel.h51
-rw-r--r--examples/widgets/itemviews/fetchmore/main.cpp51
-rw-r--r--examples/widgets/itemviews/fetchmore/window.cpp51
-rw-r--r--examples/widgets/itemviews/fetchmore/window.h51
-rw-r--r--examples/widgets/itemviews/flattreeview/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/flattreeview/main.cpp51
-rw-r--r--examples/widgets/itemviews/frozencolumn/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/frozencolumn/freezetablewidget.cpp51
-rw-r--r--examples/widgets/itemviews/frozencolumn/freezetablewidget.h51
-rw-r--r--examples/widgets/itemviews/frozencolumn/main.cpp51
-rw-r--r--examples/widgets/itemviews/interview/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/interview/main.cpp51
-rw-r--r--examples/widgets/itemviews/interview/model.cpp51
-rw-r--r--examples/widgets/itemviews/interview/model.h51
-rw-r--r--examples/widgets/itemviews/pixelator/CMakeLists.txt42
-rw-r--r--examples/widgets/itemviews/pixelator/imagemodel.cpp51
-rw-r--r--examples/widgets/itemviews/pixelator/imagemodel.h51
-rw-r--r--examples/widgets/itemviews/pixelator/main.cpp51
-rw-r--r--examples/widgets/itemviews/pixelator/mainwindow.cpp51
-rw-r--r--examples/widgets/itemviews/pixelator/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/pixelator/pixeldelegate.cpp51
-rw-r--r--examples/widgets/itemviews/pixelator/pixeldelegate.h51
-rw-r--r--examples/widgets/itemviews/puzzle/CMakeLists.txt36
-rw-r--r--examples/widgets/itemviews/puzzle/main.cpp51
-rw-r--r--examples/widgets/itemviews/puzzle/mainwindow.cpp51
-rw-r--r--examples/widgets/itemviews/puzzle/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/puzzle/piecesmodel.cpp51
-rw-r--r--examples/widgets/itemviews/puzzle/piecesmodel.h51
-rw-r--r--examples/widgets/itemviews/puzzle/puzzlewidget.cpp51
-rw-r--r--examples/widgets/itemviews/puzzle/puzzlewidget.h51
-rw-r--r--examples/widgets/itemviews/simpledommodel/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/simpledommodel/domitem.cpp51
-rw-r--r--examples/widgets/itemviews/simpledommodel/domitem.h51
-rw-r--r--examples/widgets/itemviews/simpledommodel/dommodel.cpp51
-rw-r--r--examples/widgets/itemviews/simpledommodel/dommodel.h51
-rw-r--r--examples/widgets/itemviews/simpledommodel/main.cpp51
-rw-r--r--examples/widgets/itemviews/simpledommodel/mainwindow.cpp51
-rw-r--r--examples/widgets/itemviews/simpledommodel/mainwindow.h51
-rw-r--r--examples/widgets/itemviews/simpletreemodel/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/simpletreemodel/main.cpp51
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treeitem.cpp51
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treeitem.h51
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treemodel.cpp51
-rw-r--r--examples/widgets/itemviews/simpletreemodel/treemodel.h51
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/main.cpp51
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/window.cpp51
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/window.h51
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/delegate.cpp51
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/delegate.h51
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/main.cpp51
-rw-r--r--examples/widgets/itemviews/spreadsheet/CMakeLists.txt47
-rw-r--r--examples/widgets/itemviews/spreadsheet/main.cpp51
-rw-r--r--examples/widgets/itemviews/spreadsheet/printview.cpp51
-rw-r--r--examples/widgets/itemviews/spreadsheet/printview.h53
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.cpp53
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheet.h51
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.cpp51
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetdelegate.h51
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetitem.cpp51
-rw-r--r--examples/widgets/itemviews/spreadsheet/spreadsheetitem.h51
-rw-r--r--examples/widgets/itemviews/stardelegate/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/stardelegate/main.cpp51
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.cpp51
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.h51
-rw-r--r--examples/widgets/itemviews/stardelegate/stareditor.cpp51
-rw-r--r--examples/widgets/itemviews/stardelegate/stareditor.h51
-rw-r--r--examples/widgets/itemviews/stardelegate/starrating.cpp51
-rw-r--r--examples/widgets/itemviews/stardelegate/starrating.h51
-rw-r--r--examples/widgets/itemviews/storageview/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/storageview/main.cpp53
-rw-r--r--examples/widgets/itemviews/storageview/storagemodel.cpp53
-rw-r--r--examples/widgets/itemviews/storageview/storagemodel.h53
-rw-r--r--examples/widgets/layouts/CMakeLists.txt3
-rw-r--r--examples/widgets/layouts/basiclayouts/CMakeLists.txt27
-rw-r--r--examples/widgets/layouts/basiclayouts/dialog.cpp70
-rw-r--r--examples/widgets/layouts/basiclayouts/dialog.h51
-rw-r--r--examples/widgets/layouts/basiclayouts/main.cpp55
-rw-r--r--examples/widgets/layouts/borderlayout/CMakeLists.txt27
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.cpp51
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.h51
-rw-r--r--examples/widgets/layouts/borderlayout/main.cpp51
-rw-r--r--examples/widgets/layouts/borderlayout/window.cpp51
-rw-r--r--examples/widgets/layouts/borderlayout/window.h51
-rw-r--r--examples/widgets/layouts/dynamiclayouts/CMakeLists.txt27
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dialog.cpp53
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dialog.h51
-rw-r--r--examples/widgets/layouts/dynamiclayouts/main.cpp55
-rw-r--r--examples/widgets/layouts/flowlayout/CMakeLists.txt27
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.cpp55
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.h51
-rw-r--r--examples/widgets/layouts/flowlayout/main.cpp51
-rw-r--r--examples/widgets/layouts/flowlayout/window.cpp51
-rw-r--r--examples/widgets/layouts/flowlayout/window.h51
-rw-r--r--examples/widgets/mainwindows/CMakeLists.txt5
-rw-r--r--examples/widgets/mainwindows/application/CMakeLists.txt58
-rw-r--r--examples/widgets/mainwindows/application/application.pro13
-rw-r--r--examples/widgets/mainwindows/application/application.qrc10
-rw-r--r--examples/widgets/mainwindows/application/images/copy.pngbin1338 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/cut.pngbin1323 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/new.pngbin852 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/open.pngbin2073 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/paste.pngbin1645 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/images/save.pngbin2699 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/application/main.cpp79
-rw-r--r--examples/widgets/mainwindows/application/mainwindow.cpp417
-rw-r--r--examples/widgets/mainwindows/application/mainwindow.h102
-rw-r--r--examples/widgets/mainwindows/dockwidgets/CMakeLists.txt47
-rw-r--r--examples/widgets/mainwindows/dockwidgets/main.cpp51
-rw-r--r--examples/widgets/mainwindows/dockwidgets/mainwindow.cpp53
-rw-r--r--examples/widgets/mainwindows/dockwidgets/mainwindow.h51
-rw-r--r--examples/widgets/mainwindows/mainwindow/CMakeLists.txt30
-rw-r--r--examples/widgets/mainwindows/mainwindow/colorswatch.cpp53
-rw-r--r--examples/widgets/mainwindows/mainwindow/colorswatch.h51
-rw-r--r--examples/widgets/mainwindows/mainwindow/main.cpp55
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.cpp55
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.h54
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.pro2
-rw-r--r--examples/widgets/mainwindows/mainwindow/toolbar.cpp65
-rw-r--r--examples/widgets/mainwindows/mainwindow/toolbar.h55
-rw-r--r--examples/widgets/mainwindows/mainwindows.pro6
-rw-r--r--examples/widgets/mainwindows/mdi/CMakeLists.txt30
-rw-r--r--examples/widgets/mainwindows/mdi/main.cpp51
-rw-r--r--examples/widgets/mainwindows/mdi/mainwindow.cpp51
-rw-r--r--examples/widgets/mainwindows/mdi/mainwindow.h51
-rw-r--r--examples/widgets/mainwindows/mdi/mdichild.cpp51
-rw-r--r--examples/widgets/mainwindows/mdi/mdichild.h51
-rw-r--r--examples/widgets/mainwindows/menus/CMakeLists.txt27
-rw-r--r--examples/widgets/mainwindows/menus/main.cpp51
-rw-r--r--examples/widgets/mainwindows/menus/mainwindow.cpp51
-rw-r--r--examples/widgets/mainwindows/menus/mainwindow.h51
-rw-r--r--examples/widgets/mainwindows/sdi/CMakeLists.txt58
-rw-r--r--examples/widgets/mainwindows/sdi/images/copy.pngbin1338 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/cut.pngbin1323 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/new.pngbin852 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/open.pngbin2073 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/paste.pngbin1645 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/images/save.pngbin2699 -> 0 bytes
-rw-r--r--examples/widgets/mainwindows/sdi/main.cpp84
-rw-r--r--examples/widgets/mainwindows/sdi/mainwindow.cpp492
-rw-r--r--examples/widgets/mainwindows/sdi/mainwindow.h117
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.pro11
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.qrc10
-rw-r--r--examples/widgets/painting/CMakeLists.txt6
-rw-r--r--examples/widgets/painting/affine/CMakeLists.txt58
-rw-r--r--examples/widgets/painting/affine/main.cpp55
-rw-r--r--examples/widgets/painting/affine/xform.cpp51
-rw-r--r--examples/widgets/painting/affine/xform.h51
-rw-r--r--examples/widgets/painting/basicdrawing/CMakeLists.txt30
-rw-r--r--examples/widgets/painting/basicdrawing/main.cpp51
-rw-r--r--examples/widgets/painting/basicdrawing/renderarea.cpp51
-rw-r--r--examples/widgets/painting/basicdrawing/renderarea.h51
-rw-r--r--examples/widgets/painting/basicdrawing/window.cpp51
-rw-r--r--examples/widgets/painting/basicdrawing/window.h51
-rw-r--r--examples/widgets/painting/composition/CMakeLists.txt58
-rw-r--r--examples/widgets/painting/composition/composition.cpp61
-rw-r--r--examples/widgets/painting/composition/composition.h52
-rw-r--r--examples/widgets/painting/composition/main.cpp51
-rw-r--r--examples/widgets/painting/concentriccircles/CMakeLists.txt27
-rw-r--r--examples/widgets/painting/concentriccircles/circlewidget.cpp51
-rw-r--r--examples/widgets/painting/concentriccircles/circlewidget.h51
-rw-r--r--examples/widgets/painting/concentriccircles/main.cpp51
-rw-r--r--examples/widgets/painting/concentriccircles/window.cpp51
-rw-r--r--examples/widgets/painting/concentriccircles/window.h51
-rw-r--r--examples/widgets/painting/deform/CMakeLists.txt58
-rw-r--r--examples/widgets/painting/deform/main.cpp51
-rw-r--r--examples/widgets/painting/deform/pathdeform.cpp51
-rw-r--r--examples/widgets/painting/deform/pathdeform.h51
-rw-r--r--examples/widgets/painting/fontsampler/CMakeLists.txt37
-rw-r--r--examples/widgets/painting/fontsampler/main.cpp51
-rw-r--r--examples/widgets/painting/fontsampler/mainwindow.cpp55
-rw-r--r--examples/widgets/painting/fontsampler/mainwindow.h56
-rw-r--r--examples/widgets/painting/gradients/CMakeLists.txt58
-rw-r--r--examples/widgets/painting/gradients/gradients.cpp53
-rw-r--r--examples/widgets/painting/gradients/gradients.h51
-rw-r--r--examples/widgets/painting/gradients/main.cpp54
-rw-r--r--examples/widgets/painting/imagecomposition/CMakeLists.txt30
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposer.cpp51
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposer.h51
-rw-r--r--examples/widgets/painting/imagecomposition/main.cpp51
-rw-r--r--examples/widgets/painting/painterpaths/CMakeLists.txt29
-rw-r--r--examples/widgets/painting/painterpaths/main.cpp51
-rw-r--r--examples/widgets/painting/painterpaths/renderarea.cpp51
-rw-r--r--examples/widgets/painting/painterpaths/renderarea.h51
-rw-r--r--examples/widgets/painting/painterpaths/window.cpp61
-rw-r--r--examples/widgets/painting/painterpaths/window.h51
-rw-r--r--examples/widgets/painting/pathstroke/CMakeLists.txt58
-rw-r--r--examples/widgets/painting/pathstroke/main.cpp54
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.cpp53
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.h51
-rw-r--r--examples/widgets/painting/shared/CMakeLists.txt13
-rw-r--r--examples/widgets/painting/shared/arthurstyle.cpp51
-rw-r--r--examples/widgets/painting/shared/arthurstyle.h51
-rw-r--r--examples/widgets/painting/shared/arthurwidgets.cpp51
-rw-r--r--examples/widgets/painting/shared/arthurwidgets.h51
-rw-r--r--examples/widgets/painting/shared/fbopaintdevice.cpp68
-rw-r--r--examples/widgets/painting/shared/fbopaintdevice.h53
-rw-r--r--examples/widgets/painting/shared/hoverpoints.cpp55
-rw-r--r--examples/widgets/painting/shared/hoverpoints.h51
-rw-r--r--examples/widgets/painting/shared/use_lib.cmake3
-rw-r--r--examples/widgets/painting/transformations/CMakeLists.txt27
-rw-r--r--examples/widgets/painting/transformations/main.cpp51
-rw-r--r--examples/widgets/painting/transformations/renderarea.cpp51
-rw-r--r--examples/widgets/painting/transformations/renderarea.h51
-rw-r--r--examples/widgets/painting/transformations/window.cpp51
-rw-r--r--examples/widgets/painting/transformations/window.h51
-rw-r--r--examples/widgets/qnx/foreignwindows/collector.cpp40
-rw-r--r--examples/widgets/qnx/foreignwindows/collector.h40
-rw-r--r--examples/widgets/qnx/foreignwindows/main.cpp40
-rw-r--r--examples/widgets/richtext/CMakeLists.txt3
-rw-r--r--examples/widgets/richtext/calendar/CMakeLists.txt27
-rw-r--r--examples/widgets/richtext/calendar/main.cpp51
-rw-r--r--examples/widgets/richtext/calendar/mainwindow.cpp51
-rw-r--r--examples/widgets/richtext/calendar/mainwindow.h51
-rw-r--r--examples/widgets/richtext/orderform/CMakeLists.txt33
-rw-r--r--examples/widgets/richtext/orderform/detailsdialog.cpp51
-rw-r--r--examples/widgets/richtext/orderform/detailsdialog.h51
-rw-r--r--examples/widgets/richtext/orderform/main.cpp51
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.cpp51
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.h51
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt27
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/highlighter.cpp53
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/highlighter.h51
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/main.cpp51
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp51
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.h51
-rw-r--r--examples/widgets/richtext/textedit/CMakeLists.txt47
-rw-r--r--examples/widgets/richtext/textedit/example.html2
-rw-r--r--examples/widgets/richtext/textedit/example.md2
-rw-r--r--examples/widgets/richtext/textedit/main.cpp51
-rw-r--r--examples/widgets/richtext/textedit/textedit.cpp54
-rw-r--r--examples/widgets/richtext/textedit/textedit.h51
-rw-r--r--examples/widgets/richtext/textedit/textedit.qdoc28
-rw-r--r--examples/widgets/scroller/CMakeLists.txt2
-rw-r--r--examples/widgets/scroller/graphicsview/CMakeLists.txt27
-rw-r--r--examples/widgets/scroller/graphicsview/main.cpp51
-rw-r--r--examples/widgets/tools/CMakeLists.txt14
-rw-r--r--examples/widgets/tools/completer/CMakeLists.txt30
-rw-r--r--examples/widgets/tools/completer/fsmodel.cpp51
-rw-r--r--examples/widgets/tools/completer/fsmodel.h51
-rw-r--r--examples/widgets/tools/completer/main.cpp51
-rw-r--r--examples/widgets/tools/completer/mainwindow.cpp51
-rw-r--r--examples/widgets/tools/completer/mainwindow.h51
-rw-r--r--examples/widgets/tools/customcompleter/CMakeLists.txt30
-rw-r--r--examples/widgets/tools/customcompleter/doc/src/customcompleter.qdoc28
-rw-r--r--examples/widgets/tools/customcompleter/main.cpp51
-rw-r--r--examples/widgets/tools/customcompleter/mainwindow.cpp51
-rw-r--r--examples/widgets/tools/customcompleter/mainwindow.h51
-rw-r--r--examples/widgets/tools/customcompleter/textedit.cpp51
-rw-r--r--examples/widgets/tools/customcompleter/textedit.h51
-rw-r--r--examples/widgets/tools/echoplugin/CMakeLists.txt11
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt17
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/echointerface.h51
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/echowindow.cpp51
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/echowindow.h51
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/main.cpp51
-rw-r--r--examples/widgets/tools/echoplugin/plugin/CMakeLists.txt17
-rw-r--r--examples/widgets/tools/echoplugin/plugin/echoplugin.cpp51
-rw-r--r--examples/widgets/tools/echoplugin/plugin/echoplugin.h51
-rw-r--r--examples/widgets/tools/i18n/CMakeLists.txt67
-rw-r--r--examples/widgets/tools/i18n/i18n.pro27
-rw-r--r--examples/widgets/tools/i18n/i18n.qrc18
-rw-r--r--examples/widgets/tools/i18n/languagechooser.cpp186
-rw-r--r--examples/widgets/tools/i18n/languagechooser.h96
-rw-r--r--examples/widgets/tools/i18n/main.cpp64
-rw-r--r--examples/widgets/tools/i18n/mainwindow.cpp113
-rw-r--r--examples/widgets/tools/i18n/mainwindow.h86
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ar.qmbin736 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ar.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_cs.qmbin796 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_cs.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_de.qmbin848 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_de.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_el.qmbin804 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_el.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_en.qmbin810 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_en.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_eo.qmbin806 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_eo.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_fr.qmbin844 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_fr.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_it.qmbin808 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_it.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_jp.qmbin722 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_jp.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ko.qmbin690 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ko.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_no.qmbin804 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_no.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ru.qmbin806 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_ru.ts59
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_sv.qmbin814 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_sv.ts57
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_zh.qmbin700 -> 0 bytes
-rw-r--r--examples/widgets/tools/i18n/translations/i18n_zh.ts57
-rw-r--r--examples/widgets/tools/plugandpaint/CMakeLists.txt13
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt13
-rw-r--r--examples/widgets/tools/plugandpaint/app/interfaces.h51
-rw-r--r--examples/widgets/tools/plugandpaint/app/main.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/app/mainwindow.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/app/mainwindow.h51
-rw-r--r--examples/widgets/tools/plugandpaint/app/paintarea.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/app/paintarea.h51
-rw-r--r--examples/widgets/tools/plugandpaint/app/plugindialog.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/app/plugindialog.h51
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt14
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/basictoolsplugin.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/basictoolsplugin.h51
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt15
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/extrafiltersplugin.cpp51
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/extrafiltersplugin.h51
-rw-r--r--examples/widgets/tools/regularexpression/CMakeLists.txt30
-rw-r--r--examples/widgets/tools/regularexpression/main.cpp51
-rw-r--r--examples/widgets/tools/regularexpression/regularexpressiondialog.cpp55
-rw-r--r--examples/widgets/tools/regularexpression/regularexpressiondialog.h55
-rw-r--r--examples/widgets/tools/settingseditor/CMakeLists.txt27
-rw-r--r--examples/widgets/tools/settingseditor/locationdialog.cpp51
-rw-r--r--examples/widgets/tools/settingseditor/locationdialog.h51
-rw-r--r--examples/widgets/tools/settingseditor/main.cpp51
-rw-r--r--examples/widgets/tools/settingseditor/mainwindow.cpp51
-rw-r--r--examples/widgets/tools/settingseditor/mainwindow.h51
-rw-r--r--examples/widgets/tools/settingseditor/settingstree.cpp51
-rw-r--r--examples/widgets/tools/settingseditor/settingstree.h51
-rw-r--r--examples/widgets/tools/settingseditor/variantdelegate.cpp51
-rw-r--r--examples/widgets/tools/settingseditor/variantdelegate.h51
-rw-r--r--examples/widgets/tools/styleplugin/CMakeLists.txt11
-rw-r--r--examples/widgets/tools/styleplugin/plugin/CMakeLists.txt37
-rw-r--r--examples/widgets/tools/styleplugin/plugin/plugin.pro12
-rw-r--r--examples/widgets/tools/styleplugin/plugin/simplestyle.cpp53
-rw-r--r--examples/widgets/tools/styleplugin/plugin/simplestyle.h51
-rw-r--r--examples/widgets/tools/styleplugin/plugin/simplestyleplugin.cpp51
-rw-r--r--examples/widgets/tools/styleplugin/plugin/simplestyleplugin.h51
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt12
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/main.cpp60
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/stylewindow.cpp59
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/stylewindow.h51
-rw-r--r--examples/widgets/tools/tools.pro4
-rw-r--r--examples/widgets/tools/treemodelcompleter/CMakeLists.txt30
-rw-r--r--examples/widgets/tools/treemodelcompleter/main.cpp51
-rw-r--r--examples/widgets/tools/treemodelcompleter/mainwindow.cpp51
-rw-r--r--examples/widgets/tools/treemodelcompleter/mainwindow.h51
-rw-r--r--examples/widgets/tools/treemodelcompleter/treemodelcompleter.cpp51
-rw-r--r--examples/widgets/tools/treemodelcompleter/treemodelcompleter.h51
-rw-r--r--examples/widgets/tools/undo/CMakeLists.txt70
-rw-r--r--examples/widgets/tools/undo/commands.cpp177
-rw-r--r--examples/widgets/tools/undo/commands.h123
-rw-r--r--examples/widgets/tools/undo/document.cpp448
-rw-r--r--examples/widgets/tools/undo/document.h133
-rw-r--r--examples/widgets/tools/undo/icons/background.pngbin93 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/blue.pngbin1659 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/circle.pngbin1359 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/exit.pngbin1731 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/fileclose.pngbin1121 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/filenew.pngbin1266 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/fileopen.pngbin1771 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/filesave.pngbin1022 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/green.pngbin1766 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/ok.pngbin979 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/icons/red.pngbin1653 -> 0 bytes
-rw-r--r--examples/widgets/tools/undo/main.cpp65
-rw-r--r--examples/widgets/tools/undo/mainwindow.cpp457
-rw-r--r--examples/widgets/tools/undo/mainwindow.h96
-rw-r--r--examples/widgets/tools/undo/mainwindow.ui322
-rw-r--r--examples/widgets/tools/undo/undo.pro17
-rw-r--r--examples/widgets/tools/undo/undo.qrc20
-rw-r--r--examples/widgets/tools/undoframework/CMakeLists.txt37
-rw-r--r--examples/widgets/tools/undoframework/commands.cpp51
-rw-r--r--examples/widgets/tools/undoframework/commands.h51
-rw-r--r--examples/widgets/tools/undoframework/diagramitem.cpp51
-rw-r--r--examples/widgets/tools/undoframework/diagramitem.h51
-rw-r--r--examples/widgets/tools/undoframework/diagramscene.cpp51
-rw-r--r--examples/widgets/tools/undoframework/diagramscene.h51
-rw-r--r--examples/widgets/tools/undoframework/icons/cross.png (renamed from examples/widgets/tools/undoframework/images/cross.png)bin356 -> 356 bytes
-rw-r--r--examples/widgets/tools/undoframework/icons/rectangle.png (renamed from examples/widgets/tools/undo/icons/rectangle.png)bin690 -> 690 bytes
-rw-r--r--examples/widgets/tools/undoframework/icons/redo.png (renamed from examples/widgets/tools/undo/icons/redo.png)bin985 -> 985 bytes
-rw-r--r--examples/widgets/tools/undoframework/icons/remove.png (renamed from examples/widgets/tools/undo/icons/remove.png)bin1833 -> 1833 bytes
-rw-r--r--examples/widgets/tools/undoframework/icons/triangle.png (renamed from examples/widgets/tools/undo/icons/triangle.png)bin850 -> 850 bytes
-rw-r--r--examples/widgets/tools/undoframework/icons/undo.png (renamed from examples/widgets/tools/undo/icons/undo.png)bin962 -> 962 bytes
-rw-r--r--examples/widgets/tools/undoframework/main.cpp51
-rw-r--r--examples/widgets/tools/undoframework/mainwindow.cpp142
-rw-r--r--examples/widgets/tools/undoframework/mainwindow.h55
-rw-r--r--examples/widgets/tools/undoframework/undoframework.qrc8
-rw-r--r--examples/widgets/touch/CMakeLists.txt5
-rw-r--r--examples/widgets/touch/dials/CMakeLists.txt27
-rw-r--r--examples/widgets/touch/dials/doc/src/touch-dials.qdoc28
-rw-r--r--examples/widgets/touch/dials/main.cpp51
-rw-r--r--examples/widgets/touch/fingerpaint/CMakeLists.txt42
-rw-r--r--examples/widgets/touch/fingerpaint/doc/src/fingerpaint.qdoc28
-rw-r--r--examples/widgets/touch/fingerpaint/main.cpp51
-rw-r--r--examples/widgets/touch/fingerpaint/mainwindow.cpp51
-rw-r--r--examples/widgets/touch/fingerpaint/mainwindow.h51
-rw-r--r--examples/widgets/touch/fingerpaint/scribblearea.cpp51
-rw-r--r--examples/widgets/touch/fingerpaint/scribblearea.h51
-rw-r--r--examples/widgets/touch/knobs/CMakeLists.txt27
-rw-r--r--examples/widgets/touch/knobs/doc/src/touch-knobs.qdoc28
-rw-r--r--examples/widgets/touch/knobs/knob.cpp51
-rw-r--r--examples/widgets/touch/knobs/knob.h51
-rw-r--r--examples/widgets/touch/knobs/main.cpp51
-rw-r--r--examples/widgets/touch/pinchzoom/CMakeLists.txt30
-rw-r--r--examples/widgets/touch/pinchzoom/doc/src/pinchzoom.qdoc28
-rw-r--r--examples/widgets/touch/pinchzoom/graphicsview.cpp51
-rw-r--r--examples/widgets/touch/pinchzoom/graphicsview.h51
-rw-r--r--examples/widgets/touch/pinchzoom/main.cpp51
-rw-r--r--examples/widgets/touch/pinchzoom/mouse.cpp51
-rw-r--r--examples/widgets/touch/pinchzoom/mouse.h51
-rw-r--r--examples/widgets/tutorials/CMakeLists.txt5
-rw-r--r--examples/widgets/tutorials/addressbook/CMakeLists.txt9
-rw-r--r--examples/widgets/tutorials/addressbook/README40
-rw-r--r--examples/widgets/tutorials/addressbook/addressbook.pro6
-rw-r--r--examples/widgets/tutorials/addressbook/part1/CMakeLists.txt40
-rw-r--r--examples/widgets/tutorials/addressbook/part1/addressbook.cpp77
-rw-r--r--examples/widgets/tutorials/addressbook/part1/addressbook.h76
-rw-r--r--examples/widgets/tutorials/addressbook/part1/main.cpp64
-rw-r--r--examples/widgets/tutorials/addressbook/part1/part1.pro11
-rw-r--r--examples/widgets/tutorials/addressbook/part2/CMakeLists.txt40
-rw-r--r--examples/widgets/tutorials/addressbook/part2/addressbook.cpp170
-rw-r--r--examples/widgets/tutorials/addressbook/part2/addressbook.h94
-rw-r--r--examples/widgets/tutorials/addressbook/part2/main.cpp64
-rw-r--r--examples/widgets/tutorials/addressbook/part2/part2.pro11
-rw-r--r--examples/widgets/tutorials/addressbook/part3/CMakeLists.txt40
-rw-r--r--examples/widgets/tutorials/addressbook/part3/addressbook.cpp229
-rw-r--r--examples/widgets/tutorials/addressbook/part3/addressbook.h96
-rw-r--r--examples/widgets/tutorials/addressbook/part3/main.cpp62
-rw-r--r--examples/widgets/tutorials/addressbook/part3/part3.pro11
-rw-r--r--examples/widgets/tutorials/addressbook/part4/CMakeLists.txt40
-rw-r--r--examples/widgets/tutorials/addressbook/part4/addressbook.cpp305
-rw-r--r--examples/widgets/tutorials/addressbook/part4/addressbook.h109
-rw-r--r--examples/widgets/tutorials/addressbook/part4/main.cpp62
-rw-r--r--examples/widgets/tutorials/addressbook/part4/part4.pro11
-rw-r--r--examples/widgets/tutorials/addressbook/part5/CMakeLists.txt41
-rw-r--r--examples/widgets/tutorials/addressbook/part5/addressbook.cpp330
-rw-r--r--examples/widgets/tutorials/addressbook/part5/addressbook.h112
-rw-r--r--examples/widgets/tutorials/addressbook/part5/finddialog.cpp98
-rw-r--r--examples/widgets/tutorials/addressbook/part5/finddialog.h78
-rw-r--r--examples/widgets/tutorials/addressbook/part5/main.cpp62
-rw-r--r--examples/widgets/tutorials/addressbook/part5/part5.pro13
-rw-r--r--examples/widgets/tutorials/addressbook/part6/CMakeLists.txt41
-rw-r--r--examples/widgets/tutorials/addressbook/part6/addressbook.cpp413
-rw-r--r--examples/widgets/tutorials/addressbook/part6/addressbook.h113
-rw-r--r--examples/widgets/tutorials/addressbook/part6/finddialog.cpp94
-rw-r--r--examples/widgets/tutorials/addressbook/part6/finddialog.h78
-rw-r--r--examples/widgets/tutorials/addressbook/part6/main.cpp62
-rw-r--r--examples/widgets/tutorials/addressbook/part6/part6.pro14
-rw-r--r--examples/widgets/tutorials/addressbook/part7/CMakeLists.txt41
-rw-r--r--examples/widgets/tutorials/addressbook/part7/addressbook.cpp466
-rw-r--r--examples/widgets/tutorials/addressbook/part7/addressbook.h115
-rw-r--r--examples/widgets/tutorials/addressbook/part7/finddialog.cpp94
-rw-r--r--examples/widgets/tutorials/addressbook/part7/finddialog.h78
-rw-r--r--examples/widgets/tutorials/addressbook/part7/main.cpp62
-rw-r--r--examples/widgets/tutorials/addressbook/part7/part7.pro14
-rw-r--r--examples/widgets/tutorials/gettingStarted/CMakeLists.txt1
-rw-r--r--examples/widgets/tutorials/gettingStarted/gettingStarted.pro4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/CMakeLists.txt7
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/gsqt.pro7
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt39
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/main.cpp62
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/part1.pro8
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt39
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp74
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/part2.pro8
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt39
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/main.cpp108
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro8
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt39
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/main.cpp120
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/part4.pro8
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt39
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/main.cpp146
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/part5.pro8
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/mymodel.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/mymodel.h54
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp59
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/mymodel.h54
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/mymodel.cpp55
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/mymodel.h60
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/mymodel.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/mymodel.h54
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/mainwindow.cpp62
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/mainwindow.h60
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/mymodel.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/mymodel.h51
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/mainwindow.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/mainwindow.h63
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/main.cpp51
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/mainwindow.cpp83
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/mainwindow.h63
-rw-r--r--examples/widgets/tutorials/modelview/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/notepad/CMakeLists.txt42
-rw-r--r--examples/widgets/tutorials/notepad/gettingstartedqt.qdoc (renamed from examples/widgets/tutorials/gettingstartedqt.qdoc)222
-rw-r--r--examples/widgets/tutorials/notepad/main.cpp61
-rw-r--r--examples/widgets/tutorials/notepad/notepad.cpp51
-rw-r--r--examples/widgets/tutorials/notepad/notepad.h74
-rw-r--r--examples/widgets/tutorials/tutorials.pro2
-rw-r--r--examples/widgets/tutorials/widgets/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/main.cpp51
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/main.cpp51
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/main.cpp51
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt27
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/main.cpp51
-rw-r--r--examples/widgets/widgets/CMakeLists.txt12
-rw-r--r--examples/widgets/widgets/analogclock/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.cpp57
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.h51
-rw-r--r--examples/widgets/widgets/analogclock/main.cpp51
-rw-r--r--examples/widgets/widgets/calculator/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/calculator/button.cpp51
-rw-r--r--examples/widgets/widgets/calculator/button.h51
-rw-r--r--examples/widgets/widgets/calculator/calculator.cpp92
-rw-r--r--examples/widgets/widgets/calculator/calculator.h54
-rw-r--r--examples/widgets/widgets/calculator/main.cpp51
-rw-r--r--examples/widgets/widgets/calendarwidget/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/calendarwidget/main.cpp51
-rw-r--r--examples/widgets/widgets/calendarwidget/window.cpp51
-rw-r--r--examples/widgets/widgets/calendarwidget/window.h51
-rw-r--r--examples/widgets/widgets/charactermap/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/charactermap/characterwidget.cpp51
-rw-r--r--examples/widgets/widgets/charactermap/characterwidget.h51
-rw-r--r--examples/widgets/widgets/charactermap/main.cpp51
-rw-r--r--examples/widgets/widgets/charactermap/mainwindow.cpp51
-rw-r--r--examples/widgets/widgets/charactermap/mainwindow.h51
-rw-r--r--examples/widgets/widgets/codeeditor/CMakeLists.txt40
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.cpp181
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.h115
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.pro8
-rw-r--r--examples/widgets/widgets/codeeditor/main.cpp65
-rw-r--r--examples/widgets/widgets/digitalclock/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.cpp51
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.h51
-rw-r--r--examples/widgets/widgets/digitalclock/main.cpp51
-rw-r--r--examples/widgets/widgets/elidedlabel/CMakeLists.txt41
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.cpp121
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.h83
-rw-r--r--examples/widgets/widgets/elidedlabel/elidedlabel.pro20
-rw-r--r--examples/widgets/widgets/elidedlabel/main.cpp63
-rw-r--r--examples/widgets/widgets/elidedlabel/testwidget.cpp166
-rw-r--r--examples/widgets/widgets/elidedlabel/testwidget.h85
-rw-r--r--examples/widgets/widgets/groupbox/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/groupbox/main.cpp51
-rw-r--r--examples/widgets/widgets/groupbox/window.cpp55
-rw-r--r--examples/widgets/widgets/groupbox/window.h51
-rw-r--r--examples/widgets/widgets/icons/CMakeLists.txt31
-rw-r--r--examples/widgets/widgets/icons/iconpreviewarea.cpp59
-rw-r--r--examples/widgets/widgets/icons/iconpreviewarea.h51
-rw-r--r--examples/widgets/widgets/icons/iconsizespinbox.cpp51
-rw-r--r--examples/widgets/widgets/icons/iconsizespinbox.h51
-rw-r--r--examples/widgets/widgets/icons/imagedelegate.cpp51
-rw-r--r--examples/widgets/widgets/icons/imagedelegate.h51
-rw-r--r--examples/widgets/widgets/icons/main.cpp51
-rw-r--r--examples/widgets/widgets/icons/mainwindow.cpp53
-rw-r--r--examples/widgets/widgets/icons/mainwindow.h51
-rw-r--r--examples/widgets/widgets/imageviewer/CMakeLists.txt42
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.cpp57
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.h51
-rw-r--r--examples/widgets/widgets/imageviewer/main.cpp51
-rw-r--r--examples/widgets/widgets/lineedits/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/lineedits/main.cpp51
-rw-r--r--examples/widgets/widgets/lineedits/window.cpp51
-rw-r--r--examples/widgets/widgets/lineedits/window.h51
-rw-r--r--examples/widgets/widgets/mousebuttons/CMakeLists.txt40
-rw-r--r--examples/widgets/widgets/mousebuttons/buttontester.cpp231
-rw-r--r--examples/widgets/widgets/mousebuttons/buttontester.h76
-rw-r--r--examples/widgets/widgets/mousebuttons/main.cpp83
-rw-r--r--examples/widgets/widgets/mousebuttons/mousebuttons.pro16
-rw-r--r--examples/widgets/widgets/movie/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/movie/main.cpp51
-rw-r--r--examples/widgets/widgets/movie/movieplayer.cpp51
-rw-r--r--examples/widgets/widgets/movie/movieplayer.h51
-rw-r--r--examples/widgets/widgets/scribble/CMakeLists.txt42
-rw-r--r--examples/widgets/widgets/scribble/main.cpp51
-rw-r--r--examples/widgets/widgets/scribble/mainwindow.cpp53
-rw-r--r--examples/widgets/widgets/scribble/mainwindow.h51
-rw-r--r--examples/widgets/widgets/scribble/scribblearea.cpp51
-rw-r--r--examples/widgets/widgets/scribble/scribblearea.h51
-rw-r--r--examples/widgets/widgets/shapedclock/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/shapedclock/main.cpp51
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.cpp65
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.h52
-rw-r--r--examples/widgets/widgets/shortcuteditor/CMakeLists.txt39
-rw-r--r--examples/widgets/widgets/shortcuteditor/actionmanager.cpp57
-rw-r--r--examples/widgets/widgets/shortcuteditor/actionmanager.h33
-rw-r--r--examples/widgets/widgets/shortcuteditor/application.cpp15
-rw-r--r--examples/widgets/widgets/shortcuteditor/application.h27
-rw-r--r--examples/widgets/widgets/shortcuteditor/main.cpp13
-rw-r--r--examples/widgets/widgets/shortcuteditor/mainwindow.cpp46
-rw-r--r--examples/widgets/widgets/shortcuteditor/mainwindow.h22
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditordelegate.cpp71
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditordelegate.h34
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditormodel.cpp273
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditormodel.h71
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.cpp33
-rw-r--r--examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h32
-rw-r--r--examples/widgets/widgets/sliders/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/sliders/main.cpp51
-rw-r--r--examples/widgets/widgets/sliders/slidersgroup.cpp51
-rw-r--r--examples/widgets/widgets/sliders/slidersgroup.h51
-rw-r--r--examples/widgets/widgets/sliders/window.cpp93
-rw-r--r--examples/widgets/widgets/sliders/window.h55
-rw-r--r--examples/widgets/widgets/spinboxes/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/spinboxes/main.cpp51
-rw-r--r--examples/widgets/widgets/spinboxes/window.cpp51
-rw-r--r--examples/widgets/widgets/spinboxes/window.h51
-rw-r--r--examples/widgets/widgets/styles/CMakeLists.txt30
-rw-r--r--examples/widgets/widgets/styles/main.cpp51
-rw-r--r--examples/widgets/widgets/styles/norwegianwoodstyle.cpp51
-rw-r--r--examples/widgets/widgets/styles/norwegianwoodstyle.h51
-rw-r--r--examples/widgets/widgets/styles/widgetgallery.cpp51
-rw-r--r--examples/widgets/widgets/styles/widgetgallery.h51
-rw-r--r--examples/widgets/widgets/stylesheet/CMakeLists.txt30
-rw-r--r--examples/widgets/widgets/stylesheet/main.cpp51
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.cpp52
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.h51
-rw-r--r--examples/widgets/widgets/stylesheet/qss/coffee.qss5
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheeteditor.cpp51
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheeteditor.h51
-rw-r--r--examples/widgets/widgets/tablet/CMakeLists.txt30
-rw-r--r--examples/widgets/widgets/tablet/main.cpp51
-rw-r--r--examples/widgets/widgets/tablet/mainwindow.cpp51
-rw-r--r--examples/widgets/widgets/tablet/mainwindow.h51
-rw-r--r--examples/widgets/widgets/tablet/tabletapplication.cpp51
-rw-r--r--examples/widgets/widgets/tablet/tabletapplication.h51
-rw-r--r--examples/widgets/widgets/tablet/tabletcanvas.cpp51
-rw-r--r--examples/widgets/widgets/tablet/tabletcanvas.h51
-rw-r--r--examples/widgets/widgets/tetrix/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/tetrix/main.cpp51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixboard.cpp51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixboard.h51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixpiece.cpp51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixpiece.h51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixwindow.cpp51
-rw-r--r--examples/widgets/widgets/tetrix/tetrixwindow.h51
-rw-r--r--examples/widgets/widgets/tooltips/CMakeLists.txt30
-rw-r--r--examples/widgets/widgets/tooltips/main.cpp51
-rw-r--r--examples/widgets/widgets/tooltips/shapeitem.cpp51
-rw-r--r--examples/widgets/widgets/tooltips/shapeitem.h51
-rw-r--r--examples/widgets/widgets/tooltips/sortingbox.cpp101
-rw-r--r--examples/widgets/widgets/tooltips/sortingbox.h59
-rw-r--r--examples/widgets/widgets/validators/CMakeLists.txt28
-rw-r--r--examples/widgets/widgets/validators/ledwidget.cpp51
-rw-r--r--examples/widgets/widgets/validators/ledwidget.h51
-rw-r--r--examples/widgets/widgets/validators/localeselector.cpp51
-rw-r--r--examples/widgets/widgets/validators/localeselector.h51
-rw-r--r--examples/widgets/widgets/validators/main.cpp51
-rw-r--r--examples/widgets/widgets/validators/validatorwidget.cpp51
-rw-r--r--examples/widgets/widgets/validators/validatorwidget.h56
-rw-r--r--examples/widgets/widgets/widgets.pro4
-rw-r--r--examples/widgets/widgets/wiggly/CMakeLists.txt41
-rw-r--r--examples/widgets/widgets/wiggly/dialog.cpp74
-rw-r--r--examples/widgets/widgets/wiggly/dialog.h66
-rw-r--r--examples/widgets/widgets/wiggly/main.cpp63
-rw-r--r--examples/widgets/widgets/wiggly/wiggly.pro11
-rw-r--r--examples/widgets/widgets/wiggly/wigglywidget.cpp111
-rw-r--r--examples/widgets/widgets/wiggly/wigglywidget.h79
-rw-r--r--examples/widgets/widgets/windowflags/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/windowflags/controllerwindow.cpp51
-rw-r--r--examples/widgets/widgets/windowflags/controllerwindow.h51
-rw-r--r--examples/widgets/widgets/windowflags/main.cpp51
-rw-r--r--examples/widgets/widgets/windowflags/previewwindow.cpp53
-rw-r--r--examples/widgets/widgets/windowflags/previewwindow.h51
-rw-r--r--examples/widgets/windowcontainer/CMakeLists.txt32
-rw-r--r--examples/widgets/windowcontainer/windowcontainer.cpp51
-rw-r--r--examples/xml/CMakeLists.txt11
-rw-r--r--examples/xml/dombookmarks/CMakeLists.txt30
-rw-r--r--examples/xml/dombookmarks/doc/src/dombookmarks.qdoc116
-rw-r--r--examples/xml/dombookmarks/main.cpp51
-rw-r--r--examples/xml/dombookmarks/mainwindow.cpp61
-rw-r--r--examples/xml/dombookmarks/mainwindow.h53
-rw-r--r--examples/xml/dombookmarks/xbeltree.cpp74
-rw-r--r--examples/xml/dombookmarks/xbeltree.h53
-rw-r--r--examples/xml/htmlinfo/CMakeLists.txt52
-rw-r--r--examples/xml/htmlinfo/apache_org.html281
-rw-r--r--examples/xml/htmlinfo/htmlinfo.pro10
-rw-r--r--examples/xml/htmlinfo/main.cpp129
-rw-r--r--examples/xml/htmlinfo/resources.qrc10
-rw-r--r--examples/xml/htmlinfo/simpleexample.html11
-rw-r--r--examples/xml/htmlinfo/trolltech_com.html955
-rw-r--r--examples/xml/htmlinfo/w3c_org.html507
-rw-r--r--examples/xml/htmlinfo/youtube_com.html1585
-rw-r--r--examples/xml/rsslisting/CMakeLists.txt44
-rw-r--r--examples/xml/rsslisting/main.cpp73
-rw-r--r--examples/xml/rsslisting/rsslisting.cpp258
-rw-r--r--examples/xml/rsslisting/rsslisting.h102
-rw-r--r--examples/xml/streambookmarks/main.cpp64
-rw-r--r--examples/xml/streambookmarks/mainwindow.h82
-rw-r--r--examples/xml/streambookmarks/xbelreader.h97
-rw-r--r--examples/xml/streambookmarks/xbelwriter.cpp107
-rw-r--r--examples/xml/streambookmarks/xbelwriter.h75
-rw-r--r--examples/xml/xml.pro8
-rw-r--r--examples/xml/xmlstreamlint/CMakeLists.txt36
-rw-r--r--examples/xml/xmlstreamlint/doc/src/xmlstreamlint.qdoc75
-rw-r--r--examples/xml/xmlstreamlint/main.cpp137
-rw-r--r--examples/xml/xmlstreamlint/xmlstreamlint.pro7
1780 files changed, 11715 insertions, 83786 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index a4fb347ba5..2bc1e4d378 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,36 +1,39 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
qt_examples_build_begin(EXTERNAL_BUILD)
add_subdirectory(corelib)
add_subdirectory(embedded)
add_subdirectory(qpa)
-if(TARGET Qt::DBus)
+if(TARGET Qt6::DBus)
add_subdirectory(dbus)
endif()
-if(TARGET Qt::Network)
+if(TARGET Qt6::Network)
add_subdirectory(network)
endif()
-if(TARGET Qt::Test)
+if(TARGET Qt6::Test)
add_subdirectory(qtestlib)
endif()
-if(TARGET Qt::Concurrent)
+if(TARGET Qt6::Concurrent)
add_subdirectory(qtconcurrent)
endif()
-if(TARGET Qt::Sql)
+if(TARGET Qt6::Sql)
add_subdirectory(sql)
endif()
-if(TARGET Qt::Widgets)
+if(TARGET Qt6::Widgets)
add_subdirectory(widgets)
endif()
-if(TARGET Qt::Xml)
+if(TARGET Qt6::Xml)
add_subdirectory(xml)
endif()
-if(TARGET Qt::Gui)
+if(TARGET Qt6::Gui)
add_subdirectory(gui)
endif()
-if(QT_FEATURE_opengl AND TARGET Qt::Gui)
+if(QT_FEATURE_opengl AND TARGET Qt6::Gui)
add_subdirectory(opengl)
endif()
-if(QT_FEATURE_vulkan AND TARGET Qt::Gui)
+if(QT_FEATURE_vulkan AND TARGET Qt6::Gui)
add_subdirectory(vulkan)
endif()
diff --git a/examples/corelib/CMakeLists.txt b/examples/corelib/CMakeLists.txt
index 30e2c8cd1f..638db2dda9 100644
--- a/examples/corelib/CMakeLists.txt
+++ b/examples/corelib/CMakeLists.txt
@@ -1,11 +1,17 @@
-# Generated from corelib.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
-add_subdirectory(bindableproperties)
add_subdirectory(ipc)
add_subdirectory(mimetypes)
add_subdirectory(serialization)
add_subdirectory(tools)
add_subdirectory(platform)
+if(QT_FEATURE_permissions)
+ add_subdirectory(permissions)
+endif()
if(QT_FEATURE_thread)
add_subdirectory(threads)
endif()
+if(QT_FEATURE_widgets)
+ add_subdirectory(bindableproperties)
+endif()
diff --git a/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt b/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt
index b2909589a5..c4a2e5fcfc 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt
+++ b/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt
@@ -1,33 +1,30 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
cmake_minimum_required(VERSION 3.16)
project(bindablesubscription LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/bindablesubscription")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+
+qt_standard_project_setup()
qt_add_executable(bindablesubscription
../shared/subscriptionwindow.cpp ../shared/subscriptionwindow.h ../shared/subscriptionwindow.ui
main.cpp
- main.cpp
bindablesubscription.cpp bindablesubscription.h
bindableuser.cpp bindableuser.h
)
-target_link_libraries(bindablesubscription PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Widgets
+
+target_link_libraries(bindablesubscription PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
)
# Resources:
@@ -37,7 +34,7 @@ set(countries_resource_files
"../shared/norway.png"
)
-qt6_add_resources(bindablesubscription "countries"
+qt_add_resources(bindablesubscription "countries"
PREFIX
"/"
BASE
diff --git a/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.cpp b/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.cpp
index 14b28b3fae..a52b68f85b 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.cpp
+++ b/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "bindablesubscription.h"
#include "bindableuser.h"
@@ -60,7 +13,7 @@ BindableSubscription::BindableSubscription(BindableUser *user) : m_user(user)
m_price.setBinding([this] { return qRound(calculateDiscount() * m_duration * basePrice()); });
m_isValid.setBinding([this] {
- return m_user->country() != BindableUser::None && m_user->age() > 12;
+ return m_user->country() != BindableUser::Country::AnyCountry && m_user->age() > 12;
});
}
@@ -91,8 +44,8 @@ double BindableSubscription::calculateDiscount() const
int BindableSubscription::basePrice() const
{
- if (m_user->country() == BindableUser::None)
+ if (m_user->country() == BindableUser::Country::AnyCountry)
return 0;
- return (m_user->country() == BindableUser::Norway) ? 100 : 80;
+ return (m_user->country() == BindableUser::Country::Norway) ? 100 : 80;
}
diff --git a/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.h b/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.h
index 763864d627..3406693b94 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.h
+++ b/examples/corelib/bindableproperties/bindablesubscription/bindablesubscription.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef BINDABLESUBSCRIPTION_H
#define BINDABLESUBSCRIPTION_H
@@ -61,7 +14,7 @@ class BindableUser;
class BindableSubscription
{
public:
- enum Duration { Monthly = 1, Quarterly = 4, Yearly = 12 };
+ enum Duration { Monthly = 1, Quarterly = 3, Yearly = 12 };
BindableSubscription(BindableUser *user);
BindableSubscription(const BindableSubscription &) = delete;
diff --git a/examples/corelib/bindableproperties/bindablesubscription/bindableuser.cpp b/examples/corelib/bindableproperties/bindablesubscription/bindableuser.cpp
index d30e203b61..9cc3b7a4a6 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/bindableuser.cpp
+++ b/examples/corelib/bindableproperties/bindablesubscription/bindableuser.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "bindableuser.h"
diff --git a/examples/corelib/bindableproperties/bindablesubscription/bindableuser.h b/examples/corelib/bindableproperties/bindablesubscription/bindableuser.h
index 65541e6ac1..d172a7cb22 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/bindableuser.h
+++ b/examples/corelib/bindableproperties/bindablesubscription/bindableuser.h
@@ -1,56 +1,10 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef BINDABLEUSER_H
#define BINDABLEUSER_H
+#include <QLocale>
#include <QProperty>
//! [bindable-user-class]
@@ -58,13 +12,9 @@
class BindableUser
{
public:
- enum Country {
- None,
- Finland,
- Germany,
- Norway,
- };
+ using Country = QLocale::Territory;
+public:
BindableUser() = default;
BindableUser(const BindableUser &) = delete;
@@ -77,7 +27,7 @@ public:
QBindable<int> bindableAge() { return &m_age; }
private:
- QProperty<Country> m_country { None };
+ QProperty<Country> m_country { QLocale::AnyTerritory };
QProperty<int> m_age { 0 };
};
diff --git a/examples/corelib/bindableproperties/bindablesubscription/main.cpp b/examples/corelib/bindableproperties/bindablesubscription/main.cpp
index df935679ad..6cf73c1337 100644
--- a/examples/corelib/bindableproperties/bindablesubscription/main.cpp
+++ b/examples/corelib/bindableproperties/bindablesubscription/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "../shared/subscriptionwindow.h"
#include "bindablesubscription.h"
@@ -84,15 +37,15 @@ int main(int argc, char *argv[])
// Initialize user data
QPushButton *germany = w.findChild<QPushButton *>("btnGermany");
QObject::connect(germany, &QPushButton::clicked, [&] {
- user.setCountry(BindableUser::Germany);
+ user.setCountry(BindableUser::Country::Germany);
});
QPushButton *finland = w.findChild<QPushButton *>("btnFinland");
QObject::connect(finland, &QPushButton::clicked, [&] {
- user.setCountry(BindableUser::Finland);
+ user.setCountry(BindableUser::Country::Finland);
});
QPushButton *norway = w.findChild<QPushButton *>("btnNorway");
QObject::connect(norway, &QPushButton::clicked, [&] {
- user.setCountry(BindableUser::Norway);
+ user.setCountry(BindableUser::Country::Norway);
});
QSpinBox *ageSpinBox = w.findChild<QSpinBox *>("ageSpinBox");
@@ -105,7 +58,8 @@ int main(int argc, char *argv[])
// Track price changes
//! [update-ui]
auto priceChangeHandler = subscription.bindablePrice().subscribe([&] {
- priceDisplay->setText(QString::number(subscription.price()));
+ QLocale lc{QLocale::AnyLanguage, user.country()};
+ priceDisplay->setText(lc.toCurrencyString(subscription.price() / subscription.duration()));
});
auto priceValidHandler = subscription.bindableIsValid().subscribe([&] {
diff --git a/examples/corelib/bindableproperties/doc/src/bindableproperties.qdoc b/examples/corelib/bindableproperties/doc/src/bindableproperties.qdoc
index 8c36921ff8..e63662dfbb 100644
--- a/examples/corelib/bindableproperties/doc/src/bindableproperties.qdoc
+++ b/examples/corelib/bindableproperties/doc/src/bindableproperties.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example bindableproperties
@@ -39,7 +15,7 @@
\image bindable_properties_example.png
- \section1 Modelling Subscription System with Signal/Slot Approach
+ \section1 Modeling Subscription System with Signal/Slot Approach
Let's first consider the usual pre-Qt 6 implementation.
To model the subscription service the \c Subscription class is used:
@@ -72,7 +48,7 @@
\note Both methods need to check if the data is actually changed and
only then emit the signals. \c setDuration() also needs to recalculate
- the price, when the duration has changed.
+ the price when the duration has changed.
The \c Subscription is not valid unless the user has a valid country and
age, so the validity is updated in the following way:
@@ -87,25 +63,25 @@
\snippet bindableproperties/subscription/user.cpp user-setters
In the \c main() function we initialize instances of \c User and
- \c Subsrcription:
+ \c Subscription:
\snippet bindableproperties/subscription/main.cpp init
- And do the proper signal-slot connections, to update the \c user and
- \c subsrcription data when UI elements change. That is straightforward,
+ And do the proper signal-slot connections to update the \c user and
+ \c subscription data when UI elements change. That is straightforward,
so we will skip this part.
- Next, we connect to \c Subscription::priceChanged(), to update the price
+ Next, we connect to \c Subscription::priceChanged() to update the price
in the UI when the price changes.
\snippet bindableproperties/subscription/main.cpp connect-price-changed
- We also connect to \c Subscription::isValidChanged(), to disable the price
+ We also connect to \c Subscription::isValidChanged() to disable the price
display if the subscription isn't valid.
\snippet bindableproperties/subscription/main.cpp connect-validity-changed
- Because the subsrcription price and validity also depend on the user's
+ Because the subscription price and validity also depend on the user's
country and age, we also need to connect to the \c User::countryChanged()
and \c User::ageChanged() signals and update \c subscription accordingly.
@@ -114,12 +90,12 @@
This works, but there are some problems:
\list
- \li There's a lot of boilerplate code for the signal-slot connections,
- to be able to react to changes to \c user or \c subscription. If any of
- the dependencies of the price changes, we need to remember to emit the
- corresponding notifier signals, to recalculate the price and update it in
+ \li There's a lot of boilerplate code for the signal-slot connections
+ in order to properly track changes to both \c user and \c subscription.
+ If any of the dependencies of the price changes, we need to remember to emit the
+ corresponding notifier signals, recalculate the price, and update it in
the UI.
- \li If more dependencies for price calculation are added in future, we'll
+ \li If more dependencies for price calculation are added in the future, we'll
need to add more signal-slot connections and make sure all the dependencies
are properly updated whenever any of them changes. The overall complexity
will grow, and the code will become harder to maintain.
@@ -133,7 +109,7 @@
Now let's see how the \l {Qt Bindable Properties} can help to solve the
same problem. First, let's have a look at the \c BindableSubscription class,
- which is similar to the \c Subscription class, but is implemented using the
+ which is similar to the \c Subscription class, but is implemented using
bindable properties:
\snippet bindableproperties/bindablesubscription/bindablesubscription.h bindable-subscription-class
@@ -149,7 +125,7 @@
\snippet bindableproperties/bindablesubscription/bindableuser.h bindable-user-class
- The second differenece is in the implementation of these calsses. First of
+ The second difference is in the implementation of these classes. First of
all, the dependencies between \c subscription and \c user are now tracked via
binding expressions:
@@ -180,7 +156,7 @@
changes the value. The subscriptions will stay alive as long as the
corresponding handlers are alive.
- Also note that the copy constructors of both \c BindableSubsrciption and
+ Also note that the copy constructors of both \c BindableSubscription and
\c BindableUser are disabled, since it's not defined what should happen
with their bindings when copying.
@@ -190,7 +166,7 @@
\list
\li The boilerplate code for the signal-slot connections is removed, the
dependencies are now tracked automatically.
- \li The code is easier to maintain. Adding more dependencies in future
+ \li The code is easier to maintain. Adding more dependencies in the future
will only require adding the corresponding bindable properties and setting
the binding expressions that reflect the relationships between each other.
\li The \c Subscription and \c User classes don't depend on the metaobject
diff --git a/examples/corelib/bindableproperties/shared/subscriptionwindow.cpp b/examples/corelib/bindableproperties/shared/subscriptionwindow.cpp
index 03269dfa0c..0e17283d40 100644
--- a/examples/corelib/bindableproperties/shared/subscriptionwindow.cpp
+++ b/examples/corelib/bindableproperties/shared/subscriptionwindow.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "subscriptionwindow.h"
#include "ui_subscriptionwindow.h"
diff --git a/examples/corelib/bindableproperties/shared/subscriptionwindow.h b/examples/corelib/bindableproperties/shared/subscriptionwindow.h
index 9bc3acd91a..75f6a1eb83 100644
--- a/examples/corelib/bindableproperties/shared/subscriptionwindow.h
+++ b/examples/corelib/bindableproperties/shared/subscriptionwindow.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SUBSCRIPTIONWINDOW_H
#define SUBSCRIPTIONWINDOW_H
diff --git a/examples/corelib/bindableproperties/subscription/CMakeLists.txt b/examples/corelib/bindableproperties/subscription/CMakeLists.txt
index a5480e03c7..0dd027fc24 100644
--- a/examples/corelib/bindableproperties/subscription/CMakeLists.txt
+++ b/examples/corelib/bindableproperties/subscription/CMakeLists.txt
@@ -1,21 +1,18 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
cmake_minimum_required(VERSION 3.16)
project(subscription LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/bindableproperties/subscription")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+
+qt_standard_project_setup()
qt_add_executable(subscription
../shared/subscriptionwindow.cpp ../shared/subscriptionwindow.h ../shared/subscriptionwindow.ui
@@ -23,12 +20,12 @@ qt_add_executable(subscription
subscription.cpp subscription.h
user.cpp user.h
)
-target_link_libraries(subscription PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Widgets
-)
+target_link_libraries(subscription PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
+)
# Resources:
set(countries_resource_files
@@ -37,7 +34,7 @@ set(countries_resource_files
"../shared/norway.png"
)
-qt6_add_resources(subscription "countries"
+qt_add_resources(subscription "countries"
PREFIX
"/"
BASE
diff --git a/examples/corelib/bindableproperties/subscription/main.cpp b/examples/corelib/bindableproperties/subscription/main.cpp
index 6ff0c960f1..1f41486728 100644
--- a/examples/corelib/bindableproperties/subscription/main.cpp
+++ b/examples/corelib/bindableproperties/subscription/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "../shared/subscriptionwindow.h"
#include "subscription.h"
@@ -87,15 +40,15 @@ int main(int argc, char *argv[])
// Initialize user data
QPushButton *germany = w.findChild<QPushButton *>("btnGermany");
QObject::connect(germany, &QPushButton::clicked, &user, [&] {
- user.setCountry(User::Germany);
+ user.setCountry(User::Country::Germany);
});
QPushButton *finland = w.findChild<QPushButton *>("btnFinland");
QObject::connect(finland, &QPushButton::clicked, &user, [&] {
- user.setCountry(User::Finland);
+ user.setCountry(User::Country::Finland);
});
QPushButton *norway = w.findChild<QPushButton *>("btnNorway");
QObject::connect(norway, &QPushButton::clicked, &user, [&] {
- user.setCountry(User::Norway);
+ user.setCountry(User::Country::Norway);
});
QSpinBox *ageSpinBox = w.findChild<QSpinBox *>("ageSpinBox");
@@ -112,7 +65,8 @@ int main(int argc, char *argv[])
//! [connect-price-changed]
QObject::connect(&subscription, &Subscription::priceChanged, [&] {
- priceDisplay->setText(QString::number(subscription.price()));
+ QLocale lc{QLocale::AnyLanguage, user.country()};
+ priceDisplay->setText(lc.toCurrencyString(subscription.price() / subscription.duration()));
});
//! [connect-price-changed]
diff --git a/examples/corelib/bindableproperties/subscription/subscription.cpp b/examples/corelib/bindableproperties/subscription/subscription.cpp
index 20efe825f3..5d040f76d9 100644
--- a/examples/corelib/bindableproperties/subscription/subscription.cpp
+++ b/examples/corelib/bindableproperties/subscription/subscription.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "subscription.h"
#include "user.h"
@@ -104,10 +57,10 @@ double Subscription::calculateDiscount() const
int Subscription::basePrice() const
{
- if (m_user->country() == User::None)
+ if (m_user->country() == User::Country::AnyTerritory)
return 0;
- return (m_user->country() == User::Norway) ? 100 : 80;
+ return (m_user->country() == User::Country::Norway) ? 100 : 80;
}
//! [calculate-base-price]
@@ -117,7 +70,7 @@ int Subscription::basePrice() const
void Subscription::updateValidity()
{
bool isValid = m_isValid;
- m_isValid = m_user->country() != User::None && m_user->age() > 12;
+ m_isValid = m_user->country() != User::Country::AnyTerritory && m_user->age() > 12;
if (m_isValid != isValid)
emit isValidChanged();
diff --git a/examples/corelib/bindableproperties/subscription/subscription.h b/examples/corelib/bindableproperties/subscription/subscription.h
index 41d052e86f..8f0d34e948 100644
--- a/examples/corelib/bindableproperties/subscription/subscription.h
+++ b/examples/corelib/bindableproperties/subscription/subscription.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SUBSCRIPTION_H
#define SUBSCRIPTION_H
@@ -62,7 +15,7 @@ class Subscription : public QObject
{
Q_OBJECT
public:
- enum Duration { Monthly = 1, Quarterly = 4, Yearly = 12 };
+ enum Duration { Monthly = 1, Quarterly = 3, Yearly = 12 };
Subscription(User *user);
diff --git a/examples/corelib/bindableproperties/subscription/user.cpp b/examples/corelib/bindableproperties/subscription/user.cpp
index c2b0835330..575bcb13ee 100644
--- a/examples/corelib/bindableproperties/subscription/user.cpp
+++ b/examples/corelib/bindableproperties/subscription/user.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "user.h"
diff --git a/examples/corelib/bindableproperties/subscription/user.h b/examples/corelib/bindableproperties/subscription/user.h
index 8c9ebb1009..dd32a4fe23 100644
--- a/examples/corelib/bindableproperties/subscription/user.h
+++ b/examples/corelib/bindableproperties/subscription/user.h
@@ -1,56 +1,10 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef USER_H
#define USER_H
+#include <QLocale>
#include <QObject>
//! [user-class]
@@ -60,13 +14,9 @@ class User : public QObject
Q_OBJECT
public:
- enum Country {
- None,
- Finland,
- Germany,
- Norway,
- };
+ using Country = QLocale::Territory;
+public:
Country country() const { return m_country; }
void setCountry(Country country);
@@ -78,8 +28,8 @@ signals:
void ageChanged();
private:
- Country m_country = Country::None;
- int m_age = 0;
+ Country m_country { QLocale::AnyTerritory };
+ int m_age { 0 };
};
//! [user-class]
diff --git a/examples/corelib/ipc/CMakeLists.txt b/examples/corelib/ipc/CMakeLists.txt
index 214fa4c553..d1cfc7bc1b 100644
--- a/examples/corelib/ipc/CMakeLists.txt
+++ b/examples/corelib/ipc/CMakeLists.txt
@@ -1,12 +1,13 @@
-# Generated from ipc.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
-if(NOT TARGET Qt::Widgets)
+if(NOT TARGET Qt6::Widgets)
return()
endif()
if(QT_FEATURE_sharedmemory)
qt_internal_add_example(sharedmemory)
endif()
-if(QT_FEATURE_localserver AND TARGET Qt::Network)
+if(QT_FEATURE_localserver AND TARGET Qt6::Network)
qt_internal_add_example(localfortuneserver)
qt_internal_add_example(localfortuneclient)
endif()
diff --git a/examples/corelib/ipc/doc/src/localfortuneclient.qdoc b/examples/corelib/ipc/doc/src/localfortuneclient.qdoc
index 0ccc1f3a4e..f7fa46c932 100644
--- a/examples/corelib/ipc/doc/src/localfortuneclient.qdoc
+++ b/examples/corelib/ipc/doc/src/localfortuneclient.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example ipc/localfortuneclient
diff --git a/examples/corelib/ipc/doc/src/localfortuneserver.qdoc b/examples/corelib/ipc/doc/src/localfortuneserver.qdoc
index 8d44c99617..281fd3b4be 100644
--- a/examples/corelib/ipc/doc/src/localfortuneserver.qdoc
+++ b/examples/corelib/ipc/doc/src/localfortuneserver.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example ipc/localfortuneserver
diff --git a/examples/corelib/ipc/doc/src/sharedmemory.qdoc b/examples/corelib/ipc/doc/src/sharedmemory.qdoc
index fb2ae21812..7ea4ffb25d 100644
--- a/examples/corelib/ipc/doc/src/sharedmemory.qdoc
+++ b/examples/corelib/ipc/doc/src/sharedmemory.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example ipc/sharedmemory
diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
index e989a8e87f..b3337e1f46 100644
--- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
@@ -1,38 +1,34 @@
-# Generated from localfortuneclient.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(localfortuneclient LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Network)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Network Widgets)
+
+qt_standard_project_setup()
qt_add_executable(localfortuneclient
client.cpp client.h
main.cpp
)
+
set_target_properties(localfortuneclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
-target_link_libraries(localfortuneclient PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Network
- Qt::Widgets
+
+target_link_libraries(localfortuneclient PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Network
+ Qt6::Widgets
)
install(TARGETS localfortuneclient
diff --git a/examples/corelib/ipc/localfortuneclient/client.cpp b/examples/corelib/ipc/localfortuneclient/client.cpp
index 1ab0c34d6c..31f8cf475b 100644
--- a/examples/corelib/ipc/localfortuneclient/client.cpp
+++ b/examples/corelib/ipc/localfortuneclient/client.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QtWidgets>
#include <QtNetwork>
diff --git a/examples/corelib/ipc/localfortuneclient/client.h b/examples/corelib/ipc/localfortuneclient/client.h
index 7248428440..c7275252fe 100644
--- a/examples/corelib/ipc/localfortuneclient/client.h
+++ b/examples/corelib/ipc/localfortuneclient/client.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CLIENT_H
#define CLIENT_H
diff --git a/examples/corelib/ipc/localfortuneclient/main.cpp b/examples/corelib/ipc/localfortuneclient/main.cpp
index ed5cf4c569..3c2a7b284c 100644
--- a/examples/corelib/ipc/localfortuneclient/main.cpp
+++ b/examples/corelib/ipc/localfortuneclient/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QApplication>
diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
index 85ec67238a..411fc04eb5 100644
--- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
@@ -1,38 +1,34 @@
-# Generated from localfortuneserver.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(localfortuneserver LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Network)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Network Widgets)
+
+qt_standard_project_setup()
qt_add_executable(localfortuneserver
main.cpp
server.cpp server.h
)
+
set_target_properties(localfortuneserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
-target_link_libraries(localfortuneserver PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Network
- Qt::Widgets
+
+target_link_libraries(localfortuneserver PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Network
+ Qt6::Widgets
)
install(TARGETS localfortuneserver
diff --git a/examples/corelib/ipc/localfortuneserver/main.cpp b/examples/corelib/ipc/localfortuneserver/main.cpp
index 430005a1d3..291a6b3f22 100644
--- a/examples/corelib/ipc/localfortuneserver/main.cpp
+++ b/examples/corelib/ipc/localfortuneserver/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QApplication>
diff --git a/examples/corelib/ipc/localfortuneserver/server.cpp b/examples/corelib/ipc/localfortuneserver/server.cpp
index 9be5ed5051..bfdf425f5d 100644
--- a/examples/corelib/ipc/localfortuneserver/server.cpp
+++ b/examples/corelib/ipc/localfortuneserver/server.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "server.h"
diff --git a/examples/corelib/ipc/localfortuneserver/server.h b/examples/corelib/ipc/localfortuneserver/server.h
index 6b90ba5932..26e4792347 100644
--- a/examples/corelib/ipc/localfortuneserver/server.h
+++ b/examples/corelib/ipc/localfortuneserver/server.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SERVER_H
#define SERVER_H
diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
index c98caf79f8..21f5ff339b 100644
--- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt
+++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
@@ -1,36 +1,33 @@
-# Generated from sharedmemory.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(sharedmemory LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+
+qt_standard_project_setup()
qt_add_executable(sharedmemory
dialog.cpp dialog.h dialog.ui
main.cpp
)
+
set_target_properties(sharedmemory PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
-target_link_libraries(sharedmemory PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Widgets
+
+target_link_libraries(sharedmemory PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
)
install(TARGETS sharedmemory
diff --git a/examples/corelib/ipc/sharedmemory/dialog.cpp b/examples/corelib/ipc/sharedmemory/dialog.cpp
index 4e999d1bcf..b656cc0c67 100644
--- a/examples/corelib/ipc/sharedmemory/dialog.cpp
+++ b/examples/corelib/ipc/sharedmemory/dialog.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "dialog.h"
#include <QFileDialog>
@@ -136,8 +89,13 @@ void Dialog::loadFromFile()
int size = buffer.size();
if (!sharedMemory.create(size)) {
- ui.label->setText(tr("Unable to create shared memory segment."));
- return;
+ if (sharedMemory.error() == QSharedMemory::AlreadyExists) {
+ sharedMemory.attach();
+ } else {
+ ui.label->setText(tr("Unable to create or attach to shared memory segment: %1")
+ .arg(sharedMemory.errorString()));
+ return;
+ }
}
sharedMemory.lock();
char *to = (char*)sharedMemory.data();
diff --git a/examples/corelib/ipc/sharedmemory/dialog.h b/examples/corelib/ipc/sharedmemory/dialog.h
index 693333256c..0f8abaa8b6 100644
--- a/examples/corelib/ipc/sharedmemory/dialog.h
+++ b/examples/corelib/ipc/sharedmemory/dialog.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef DIALOG_H
#define DIALOG_H
diff --git a/examples/corelib/ipc/sharedmemory/main.cpp b/examples/corelib/ipc/sharedmemory/main.cpp
index 080f92c001..bf5bd457ae 100644
--- a/examples/corelib/ipc/sharedmemory/main.cpp
+++ b/examples/corelib/ipc/sharedmemory/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QApplication>
#include "dialog.h"
diff --git a/examples/corelib/mimetypes/CMakeLists.txt b/examples/corelib/mimetypes/CMakeLists.txt
index 3124006aaa..9ba3873bf4 100644
--- a/examples/corelib/mimetypes/CMakeLists.txt
+++ b/examples/corelib/mimetypes/CMakeLists.txt
@@ -1,5 +1,6 @@
-# Generated from mimetypes.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
-if(TARGET Qt::Widgets)
+if(TARGET Qt6::Widgets)
qt_internal_add_example(mimetypebrowser)
endif()
diff --git a/examples/corelib/mimetypes/doc/src/mimetypebrowser.qdoc b/examples/corelib/mimetypes/doc/src/mimetypebrowser.qdoc
index 7b204db51a..17c8d765a8 100644
--- a/examples/corelib/mimetypes/doc/src/mimetypebrowser.qdoc
+++ b/examples/corelib/mimetypes/doc/src/mimetypebrowser.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example mimetypes/mimetypebrowser
diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
index 313676fa8e..c03ccae085 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
+++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
@@ -1,37 +1,34 @@
-# Generated from mimetypebrowser.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(mimetypebrowser LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+
+qt_standard_project_setup()
qt_add_executable(mimetypebrowser
main.cpp
mainwindow.cpp mainwindow.h
mimetypemodel.cpp mimetypemodel.h
)
+
set_target_properties(mimetypebrowser PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE FALSE
)
-target_link_libraries(mimetypebrowser PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Widgets
+
+target_link_libraries(mimetypebrowser PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
)
install(TARGETS mimetypebrowser
diff --git a/examples/corelib/mimetypes/mimetypebrowser/main.cpp b/examples/corelib/mimetypes/mimetypebrowser/main.cpp
index 679d97dc7b..9aaad7b836 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/main.cpp
+++ b/examples/corelib/mimetypes/mimetypebrowser/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "mainwindow.h"
diff --git a/examples/corelib/mimetypes/mimetypebrowser/mainwindow.cpp b/examples/corelib/mimetypes/mimetypebrowser/mainwindow.cpp
index 7315523f98..07cb3872d4 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/mainwindow.cpp
+++ b/examples/corelib/mimetypes/mimetypebrowser/mainwindow.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "mainwindow.h"
#include "mimetypemodel.h"
diff --git a/examples/corelib/mimetypes/mimetypebrowser/mainwindow.h b/examples/corelib/mimetypes/mimetypebrowser/mainwindow.h
index 978cdec4f4..4554d0873d 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/mainwindow.h
+++ b/examples/corelib/mimetypes/mimetypebrowser/mainwindow.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
diff --git a/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.cpp b/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.cpp
index 64732ba980..3598bb542e 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.cpp
+++ b/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "mimetypemodel.h"
diff --git a/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.h b/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.h
index 6c537f4001..b1c84a7797 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.h
+++ b/examples/corelib/mimetypes/mimetypebrowser/mimetypemodel.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef MIMETYPEMODEL_H
#define MIMETYPEMODEL_H
diff --git a/examples/corelib/permissions/CMakeLists.txt b/examples/corelib/permissions/CMakeLists.txt
new file mode 100644
index 0000000000..39a207b1ce
--- /dev/null
+++ b/examples/corelib/permissions/CMakeLists.txt
@@ -0,0 +1,47 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
+cmake_minimum_required(VERSION 3.16)
+project(permissions LANGUAGES CXX)
+
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/permissions")
+
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+
+qt_standard_project_setup()
+
+qt_add_executable(permissions
+ MANUAL_FINALIZATION
+ main.cpp
+ android/AndroidManifest.xml
+)
+
+set_target_properties(permissions PROPERTIES
+ MACOSX_BUNDLE TRUE
+ MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+ MACOSX_BUNDLE_GUI_IDENTIFIER "io.qt.examples.permissions"
+ QT_ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android"
+)
+
+target_link_libraries(permissions PRIVATE
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
+)
+
+install(TARGETS permissions
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+if(APPLE AND NOT CMAKE_GENERATOR STREQUAL "Xcode")
+ add_custom_command(TARGET permissions
+ POST_BUILD COMMAND codesign -s - permissions.app)
+endif()
+
+qt_finalize_executable(permissions)
diff --git a/examples/corelib/permissions/Info.plist b/examples/corelib/permissions/Info.plist
new file mode 100644
index 0000000000..57625d03dc
--- /dev/null
+++ b/examples/corelib/permissions/Info.plist
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <key>CFBundleName</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
+ <key>CFBundleExecutable</key>
+ <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
+
+ <key>CFBundleVersion</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+
+ <key>LSMinimumSystemVersion</key>
+ <string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
+
+ <key>NSHumanReadableCopyright</key>
+ <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
+
+ <key>CFBundleIconFile</key>
+ <string>${MACOSX_BUNDLE_ICON_FILE}</string>
+
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
+ <true/>
+
+ <key>NSBluetoothAlwaysUsageDescription</key>
+ <string>Testing BluetoothAlways</string>
+ <key>NSCalendarsUsageDescription</key>
+ <string>Testing Calendars</string>
+ <key>NSCameraUsageDescription</key>
+ <string>Testing Camera</string>
+ <key>NSContactsUsageDescription</key>
+ <string>Testing Contacts</string>
+ <key>NSHealthShareUsageDescription</key>
+ <string>Testing HealthShare</string>
+ <key>NSHealthUpdateUsageDescription</key>
+ <string>Testing HealthUpdate</string>
+ <key>NSLocationUsageDescription</key>
+ <string>Testing Location on macOS</string>
+ <key>NSLocationWhenInUseUsageDescription</key>
+ <string>Testing Location when in use on iOS</string>
+ <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
+ <string>Testing Location always and when in use on iOS</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Testing Microphone</string>
+
+</dict>
+</plist>
diff --git a/examples/corelib/permissions/android/AndroidManifest.xml b/examples/corelib/permissions/android/AndroidManifest.xml
new file mode 100644
index 0000000000..557ec8007e
--- /dev/null
+++ b/examples/corelib/permissions/android/AndroidManifest.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.qtproject.example"
+ android:installLocation="auto"
+ android:versionCode="-- %%INSERT_VERSION_CODE%% --"
+ android:versionName="-- %%INSERT_VERSION_NAME%% --">
+ <uses-permission android:name="android.permission.CAMERA" />
+ <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
+ <uses-permission android:name="android.permission.BLUETOOTH" />
+ <uses-permission android:name="android.permission.READ_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_CONTACTS" />
+ <uses-permission android:name="android.permission.READ_CALENDAR" />
+ <uses-permission android:name="android.permission.WRITE_CALENDAR" />
+ <!-- %%INSERT_PERMISSIONS -->
+ <!-- %%INSERT_FEATURES -->
+ <supports-screens
+ android:anyDensity="true"
+ android:largeScreens="true"
+ android:normalScreens="true"
+ android:smallScreens="true" />
+ <application
+ android:name="org.qtproject.qt.android.bindings.QtApplication"
+ android:hardwareAccelerated="true"
+ android:label="-- %%INSERT_APP_NAME%% --"
+ android:requestLegacyExternalStorage="true"
+ android:allowNativeHeapPointerTagging="false"
+ android:allowBackup="true"
+ android:fullBackupOnly="false">
+ <activity
+ android:name="org.qtproject.qt.android.bindings.QtActivity"
+ android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
+ android:label="-- %%INSERT_APP_NAME%% --"
+ android:launchMode="singleTop"
+ android:screenOrientation="unspecified"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+
+ <meta-data
+ android:name="android.app.lib_name"
+ android:value="-- %%INSERT_APP_LIB_NAME%% --" />
+
+ <meta-data
+ android:name="android.app.extract_android_style"
+ android:value="minimal" />
+ </activity>
+ </application>
+</manifest>
diff --git a/examples/corelib/permissions/main.cpp b/examples/corelib/permissions/main.cpp
new file mode 100644
index 0000000000..913aed2fec
--- /dev/null
+++ b/examples/corelib/permissions/main.cpp
@@ -0,0 +1,87 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#include <QtCore/qmetaobject.h>
+#include <QtWidgets/qapplication.h>
+#include <QtWidgets/qwidget.h>
+#include <QtWidgets/qpushbutton.h>
+#include <QtWidgets/qlayout.h>
+#include <QtWidgets/qmessagebox.h>
+
+#if !QT_CONFIG(permissions)
+#error "This example requires the permissions feature, which is not enabled on this platform"
+#endif
+
+#include <QtCore/qpermissions.h>
+
+class PermissionWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit PermissionWidget(QWidget *parent = nullptr) : QWidget(parent)
+ {
+ QVBoxLayout *layout = new QVBoxLayout(this);
+
+ static const QPermission permissions[] = {
+ QCameraPermission{},
+ QMicrophonePermission{},
+ QBluetoothPermission{},
+ QContactsPermission{},
+ QCalendarPermission{},
+ QLocationPermission{}
+ };
+
+ for (auto permission : permissions) {
+ auto permissionName = QString::fromLatin1(permission.type().name());
+ QPushButton *button = new QPushButton(permissionName.sliced(1, permissionName.length() - 11));
+ connect(button, &QPushButton::clicked, this, &PermissionWidget::buttonClicked);
+ button->setProperty("permission", QVariant::fromValue(permission));
+ layout->addWidget(button);
+ }
+
+ QPalette pal = palette();
+ pal.setBrush(QPalette::Window, QGradient(QGradient::HappyAcid));
+ setPalette(pal);
+ }
+
+private:
+ void buttonClicked()
+ {
+ auto *button = static_cast<QPushButton*>(sender());
+
+ auto permission = button->property("permission").value<QPermission>();
+ Q_ASSERT(permission.type().isValid());
+
+ switch (qApp->checkPermission(permission)) {
+ case Qt::PermissionStatus::Undetermined:
+ qApp->requestPermission(permission, this,
+ [button](const QPermission &permission) {
+ Q_UNUSED(permission);
+ emit button->clicked(); // Try again
+ }
+ );
+ return;
+ case Qt::PermissionStatus::Denied:
+ QMessageBox::warning(this, button->text(),
+ tr("Permission is needed to use %1. Please grant permission "\
+ "to this application in the system settings.").arg(button->text()));
+ return;
+ case Qt::PermissionStatus::Granted:
+ break; // Proceed
+ }
+
+ // All good, can use the feature
+ QMessageBox::information(this, button->text(),
+ tr("Accessing %1").arg(button->text()));
+ }
+};
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv);
+ PermissionWidget widget;
+ widget.show();
+ return app.exec();
+}
+
+#include "main.moc"
diff --git a/examples/corelib/platform/CMakeLists.txt b/examples/corelib/platform/CMakeLists.txt
index 1a10578a1f..8eeda13095 100644
--- a/examples/corelib/platform/CMakeLists.txt
+++ b/examples/corelib/platform/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
if(ANDROID)
add_subdirectory(androidnotifier)
endif()
diff --git a/examples/corelib/platform/androidnotifier/CMakeLists.txt b/examples/corelib/platform/androidnotifier/CMakeLists.txt
index 54aa5043c0..e5271edd79 100644
--- a/examples/corelib/platform/androidnotifier/CMakeLists.txt
+++ b/examples/corelib/platform/androidnotifier/CMakeLists.txt
@@ -1,52 +1,55 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
cmake_minimum_required(VERSION 3.16)
project(androidnotifier LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
+if(NOT ANDROID)
+ message(FATAL_ERROR "Example only works on Android")
+endif()
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
-find_package(Qt6 COMPONENTS Widgets REQUIRED)
+find_package(Qt6 REQUIRED COMPONENTS Widgets)
+
+qt_standard_project_setup()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/platform/androidnotifier")
-set(PROJECT_SOURCES
- main.cpp
- notificationclient.cpp
- notificationclient.h
+qt_add_executable(androidnotifier
+ MANUAL_FINALIZATION
+ main.cpp
+ notificationclient.cpp
+ notificationclient.h
+ android/src/org/qtproject/example/androidnotifier/NotificationClient.java
+ android/AndroidManifest.xml
)
-if(ANDROID)
- qt_add_executable(androidnotifier
- MANUAL_FINALIZATION
- ${PROJECT_SOURCES})
- target_link_libraries(androidnotifier PRIVATE Qt6::Widgets)
-
- set_property(TARGET androidnotifier APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
- ${CMAKE_CURRENT_SOURCE_DIR}/android)
-
- qt_finalize_executable(androidnotifier)
-
- set(qml_resource_files
- "images/happy.png"
- "images/sad.png"
- )
-
- qt6_add_resources(androidnotifier "main"
- PREFIX
- "/"
- FILES
- ${qml_resource_files}
- )
-
- install(TARGETS androidnotifier
- RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
- BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
- LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
- )
-endif()
+target_link_libraries(androidnotifier PRIVATE
+ Qt6::Widgets
+)
+
+set_property(TARGET androidnotifier APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
+ ${CMAKE_CURRENT_SOURCE_DIR}/android)
+
+qt_finalize_executable(androidnotifier)
+
+set(qml_resource_files
+ "images/happy.png"
+ "images/sad.png"
+)
+
+qt_add_resources(androidnotifier "main"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+install(TARGETS androidnotifier
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/corelib/platform/androidnotifier/android/AndroidManifest.xml b/examples/corelib/platform/androidnotifier/android/AndroidManifest.xml
index 4850a8e8e6..b2d9cc7680 100644
--- a/examples/corelib/platform/androidnotifier/android/AndroidManifest.xml
+++ b/examples/corelib/platform/androidnotifier/android/AndroidManifest.xml
@@ -23,13 +23,16 @@
android:hardwareAccelerated="true"
android:label="Qt Notifier"
android:requestLegacyExternalStorage="true"
- android:icon="@drawable/icon">
+ android:icon="@drawable/icon"
+ android:allowBackup="true"
+ android:fullBackupOnly="false">
<activity
android:name="org.qtproject.qt.android.bindings.QtActivity"
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
android:label="Qt Notifier"
android:launchMode="singleTop"
- android:screenOrientation="unspecified">
+ android:screenOrientation="unspecified"
+ android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
diff --git a/examples/corelib/platform/androidnotifier/android/src/org/qtproject/example/androidnotifier/NotificationClient.java b/examples/corelib/platform/androidnotifier/android/src/org/qtproject/example/androidnotifier/NotificationClient.java
index c43513b17a..4cd6c959f6 100644
--- a/examples/corelib/platform/androidnotifier/android/src/org/qtproject/example/androidnotifier/NotificationClient.java
+++ b/examples/corelib/platform/androidnotifier/android/src/org/qtproject/example/androidnotifier/NotificationClient.java
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
package org.qtproject.example.androidnotifier;
diff --git a/examples/corelib/platform/androidnotifier/doc/src/androidnotifier-example.qdoc b/examples/corelib/platform/androidnotifier/doc/src/androidnotifier-example.qdoc
index b1e4243d56..186be9ec5a 100644
--- a/examples/corelib/platform/androidnotifier/doc/src/androidnotifier-example.qdoc
+++ b/examples/corelib/platform/androidnotifier/doc/src/androidnotifier-example.qdoc
@@ -1,33 +1,10 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** 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. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\title Qt Android Notifier
\example platform/androidnotifier
+ \examplecategory {Mobile}
\brief Demonstrates calling Java code from Qt in an Android application.
\image androidnotifier.png
@@ -71,7 +48,7 @@
The call to the Java meethod use \l QJniObject which relies on the Java Native
Interface (JNI) APIs to communicate with Java. Also, in the previous snippet,
- we are passing the app's context object which the the static Java code can use
+ we are passing the app's context object, which the static Java code can use
to tap into the app's specific properties and APIs.
To make sure our smiley buttons do what they are supposed to, we add the
diff --git a/examples/corelib/platform/androidnotifier/main.cpp b/examples/corelib/platform/androidnotifier/main.cpp
index 8b2e937351..33e77c7018 100644
--- a/examples/corelib/platform/androidnotifier/main.cpp
+++ b/examples/corelib/platform/androidnotifier/main.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "notificationclient.h"
diff --git a/examples/corelib/platform/androidnotifier/notificationclient.cpp b/examples/corelib/platform/androidnotifier/notificationclient.cpp
index b2093234b9..af1cb7322a 100644
--- a/examples/corelib/platform/androidnotifier/notificationclient.cpp
+++ b/examples/corelib/platform/androidnotifier/notificationclient.cpp
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "notificationclient.h"
diff --git a/examples/corelib/platform/androidnotifier/notificationclient.h b/examples/corelib/platform/androidnotifier/notificationclient.h
index f821dbfc8d..4ed7bfff50 100644
--- a/examples/corelib/platform/androidnotifier/notificationclient.h
+++ b/examples/corelib/platform/androidnotifier/notificationclient.h
@@ -1,52 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2021 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef NOTIFICATIONCLIENT_H
#define NOTIFICATIONCLIENT_H
diff --git a/examples/corelib/serialization/CMakeLists.txt b/examples/corelib/serialization/CMakeLists.txt
index 486f5d0c14..7dd5d476d1 100644
--- a/examples/corelib/serialization/CMakeLists.txt
+++ b/examples/corelib/serialization/CMakeLists.txt
@@ -1,5 +1,12 @@
-# Generated from serialization.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
qt_internal_add_example(cbordump)
qt_internal_add_example(convert)
qt_internal_add_example(savegame)
+if(TARGET Qt6::Network AND TARGET Qt6::Widgets)
+ qt_internal_add_example(rsslisting)
+endif()
+if(TARGET Qt6::Widgets)
+ qt_internal_add_example(streambookmarks)
+endif()
diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt
index 106df4b24d..813b02b9c0 100644
--- a/examples/corelib/serialization/cbordump/CMakeLists.txt
+++ b/examples/corelib/serialization/cbordump/CMakeLists.txt
@@ -1,31 +1,25 @@
-# Generated from cbordump.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(cbordump LANGUAGES CXX)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
+ set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump")
-find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 REQUIRED COMPONENTS Core)
+
+qt_standard_project_setup()
qt_add_executable(cbordump
main.cpp
)
-set_target_properties(cbordump PROPERTIES
- WIN32_EXECUTABLE FALSE
- MACOSX_BUNDLE FALSE
-)
-target_link_libraries(cbordump PUBLIC
- Qt::Core
+
+target_link_libraries(cbordump PRIVATE
+ Qt6::Core
)
install(TARGETS cbordump
diff --git a/examples/corelib/serialization/cbordump/cbortag.py b/examples/corelib/serialization/cbordump/cbortag.py
new file mode 100755
index 0000000000..8634dcdc20
--- /dev/null
+++ b/exam