summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/examples/book/book1
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
commitdda8474928bd7276e1fad8fb7a601e7c83ff2bc2 (patch)
tree7f83910598b33b12730035f086df20b5a53ab99c /tqtinterface/qt4/tools/designer/examples/book/book1
parent6260b6178868c03aab1644bf93b0ef043654bdb0 (diff)
downloadexperimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.tar.gz
experimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.zip
Added TQt4 HEAD
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/book/book1')
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book1/book.ui71
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book1/book.ui.h5
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book1/book1.pro8
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book1/main.cpp27
4 files changed, 111 insertions, 0 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui b/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui
new file mode 100644
index 0000000..40fac0e
--- /dev/null
+++ b/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui
@@ -0,0 +1,71 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>BookForm</class>
+<include location="local" implDecl="in declaration">book.ui.h</include>
+<layoutdefaults spacing="6" margin="11"/>
+<widget class="TQDialog">
+ <property name="name">
+ <cstring>BookForm</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>584</width>
+ <height>472</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Book</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TQDataTable">
+ <column>
+ <property name="text">
+ <string>Surname</string>
+ </property>
+ <property name="field">
+ <string>surname</string>
+ </property>
+ </column>
+ <column>
+ <property name="text">
+ <string>Forename</string>
+ </property>
+ <property name="field">
+ <string>forename</string>
+ </property>
+ </column>
+ <property name="name">
+ <cstring>AuthorcDataTable</cstring>
+ </property>
+ <property name="confirmDelete">
+ <bool>true</bool>
+ </property>
+ <property name="sort">
+ <stringlist>
+ <string>surname ASC</string>
+ <string>forename ASC</string>
+ </stringlist>
+ </property>
+ <property name="database" stdset="0">
+ <stringlist>
+ <string>(default)</string>
+ <string>author</string>
+ </stringlist>
+ </property>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <slot access="public" specifier="virtual" language="C++" returnType="void">primeInsertAuthor( QSqlRecord * )</slot>
+</connections>
+</UI>
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui.h
new file mode 100644
index 0000000..d727860
--- /dev/null
+++ b/tqtinterface/qt4/tools/designer/examples/book/book1/book.ui.h
@@ -0,0 +1,5 @@
+void BookForm::primeInsertAuthor( TQSqlRecord * )
+{
+
+}
+
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book1/book1.pro b/tqtinterface/qt4/tools/designer/examples/book/book1/book1.pro
new file mode 100644
index 0000000..a7e1f7b
--- /dev/null
+++ b/tqtinterface/qt4/tools/designer/examples/book/book1/book1.pro
@@ -0,0 +1,8 @@
+TEMPLATE = app
+LANGUAGE = C++
+
+CONFIG += qt warn_on release
+
+SOURCES += main.cpp ../connection.cpp
+FORMS = book.ui
+DBFILE = book.db
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book1/main.cpp b/tqtinterface/qt4/tools/designer/examples/book/book1/main.cpp
new file mode 100644
index 0000000..d244790
--- /dev/null
+++ b/tqtinterface/qt4/tools/designer/examples/book/book1/main.cpp
@@ -0,0 +1,27 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA.
+**
+** This file is part of an example program for TQt. This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#include <tqapplication.h>
+#include <tqsqldatabase.h>
+#include "book.h"
+#include "../connection.h"
+
+int main( int argc, char *argv[] )
+{
+ TQApplication app( argc, argv );
+
+ if ( ! createConnections() )
+ return 1;
+
+ BookForm bookForm;
+ app.setMainWidget( &bookForm );
+ bookForm.show();
+
+ return app.exec();
+}