qt5base-lts/examples/widgets
Friedemann Kleint b693900da5 Polish the widgets/mainwindows/application example.
- Introduce Qt 5 signals & slot syntax
- Use QCommandLineParser to obtain file arguments
- Merge MainWindow::createMenus()/createQToolBars()
  into MainWindow::createActions(), removing the need
  to store the actions as member variables.
  Use QMenu::addAction() for brevity.
- Use QIcon::fromTheme() to obtain system icons and use
  resource icons as fallback.
- Rewrite settings code to use
  QWidget::saveGeometry(), Widget::restoreGeometry() since
  saving size and position does not work well with multiple
  screens. Query the available size when determining
  the initial size instead of using hard-coded values
  for High-DPI screens.
- Fix minor issues in code, use multi-argument version
  of QString::arg(), QDir::toNativeSeparators() to
  present file paths to the user.
- Fix snippet references accordingly.

Change-Id: I1bc49a8913aa6d669e0e666f04be3f1f42eaba10
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
2015-07-13 10:18:40 +00:00
..
animation Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
desktop Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
dialogs fix usage of wince scope 2015-06-05 10:29:10 +00:00
doc Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
draganddrop Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
effects Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
gestures Merge remote-tracking branch 'origin/5.4' into 5.5 2015-06-01 17:46:58 +02:00
graphicsview fix usage of wince scope 2015-06-05 10:29:10 +00:00
itemviews Polish the Dir View example. 2015-03-06 18:09:42 +00:00
layouts Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
mac Fixed license headers 2015-02-17 18:46:09 +00:00
mainwindows Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
painting Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
richtext Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
scroller Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
statemachine Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
tools Add QRegularExpression based regexp tool 2015-04-02 13:19:30 +00:00
tutorials Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
widgets Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
windowcontainer Make the windowcontainer example more robust 2015-05-12 08:58:47 +00:00
widgets.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00