Commit 6fb27988 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

WelcomePage: adding hasSearchBar property to IWelcomePage

This property decides if the searchBar in the tool bar is shown or not.

Change-Id: Ic00da70a6427dff71b49f4341003d31b43338fed
Reviewed-on: http://codereview.qt-project.org/5705

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 0150f0b0
......@@ -51,6 +51,7 @@ class QTCREATOR_UTILS_EXPORT IWelcomePage : public QObject
Q_PROPERTY(QString title READ title CONSTANT)
Q_PROPERTY(QUrl pageLocation READ pageLocation CONSTANT)
Q_PROPERTY(int priority READ priority CONSTANT)
Q_PROPERTY(bool hasSearchBar READ hasSearchBar CONSTANT)
public:
IWelcomePage();
......@@ -60,6 +61,7 @@ public:
virtual QString title() const = 0;
virtual int priority() const { return 0; }
virtual void facilitateQml(QDeclarativeEngine *) {}
virtual bool hasSearchBar() const { return false; }
private:
// not used atm
......
Supports Markdown
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