Write the layout

This commit is contained in:
xyz
2025-05-21 19:01:38 +08:00
parent b958d41d2a
commit c9d3b217bc
7 changed files with 261 additions and 1 deletions

View File

@ -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