From 5a530b2b9e514a83b9e5f2a66f06b37d35cac3f2 Mon Sep 17 00:00:00 2001 From: "Anselmo L. S. Melo" Date: Sat, 29 Mar 2014 18:31:57 -0300 Subject: API updates This project was developed before the release of Qt 5.0, so some of the APIs had to be updated in order to build again. Change-Id: I579d7170ea0d80bd33aee29ec807461af603b0d3 Reviewed-by: Anselmo L. S. Melo --- examples/models/completionmodel/main.cpp | 2 +- examples/models/fsviewer/main.cpp | 2 +- examples/models/textfilemodel/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/models/completionmodel/main.cpp b/examples/models/completionmodel/main.cpp index 88415c2..ce1dc6b 100644 --- a/examples/models/completionmodel/main.cpp +++ b/examples/models/completionmodel/main.cpp @@ -72,7 +72,7 @@ int main(int argc, char **argv) QQuickView v; v.rootContext()->setContextProperty("completionModel", &model); - v.setWindowTitle(QObject::tr("Completion Model")); + v.setTitle(QObject::tr("Completion Model")); v.setSource(QUrl("qrc:/main.qml")); v.show(); diff --git a/examples/models/fsviewer/main.cpp b/examples/models/fsviewer/main.cpp index 09bbc50..9766246 100644 --- a/examples/models/fsviewer/main.cpp +++ b/examples/models/fsviewer/main.cpp @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) QQuickView v; v.rootContext()->setContextProperty("fsmodel", &model); - v.setWindowTitle(QObject::tr("Dir View")); + v.setTitle(QObject::tr("Dir View")); v.setResizeMode(QQuickView::SizeRootObjectToView); v.resize(640, 480); v.setSource(QUrl::fromLocalFile("main.qml")); diff --git a/examples/models/textfilemodel/main.cpp b/examples/models/textfilemodel/main.cpp index 48cf6a2..a775420 100644 --- a/examples/models/textfilemodel/main.cpp +++ b/examples/models/textfilemodel/main.cpp @@ -60,7 +60,7 @@ int main(int argc, char **argv) QQuickView v; v.rootContext()->setContextProperty("completionModel", &model); - v.setWindowTitle(QObject::tr("Completion Model with TextFileModel")); + v.setTitle(QObject::tr("Completion Model with TextFileModel")); v.setSource(QString("qrc:/main.qml")); v.show(); -- cgit v1.2.3