-
Notifications
You must be signed in to change notification settings - Fork 6
/
contactpage.h
48 lines (35 loc) · 910 Bytes
/
contactpage.h
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
#ifndef CONTACTPAGE_H
#define CONTACTPAGE_H
#include <QWidget>
#include <QVector>
#include "singlecontactwidget.h"
namespace Ui {
class ContactPage;
}
class ContactPage : public QWidget
{
Q_OBJECT
public:
explicit ContactPage(QWidget *parent = 0);
~ContactPage();
void showAddContactPage();
void retranslator(QString language);
signals:
void showShadowWidget();
void hideShadowWidget();
void gotoTransferPage(QString);
private slots:
void on_addContactBtn_clicked();
void updateContactsList();
void shadowWidgetShow();
void shadowWidgetHide();
void editContact(QString address, QString remark);
void jsonDataUpdated(QString id);
private:
Ui::ContactPage *ui;
QString oldRemark;
QVector<SingleContactWidget*> contactVector;
void releaseVector();
bool eventFilter(QObject *watched, QEvent *e);
};
#endif // CONTACTPAGE_H