mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-13 16:41:48 +08:00
Write the layout
This commit is contained in:
24
mainwidget.h
24
mainwidget.h
@ -3,6 +3,7 @@
|
||||
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <QLineEdit>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
@ -42,9 +43,32 @@ private:
|
||||
//好友申请标签页按钮
|
||||
QPushButton* applyTabBtn;
|
||||
|
||||
//用户搜索框
|
||||
QLineEdit* searchEdit;
|
||||
//添加好友按钮
|
||||
QPushButton* addFriendBtn;
|
||||
|
||||
enum ActiveTab {
|
||||
SESSION_LIST,
|
||||
FRIEND_LIST,
|
||||
APPLY_LIST
|
||||
};
|
||||
|
||||
ActiveTab activeTab = SESSION_LIST;
|
||||
|
||||
void initMainWindow();
|
||||
void initLeftWindow();
|
||||
void initMidWindow();
|
||||
void initRightWindow();
|
||||
|
||||
void initSignalSlot();
|
||||
|
||||
void switchTabToSession();
|
||||
void switchTabToFriend();
|
||||
void switchTabToApply();
|
||||
|
||||
void loadSessionList();
|
||||
void loadFriendList();
|
||||
void loadApplyList();
|
||||
};
|
||||
#endif // MAINWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user