summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorKavindra Devi Palaraja <kavindra.palaraja@nokia.com>2009-07-01 16:47:37 +0200
committerKavindra Devi Palaraja <kavindra.palaraja@nokia.com>2009-07-01 16:47:37 +0200
commit87fd5298c8029e524ab7f7237450f796f9a738d1 (patch)
tree35b8386e8350e5aaaf47c56c96491e0765b73708 /doc/examples
parent87d125db74f5a24a5988e6deafb0d59c196709cd (diff)
downloadqt-creator-87fd5298c8029e524ab7f7237450f796f9a738d1.tar.gz
Doc - Starting on Part 6 and some fixes
Reviewed-By: TrustMe
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/addressbook-sdk/part6/addressbook.cpp13
-rw-r--r--doc/examples/addressbook-sdk/part6/addressbook.h23
-rw-r--r--doc/examples/addressbook-sdk/part6/addressbook.ui20
-rw-r--r--doc/examples/addressbook-sdk/part6/main.cpp10
-rw-r--r--doc/examples/addressbook-sdk/part6/part6.pro16
5 files changed, 82 insertions, 0 deletions
diff --git a/doc/examples/addressbook-sdk/part6/addressbook.cpp b/doc/examples/addressbook-sdk/part6/addressbook.cpp
new file mode 100644
index 0000000000..de35f5ac73
--- /dev/null
+++ b/doc/examples/addressbook-sdk/part6/addressbook.cpp
@@ -0,0 +1,13 @@
+#include "addressbook.h"
+#include "ui_addressbook.h"
+
+AddressBook::AddressBook(QWidget *parent)
+ : QWidget(parent), ui(new Ui::AddressBook)
+{
+ ui->setupUi(this);
+}
+
+AddressBook::~AddressBook()
+{
+ delete ui;
+}
diff --git a/doc/examples/addressbook-sdk/part6/addressbook.h b/doc/examples/addressbook-sdk/part6/addressbook.h
new file mode 100644
index 0000000000..b85a0acddb
--- /dev/null
+++ b/doc/examples/addressbook-sdk/part6/addressbook.h
@@ -0,0 +1,23 @@
+#ifndef ADDRESSBOOK_H
+#define ADDRESSBOOK_H
+
+#include <QtGui/QWidget>
+
+namespace Ui
+{
+ class AddressBook;
+}
+
+class AddressBook : public QWidget
+{
+ Q_OBJECT
+
+public:
+ AddressBook(QWidget *parent = 0);
+ ~AddressBook();
+
+private:
+ Ui::AddressBook *ui;
+};
+
+#endif // ADDRESSBOOK_H
diff --git a/doc/examples/addressbook-sdk/part6/addressbook.ui b/doc/examples/addressbook-sdk/part6/addressbook.ui
new file mode 100644
index 0000000000..7b771cc37b
--- /dev/null
+++ b/doc/examples/addressbook-sdk/part6/addressbook.ui
@@ -0,0 +1,20 @@
+<ui version="4.0">
+ <class>AddressBook</class>
+ <widget class="QWidget" name="AddressBook" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>600</width>
+ <height>400</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>AddressBook</string>
+ </property>
+ </widget>
+ <layoutDefault spacing="6" margin="11" />
+ <pixmapfunction></pixmapfunction>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/doc/examples/addressbook-sdk/part6/main.cpp b/doc/examples/addressbook-sdk/part6/main.cpp
new file mode 100644
index 0000000000..437a1c8352
--- /dev/null
+++ b/doc/examples/addressbook-sdk/part6/main.cpp
@@ -0,0 +1,10 @@
+#include <QtGui/QApplication>
+#include "addressbook.h"
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ AddressBook w;
+ w.show();
+ return a.exec();
+}
diff --git a/doc/examples/addressbook-sdk/part6/part6.pro b/doc/examples/addressbook-sdk/part6/part6.pro
new file mode 100644
index 0000000000..5394461fe9
--- /dev/null
+++ b/doc/examples/addressbook-sdk/part6/part6.pro
@@ -0,0 +1,16 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2009-07-01T16:46:33
+#
+#-------------------------------------------------
+
+TARGET = part6
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+ addressbook.cpp
+
+HEADERS += addressbook.h
+
+FORMS += addressbook.ui