source: trunk/examples/sql/overview/form2/main.h

Last change on this file was 202, checked in by rudi, 14 years ago

Added SQL examples

File size: 892 bytes
Line 
1/****************************************************************************
2** $Id: main.h 2051 2007-02-21 10:04:20Z chehrlic $
3**
4** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#include <qapplication.h>
12#include <qdialog.h>
13#include <qlabel.h>
14#include <qlayout.h>
15#include <qlineedit.h>
16#include <qpushbutton.h>
17#include <qsqldatabase.h>
18#include <qsqlcursor.h>
19#include <qsqlform.h>
20#include "../connection.h"
21
22class FormDialog : public QDialog
23{
24 Q_OBJECT
25 public:
26 FormDialog();
27 ~FormDialog();
28 public slots:
29 void save();
30 private:
31 QSqlCursor staffCursor;
32 QSqlForm *sqlForm;
33 QSqlIndex idIndex;
34};
Note: See TracBrowser for help on using the repository browser.