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

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

Added SQL examples

File size: 765 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 <qdatetime.h>
13#include <qsqldatabase.h>
14#include <qsqlcursor.h>
15#include "../connection.h"
16
17class QSqlRecord;
18
19class InvoiceItemCursor : public QSqlCursor
20{
21 public:
22 InvoiceItemCursor();
23 QSqlRecord *primeInsert();
24 protected:
25 QVariant calculateField( const QString & name );
26};
Note: See TracBrowser for help on using the repository browser.