forked from KangLin/RabbitIm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrmMain.h
executable file
·51 lines (42 loc) · 1.05 KB
/
FrmMain.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
49
50
51
#ifndef FRMMAIN_H
#define FRMMAIN_H
#include <QWidget>
#ifdef RABBITIM_WEBKIT
#include <QWebView>
#endif
#include "../FrmUserList/FrmUserList.h"
#include "../FrmGroupChat/FrmGroupChatList.h"
#include "../FrmRecentMessage/FrmRecentMsgList.h"
#include "../FrmApp/FrmApp.h"
namespace Ui {
class CFrmMain;
}
class MainWindow;
class CFrmMain : public QWidget
{
Q_OBJECT
friend class MainWindow;
public:
explicit CFrmMain(QWidget *parent = 0);
~CFrmMain();
private:
virtual void resizeEvent(QResizeEvent *e);
virtual void changeEvent(QEvent*);
virtual void showEvent(QShowEvent *);
private slots:
//更新本地用户信息
void slotUpdateLocaleUserInfo();
#ifdef RABBITIM_WEBKIT
private slots:
void slotWebViewLinkClicked(const QUrl &url);
private:
QSharedPointer<QWebView> m_weather;
#endif
private:
Ui::CFrmMain *ui;
CFrmRecentMsgList m_MessageList;
CFrmUserList m_UserList;
CFrmGroupChatList m_GroupChatList;
CFrmApp m_App;
};
#endif // FRMMAIN_H