diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-07-31 13:53:29 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-07-31 14:21:15 +0000 |
commit | af38340720aa26ce95ceae661e3fd1dfc2770195 (patch) | |
tree | dc8bdd90fc73e95f87a9aa4e6733a593b7932c6e /examples/widgets/itemviews/fetchmore/window.cpp | |
parent | 7b72cc205ccd3e568b59a32a5cd751bd62b42e94 (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/fetchmore/window.cpp')
-rw-r--r-- | examples/widgets/itemviews/fetchmore/window.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/itemviews/fetchmore/window.cpp b/examples/widgets/itemviews/fetchmore/window.cpp index eefa09622d..aa4e0adc90 100644 --- a/examples/widgets/itemviews/fetchmore/window.cpp +++ b/examples/widgets/itemviews/fetchmore/window.cpp @@ -59,12 +59,12 @@ Window::Window(QWidget *parent) logViewer = new QTextBrowser; logViewer->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)); - connect(lineEdit, SIGNAL(textChanged(QString)), - model, SLOT(setDirPath(QString))); - connect(lineEdit, SIGNAL(textChanged(QString)), - logViewer, SLOT(clear())); - connect(model, SIGNAL(numberPopulated(int)), - this, SLOT(updateLog(int))); + connect(lineEdit, &QLineEdit::textChanged, + model, &FileListModel::setDirPath); + connect(lineEdit, &QLineEdit::textChanged, + logViewer, &QTextEdit::clear); + connect(model, &FileListModel::numberPopulated, + this, &Window::updateLog); QGridLayout *layout = new QGridLayout; layout->addWidget(label, 0, 0); |