summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/simpledommodel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-07-31 13:53:29 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-07-31 14:21:15 +0000
commitaf38340720aa26ce95ceae661e3fd1dfc2770195 (patch)
treedc8bdd90fc73e95f87a9aa4e6733a593b7932c6e /examples/widgets/itemviews/simpledommodel
parent7b72cc205ccd3e568b59a32a5cd751bd62b42e94 (diff)
Port examples/widgets/itemviews to new connection syntax.
Rename some slots to avoid ugly casts. Change-Id: I5d7b2c044ab6a725f7259e5e34f00c3d06fff050 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'examples/widgets/itemviews/simpledommodel')
-rw-r--r--examples/widgets/itemviews/simpledommodel/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/simpledommodel/mainwindow.cpp b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp
index 4dc87dac1a..c11fb40a0e 100644
--- a/examples/widgets/itemviews/simpledommodel/mainwindow.cpp
+++ b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp
@@ -49,8 +49,8 @@
MainWindow::MainWindow() : QMainWindow(), model(0)
{
fileMenu = menuBar()->addMenu(tr("&File"));
- fileMenu->addAction(tr("&Open..."), this, SLOT(openFile()), QKeySequence::Open);
- fileMenu->addAction(tr("E&xit"), this, SLOT(close()), QKeySequence::Quit);
+ fileMenu->addAction(tr("&Open..."), this, &MainWindow::openFile, QKeySequence::Open);
+ fileMenu->addAction(tr("E&xit"), this, &QWidget::close, QKeySequence::Quit);
model = new DomModel(QDomDocument(), this);
view = new QTreeView(this);