From dece4dccc7954f36c6b44646744e22b3f8c7c73c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 18 Mar 2011 17:14:53 +0100 Subject: Added (optional) touch optimized navigation of HTML5 apps Code provided by the Bostoner Browser team. The HTML5 wizard shows a checkbox "Enable touch optimized navigation" which enables flicking and enlarged click areas. By default, the option is turned off. Task-Number: QTCREATORBUG-3284 --- src/plugins/qt4projectmanager/wizards/html5appwizardpages.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/plugins/qt4projectmanager/wizards/html5appwizardpages.h') diff --git a/src/plugins/qt4projectmanager/wizards/html5appwizardpages.h b/src/plugins/qt4projectmanager/wizards/html5appwizardpages.h index a400271ff6..490eed5ca0 100644 --- a/src/plugins/qt4projectmanager/wizards/html5appwizardpages.h +++ b/src/plugins/qt4projectmanager/wizards/html5appwizardpages.h @@ -40,24 +40,26 @@ namespace Qt4ProjectManager { namespace Internal { -class Html5AppWizardSourcesPage : public QWizardPage +class Html5AppWizardOptionsPage : public QWizardPage { Q_OBJECT - Q_DISABLE_COPY(Html5AppWizardSourcesPage) + Q_DISABLE_COPY(Html5AppWizardOptionsPage) public: - explicit Html5AppWizardSourcesPage(QWidget *parent = 0); - virtual ~Html5AppWizardSourcesPage(); + explicit Html5AppWizardOptionsPage(QWidget *parent = 0); + virtual ~Html5AppWizardOptionsPage(); Html5App::Mode mainHtmlMode() const; QString mainHtmlData() const; + void setTouchOptimizationEndabled(bool enabled); + bool touchOptimizationEndabled() const; virtual bool isComplete() const; private slots: void setLineEditsEnabled(); private: - class Html5AppWizardSourcesPagePrivate *m_d; + class Html5AppWizardOptionsPagePrivate *m_d; }; } // namespace Internal -- cgit v1.2.1