From dba036816b279bc1539a9f3894fbc414665d2bce Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 21 Apr 2019 23:22:20 +0900 Subject: Removed unnecessary and/or TDE-unrelated code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- .../qt4/tools/designer/examples/book/book5/book.ui | 188 ------------- .../tools/designer/examples/book/book5/book.ui.h | 23 -- .../tools/designer/examples/book/book5/book5.pro | 8 - .../tools/designer/examples/book/book5/editbook.ui | 291 --------------------- .../designer/examples/book/book5/editbook.ui.h | 10 - .../tools/designer/examples/book/book5/main.cpp | 27 -- 6 files changed, 547 deletions(-) delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/book.ui delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h delete mode 100644 tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp (limited to 'tqtinterface/qt4/tools/designer/examples/book/book5') diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui b/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui deleted file mode 100644 index 399e7fd..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui +++ /dev/null @@ -1,188 +0,0 @@ - -BookForm -qdatabrowser.h -editbook.h -book.ui.h - - - - BookForm - - - - 0 - 0 - 530 - 524 - - - - Book - - - - unnamed - - - 11 - - - 6 - - - - Splitter1 - - - MShape - - - MShadow - - - Vertical - - - - - Surname - - - surname - - - - - Forename - - - forename - - - - AuthorDataTable - - - true - - - - surname ASC - forename ASC - - - - - (default) - author - - - - - - - Title - - - title - - - - - Price - - - price - - - - - Notes - - - notes - - - - BookDataTable - - - true - - - - title ASC - - - - - (default) - book - - - - - - - Layout5 - - - - unnamed - - - 0 - - - 6 - - - - EditPushButton - - - &Edit Books - - - - - QuitPushButton - - - &Quit - - - - - - - - - QuitPushButton - clicked() - BookForm - accept() - - - EditPushButton - clicked() - BookForm - editClicked() - - - AuthorDataTable - primeInsert(QSqlRecord*) - BookForm - primeInsertAuthor(QSqlRecord*) - - - AuthorDataTable - currentChanged(QSqlRecord*) - BookForm - newCurrentAuthor(QSqlRecord*) - - editClicked() - newCurrentAuthor( QSqlRecord * author ) - primeInsertAuthor( QSqlRecord * buffer ) - - diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h deleted file mode 100644 index c41fa17..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h +++ /dev/null @@ -1,23 +0,0 @@ -void BookForm::editClicked() -{ - EditBookForm *dialog = new EditBookForm( this, "Edit Book Form", TRUE ); - dialog->exec(); - delete dialog; -} - -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/book5/book5.pro b/tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro deleted file mode 100644 index 030db5f..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro +++ /dev/null @@ -1,8 +0,0 @@ -TEMPLATE = app -LANGUAGE = C++ - -CONFIG += qt warn_on release - -SOURCES += main.cpp ../connection.cpp -FORMS = book.ui editbook.ui -DBFILE = book.db diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui b/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui deleted file mode 100644 index 70a6df0..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui +++ /dev/null @@ -1,291 +0,0 @@ - -EditBookForm - - - EditBookForm - - - - 0 - 0 - 568 - 301 - - - - Edit Books - - - - unnamed - - - 11 - - - 6 - - - - BookDataBrowser - - - - title ASC - - - - - (default) - book - - - - false - - - - unnamed - - - 11 - - - 6 - - - - Layout2 - - - - unnamed - - - 0 - - - 6 - - - - labelPrice - - - Price - - - - - labelTitle - - - Title - - - - - QLineEditTitle - - - - - - - (default) - book - title - - - - - - QLineEditPrice - - - - (default) - book - price - - - - - - - - Layout3 - - - - unnamed - - - 0 - - - 6 - - - - PushButtonFirst - - - |< &First - - - - - PushButtonPrev - - - << &Prev - - - - - PushButtonNext - - - &Next >> - - - - - PushButtonLast - - - &Last >| - - - - - - - Layout6 - - - - unnamed - - - 0 - - - 6 - - - - PushButtonInsert - - - &Insert - - - - - PushButtonUpdate - - - &Update - - - - - PushButtonDelete - - - &Delete - - - - - PushButtonClose - - - &Close - - - - - - - - - - - PushButtonFirst - clicked() - BookDataBrowser - first() - - - BookDataBrowser - firstRecordAvailable( bool ) - PushButtonFirst - setEnabled(bool) - - - PushButtonPrev - clicked() - BookDataBrowser - prev() - - - BookDataBrowser - prevRecordAvailable( bool ) - PushButtonPrev - setEnabled(bool) - - - PushButtonNext - clicked() - BookDataBrowser - next() - - - BookDataBrowser - nextRecordAvailable( bool ) - PushButtonNext - setEnabled(bool) - - - PushButtonLast - clicked() - BookDataBrowser - last() - - - BookDataBrowser - lastRecordAvailable( bool ) - PushButtonLast - setEnabled(bool) - - - PushButtonInsert - clicked() - BookDataBrowser - insert() - - - PushButtonUpdate - clicked() - BookDataBrowser - update() - - - PushButtonDelete - clicked() - BookDataBrowser - del() - - - - editbook.ui.h - - - init() - destroy() - - - diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h deleted file mode 100644 index 4a8a636..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h +++ /dev/null @@ -1,10 +0,0 @@ -void EditBookForm::init() -{ - -} - -void EditBookForm::destroy() -{ - -} - diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp b/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp deleted file mode 100644 index d244790..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp +++ /dev/null @@ -1,27 +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 -#include -#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(); -} -- cgit v1.2.1