blob: 6d67b9b1202179b77fe6842a54dcab8c51654c63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#ifndef ACCOUNTDISPLAY_H
#define ACCOUNTDISPLAY_H
#include <qlistview.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtabwidget.h>
#include <qhbox.h>
class AccountDisplay : public QWidget
{
Q_OBJECT
public:
AccountDisplay ( QWidget *parent );
QHBox *firstline;
QPushButton* newaccount;
QPushButton* editaccount;
QPushButton* deleteaccount;
QPushButton* transferbutton;
QListView* listview;
QBoxLayout *layout;
void setTabs ( QWidget *newtab2, QTabWidget *newtabs );
int getIDColumn ();
void setToggleButton ();
public slots:
void addAccount ();
void editAccount ();
void deleteAccount ();
void accountTransfer ( bool state );
void getTransferAccounts ( QListViewItem * item );
void disableParentsWithChildren ();
void enableAccounts ();
private slots:
void saveColumnSize ( int column, int oldsize, int newsize );
void setAccountExpanded ( QListViewItem *item );
void setAccountCollapsed ( QListViewItem *item );
void saveSortingPreference ( int column );
private:
int type, firstaccountid, secondaccountid, cleared;
QWidget *tab2;
QTabWidget *maintabs;
};
#endif // ACCOUNTDISPLAY_H
|