mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-13 16:41:48 +08:00
40 lines
827 B
C++
40 lines
827 B
C++
#ifndef MESSAGEEDITAREA_H
|
|
#define MESSAGEEDITAREA_H
|
|
|
|
#include <QWidget>
|
|
#include <QPushButton>
|
|
#include <QPlainTextEdit>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QScrollBar>
|
|
//#include <QGraphicsDropShadowEffect>
|
|
//#include <qpropertyanimation.h>
|
|
//#include <QEvent>
|
|
|
|
//编辑消息的区域
|
|
class MessageEditArea : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MessageEditArea(QWidget *parent = nullptr);
|
|
|
|
//花式按钮事件
|
|
//bool eventFilter(QObject* obj, QEvent* event) override;
|
|
|
|
private:
|
|
QPushButton* sendImageBtn;
|
|
QPushButton* sendFileBtn;
|
|
QPushButton* sendSpeechBtn;
|
|
QPushButton* showHistoryBtn;
|
|
QPlainTextEdit* textEdit;
|
|
QPushButton* sendTextButton;
|
|
|
|
//花式按钮
|
|
//QGraphicsDropShadowEffect* shadowEffect;
|
|
|
|
|
|
signals:
|
|
};
|
|
|
|
#endif // MESSAGEEDITAREA_H
|