OSDN Git Service

WelcomePage: adding hasSearchBar property to IWelcomePage
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Sep 2011 09:32:32 +0000 (11:32 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Sep 2011 10:41:50 +0000 (12:41 +0200)
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: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
src/libs/utils/iwelcomepage.h

index e07563f..6dc93ed 100644 (file)
@@ -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