summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/examples/book/book4
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-04-21 23:22:20 +0900
committerMichele Calgaro <[email protected]>2019-04-21 23:22:20 +0900
commitdba036816b279bc1539a9f3894fbc414665d2bce (patch)
tree29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/tools/designer/examples/book/book4
parent6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff)
downloadexperimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz
experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <[email protected]> Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/book/book4')
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book4/book.ui179
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book4/book.ui.h16
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book4/book4.pro8
-rw-r--r--tqtinterface/qt4/tools/designer/examples/book/book4/main.cpp29
4 files changed, 0 insertions, 232 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui b/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui
deleted file mode 100644
index d39d271..0000000
--- a/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui
+++ /dev/null
@@ -1,179 +0,0 @@
-<!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>546</width>
- <height>532</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="TQSplitter">
- <property name="name">
- <cstring>Splitter1</cstring>
- </property>
- <property name="frameShape">
- <enum>MShape</enum>
- </property>
- <property name="frameShadow">
- <enum>MShadow</enum>
- </property>
- <property name="orientation">
- <enum>Vertical</enum>
- </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>AuthorDataTable</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>
- <widget class="TQDataTable">
- <column>
- <property name="text">
- <string>Title</string>
- </property>
- <property name="field">
- <string>title</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Price</string>
- </property>
- <property name="field">
- <string>price</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Notes</string>
- </property>
- <property name="field">
- <string>notes</string>
- </property>
- </column>
- <property name="name">
- <cstring>BookDataTable</cstring>
- </property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
- <property name="sort">
- <stringlist>
- <string>title ASC</string>
- </stringlist>
- </property>
- <property name="database" stdset="0">
- <stringlist>
- <string>(default)</string>
- <string>book</string>
- </stringlist>
- </property>
- </widget>
- </widget>
- <widget class="TQLayoutWidget">
- <property name="name">
- <cstring>Layout2</cstring>
- </property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <widget class="TQPushButton">
- <property name="name">
- <cstring>EditPushButton</cstring>
- </property>
- <property name="text">
- <string>&amp;Edit Books</string>
- </property>
- </widget>
- <widget class="TQPushButton">
- <property name="name">
- <cstring>QuitPushButton</cstring>
- </property>
- <property name="text">
- <string>&amp;Quit</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection language="C++">
- <sender>AuthorDataTable</sender>
- <signal>currentChanged(QSqlRecord*)</signal>
- <receiver>BookForm</receiver>
- <slot>newCurrentAuthor(QSqlRecord*)</slot>
- </connection>
- <connection language="C++">
- <sender>AuthorDataTable</sender>
- <signal>primeInsert(QSqlRecord*)</signal>
- <receiver>BookForm</receiver>
- <slot>primeInsertAuthor(QSqlRecord*)</slot>
- </connection>
- <connection language="C++">
- <sender>QuitPushButton</sender>
- <signal>clicked()</signal>
- <receiver>BookForm</receiver>
- <slot>accept()</slot>
- </connection>
- <slot access="public" specifier="virtual" language="C++" returnType="void">newCurrentAuthor( QSqlRecord * author )</slot>
- <slot access="public" specifier="virtual" language="C++" returnType="void">primeInsertAuthor( QSqlRecord * buffer )</slot>
-</connections>
-</UI>
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui.h
deleted file mode 100644
index 730cafe..0000000
--- a/tqtinterface/qt4/tools/designer/examples/book/book4/book.ui.h
+++ /dev/null
@@ -1,16 +0,0 @@
-void BookForm::newCurrentAuthor( TQSqlRecord * author )
-{
- BookDataTable->setFilter( "authorid=" + author->value( "id" ).toString() );
- BookDataTable->refresh();
-}
-
-void BookForm::primeInsertAuthor( TQSqlRecord * buffer )
-{
- TQSqlQuery query;
- query.exec( "UPDATE sequence SET sequence = sequence + 1 WHERE tablename='author';" );
- query.exec( "SELECT sequence FROM sequence WHERE tablename='author';" );
- if ( query.next() ) {
- buffer->setValue( "id", query.value( 0 ) );
- }
-}
-
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book4/book4.pro b/tqtinterface/qt4/tools/designer/examples/book/book4/book4.pro
deleted file mode 100644
index a7e1f7b..0000000
--- a/tqtinterface/qt4/tools/designer/examples/book/book4/book4.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-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/book4/main.cpp b/tqtinterface/qt4/tools/designer/examples/book/book4/main.cpp
deleted file mode 100644
index f611d3d..0000000
--- a/tqtinterface/qt4/tools/designer/examples/book/book4/main.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/****************************************************************************
-**
-** 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();
-}
-
-