后续页面改下 listView 下面 在加上验证div,平时hide 查询需要验证的时,show 考虑 打招呼 也向上个div一样 还是, 直接添加到临时会话, 添加到好友列表内?
46 lines
885 B
C++
46 lines
885 B
C++
//
|
|
// Created by dongl on 23-6-1.
|
|
//
|
|
|
|
#ifndef IM_ADDFRINDWINDOW_H
|
|
#define IM_ADDFRINDWINDOW_H
|
|
|
|
#include <QWidget>
|
|
#include "user/UserOperation.h"
|
|
#include "user/User.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class addfrindwindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class addfrindwindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit addfrindwindow(QWidget *parent = nullptr);
|
|
~addfrindwindow() override;
|
|
|
|
private slots:
|
|
// add search user
|
|
void get_search_input();
|
|
// user show info 右键点击
|
|
void contextMenuEvent(QContextMenuEvent*);
|
|
|
|
//// 右键的三种操作
|
|
// 添加好友
|
|
void add_friends_action();
|
|
// 个人主页
|
|
void user_home_action();
|
|
// 打招呼
|
|
void say_hello_action();
|
|
|
|
private:
|
|
Ui::addfrindwindow *ui;
|
|
UserOperation* userOperation = nullptr;
|
|
bool user_show_info = false;
|
|
User user;
|
|
};
|
|
|
|
|
|
#endif //IM_ADDFRINDWINDOW_H
|