mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
39 lines
627 B
C++
39 lines
627 B
C++
#ifndef MSGWIDGET_H
|
|
#define MSGWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class MsgWidget;
|
|
}
|
|
|
|
class MsgWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum AligneAvatar
|
|
{
|
|
Left,
|
|
Right
|
|
};
|
|
|
|
public:
|
|
explicit MsgWidget(QString avatar, AligneAvatar aligneAvatar, int width, QWidget *parent = nullptr);
|
|
~MsgWidget();
|
|
|
|
void setAligneAvatarLeft();
|
|
void setAligneAvatarRight();
|
|
void setAvatar(QString avatar);
|
|
void setWidth(int width);
|
|
|
|
void setText(QString text);
|
|
|
|
private slots:
|
|
void on_textEdit_textChanged();
|
|
|
|
private:
|
|
Ui::MsgWidget *ui;
|
|
};
|
|
|
|
#endif // MSGWIDGET_H
|