aboutsummaryrefslogtreecommitdiff
path: root/demos/widgetsgallery/languagepage.h
diff options
context:
space:
mode:
authorTomas Junnonen <tomas.junnonen@nokia.com>2010-02-15 14:54:48 +0200
committerTomas Junnonen <tomas.junnonen@nokia.com>2010-02-15 14:54:48 +0200
commit0299123821c6c6367c23f59e135737f32b26c898 (patch)
tree48dcda1537576e0c646b4cfe823e83c2186a6a1e /demos/widgetsgallery/languagepage.h
Changes: First public release
RevBy: TrustMe
Diffstat (limited to 'demos/widgetsgallery/languagepage.h')
-rw-r--r--demos/widgetsgallery/languagepage.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/demos/widgetsgallery/languagepage.h b/demos/widgetsgallery/languagepage.h
new file mode 100644
index 00000000..7e69bf11
--- /dev/null
+++ b/demos/widgetsgallery/languagepage.h
@@ -0,0 +1,52 @@
+/***************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (directui@nokia.com)
+**
+** This file is part of libdui.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at directui@nokia.com.
+**
+** This library is free software; you can redistribute it and/or
+** modify it under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation
+** and appearing in the file LICENSE.LGPL included in the packaging
+** of this file.
+**
+****************************************************************************/
+
+#ifndef LANGUAGEPAGE_H
+#define LANGUAGEPAGE_H
+
+#include "templatepage.h"
+#include <QAbstractListModel>
+
+class DuiButton;
+class DuiComboBox;
+class QStandardItemModel;
+
+class LanguagePage : public TemplatePage
+{
+ Q_OBJECT
+
+public:
+ LanguagePage();
+ virtual ~LanguagePage();
+
+ virtual void createContent();
+
+public slots:
+ void changeLanguage(int index);
+
+protected:
+ void retranslateUi();
+
+private:
+ DuiComboBox *comboBox;
+ QStandardItemModel *model;
+};
+
+#endif
+