Commit 23f771d4 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Renaming functions and parameters to something better.

parent 88af981a
......@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
QmlApplicationView qmlApp;
qmlApp.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH
qmlApp.setOrientation(QmlApplicationView::Auto); // ORIENTATION
qmlApp.setMainQml(QLatin1String("qml/app/app.qml")); // MAINQML
qmlApp.setMainQmlFile(QLatin1String("qml/app/app.qml")); // MAINQML
qmlApp.setLoadDummyData(false); // LOADDUMMYDATA
#ifdef Q_OS_SYMBIAN
......
......@@ -48,15 +48,15 @@ QmlApplicationView::~QmlApplicationView()
delete m_d;
}
void QmlApplicationView::setMainQml(const QString &mainQml)
void QmlApplicationView::setMainQmlFile(const QString &file)
{
m_d->mainQmlFile = QmlApplicationViewPrivate::adjustPath(mainQml);
m_d->mainQmlFile = QmlApplicationViewPrivate::adjustPath(file);
setSource(QUrl::fromLocalFile(m_d->mainQmlFile));
}
void QmlApplicationView::addImportPath(const QString &importPath)
void QmlApplicationView::addImportPath(const QString &path)
{
engine()->addImportPath(QmlApplicationViewPrivate::adjustPath(importPath));
engine()->addImportPath(QmlApplicationViewPrivate::adjustPath(path));
}
void QmlApplicationView::setOrientation(Orientation orientation)
......
......@@ -19,8 +19,8 @@ public:
QmlApplicationView(QWidget *parent = 0);
virtual ~QmlApplicationView();
void setMainQml(const QString &mainQml);
void addImportPath(const QString &importPath);
void setMainQmlFile(const QString &file);
void addImportPath(const QString &path);
void setOrientation(Orientation orientation);
void setLoadDummyData(bool loadDummyData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment