diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2015-07-31 11:57:48 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-01-28 19:17:08 +0000 |
commit | e6de387ea0d2bf479caf7216f206ff35241faa3b (patch) | |
tree | 70fb2efc79c994ac1c36bda407a33d68b40b80aa /src/gui/kernel | |
parent | 910f719bd111813f37278b67d07f9d12cb03a4ff (diff) |
Polish the Tablet example
- Introduce Qt 5 signal-slot connection syntax.
- Merge MainWindow::createMenus()/createActions()
into MainWindow::createMenus(), removing the need
to store the actions as member variables.
Use QMenu::addAction() for brevity.
- For actions in QActionGroups, carry the Valuator enum
in QAction::data so that the slot to handle the selection
does not need to compare the QAction pointer itself.
- Use a non-modal QColorDialog, so that the user
can change colors more easily while drawing.
- Choose saner shortcut keys: control-Q should not
override the default usage for quitting the application,
and using shortcuts for About dialogs is anyway dubious.
- Improve the example documentation.
Change-Id: I57aaf5f5b885c13a953482dbcc41275dd3d6bff4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions