as_table.h

changeset 3
c1941114ca88
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:b39fe3abe97d 1:63263077e7dd
1 // 1 //
2 // OSSP asgui - Accounting system graphical user interface 2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 3 // Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 4 // Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 5 // Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 6 // Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
7 // 7 //
8 // This file is part of OSSP asgui, an accounting system graphical user 8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 9 // interface which can be found at http://asgui.europalab.com/.
10 // 10 //
11 // Permission to use, copy, modify, and distribute this software for 11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that 12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all 13 // the above copyright notice and this permission notice appear in all
14 // copies. 14 // copies.
30 // 30 //
31 31
32 #ifndef TITABLE_H 32 #ifndef TITABLE_H
33 #define TITABLE_H 33 #define TITABLE_H
34 34
35 #include <qtable.h> 35 #include <q3table.h>
36
37 //Added by qt3to4:
38 #include <QEvent>
36 39
37 #include "as_pref.h" 40 #include "as_pref.h"
38 41
39 42
40 class TiTable : public QTable 43 class TiTable : public Q3Table
41 { 44 {
42 Q_OBJECT 45 Q_OBJECT
43 46
44 private: 47 private:
45 int m_nSortcol; // To track current sort column 48 int m_nSortcol; // To track current sort column
47 bool m_bDirt; // To track dirty and clean states 50 bool m_bDirt; // To track dirty and clean states
48 Preferences *m_pTiprefs; // To read current color values 51 Preferences *m_pTiprefs; // To read current color values
49 52
50 public: 53 public:
51 // Try to match QTable's default constructor with an initializer list 54 // Try to match QTable's default constructor with an initializer list
52 TiTable(Preferences *pPrefs, QWidget *pParent = 0, const char *szName = 0) : QTable(pParent, szName) 55 TiTable(Preferences *pPrefs, QWidget *pParent = 0, const char *szName = 0) : Q3Table(pParent, szName)
53 { 56 {
54 this->setSortcol(0); 57 this->setSortcol(0);
55 this->setSortdir(true); 58 this->setSortdir(true);
56 this->setDirty(false); 59 this->setDirty(false);
57 this->setEdition(); // Reset edition state 60 this->setEdition(); // Reset edition state

mercurial