qt5base-lts/examples/widgets
Friedemann Kleint bdbd26a3b7 Polish the widgets/mainwindows/mdi example.
- Introduce Qt 5 signals & slot syntax and remove the QSignalMapper
  used to map the triggered() signals of the per-MDI-child actions
  of the window menu to the activation slot by a functor to demonstrate
  the flexibility of the new connection syntax (the functor can
  in turn be replaced by a lambda expression once we have C++ 11).
- 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 static method invocation.

Change-Id: I3d5078ddbe3cb4eba65e188430ba3580cecb2c79
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-07-20 22:07:13 +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 Merge remote-tracking branch 'origin/5.5' into HEAD 2015-07-17 16:35:42 +02: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 Use QImageReader::setAutoTransform() in examples. 2015-07-13 20:16:35 +00: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/mdi example. 2015-07-20 22:07:13 +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 HEAD 2015-07-17 16:35:42 +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