qt5base-lts/examples/widgets/mainwindows/application
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
..
images Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
application.pro Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
application.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
main.cpp Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
mainwindow.cpp Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
mainwindow.h Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00