qt5base-lts/examples/widgets/mainwindows/sdi
Friedemann Kleint fdb8ef6507 Polish the widgets/mainwindows/sdi example.
- Introduce Qt 5 signals & slot syntax.
- Use QCommandLineParser to obtain file arguments, factor
  out positioning into tile() function to be able to
  use it from command line and open/new slots.
- 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 and and static method invocation.
- Fix snippet references accordingly.

Change-Id: I3ea0372bc7ff82247192f54620289352fb68d60f
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-07-17 14:14:56 +00:00
..
images Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
main.cpp Polish the widgets/mainwindows/sdi example. 2015-07-17 14:14:56 +00:00
mainwindow.cpp Polish the widgets/mainwindows/sdi example. 2015-07-17 14:14:56 +00:00
mainwindow.h Polish the widgets/mainwindows/sdi example. 2015-07-17 14:14:56 +00:00
sdi.pro Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
sdi.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00