mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
51 lines
887 B
C++
51 lines
887 B
C++
#ifndef CHATWIDGETINPUT_H
|
|
#define CHATWIDGETINPUT_H
|
|
|
|
#include "resizingtextedit.h"
|
|
#include "widgets/chatwidgetheaderbutton.h"
|
|
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPaintEvent>
|
|
#include <QTextEdit>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
namespace chatterino {
|
|
namespace widgets {
|
|
|
|
class ChatWidgetInput : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ChatWidgetInput();
|
|
~ChatWidgetInput();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
private:
|
|
QHBoxLayout hbox;
|
|
QVBoxLayout vbox;
|
|
QHBoxLayout editContainer;
|
|
ResizingTextEdit edit;
|
|
QLabel textLengthLabel;
|
|
ChatWidgetHeaderButton emotesLabel;
|
|
|
|
private slots:
|
|
void refreshTheme();
|
|
void
|
|
setMessageLengthVisisble(bool value)
|
|
{
|
|
this->textLengthLabel.setHidden(!value);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // CHATWIDGETINPUT_H
|