refactored SplitInput
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
pajlada::Signals::Signal<const QString &> textChanged;
|
||||
|
||||
protected:
|
||||
virtual void scaleChangedEvent(float scale) override;
|
||||
|
||||
virtual void paintEvent(QPaintEvent *) override;
|
||||
virtual void resizeEvent(QResizeEvent *) override;
|
||||
|
||||
@@ -41,16 +43,27 @@ private:
|
||||
Split *const chatWidget;
|
||||
std::unique_ptr<EmotePopup> emotePopup;
|
||||
|
||||
struct {
|
||||
ResizingTextEdit *textEdit;
|
||||
QLabel *textEditLength;
|
||||
RippleEffectLabel *emoteButton;
|
||||
|
||||
QHBoxLayout *hbox;
|
||||
} ui;
|
||||
|
||||
std::vector<pajlada::Signals::ScopedConnection> managedConnections;
|
||||
QHBoxLayout hbox;
|
||||
QVBoxLayout vbox;
|
||||
QHBoxLayout editContainer;
|
||||
ResizingTextEdit textInput;
|
||||
QLabel textLengthLabel;
|
||||
RippleEffectLabel emotesLabel;
|
||||
// QHBoxLayout hbox;
|
||||
// QVBoxLayout vbox;
|
||||
// QHBoxLayout editContainer;
|
||||
// ResizingTextEdit textInput;
|
||||
// QLabel textLengthLabel;
|
||||
// RippleEffectLabel emotesLabel;
|
||||
QStringList prevMsg;
|
||||
int prevIndex = 0;
|
||||
virtual void refreshTheme() override;
|
||||
|
||||
void initLayout();
|
||||
void installKeyPressedEvent();
|
||||
virtual void themeRefreshEvent() override;
|
||||
|
||||
private slots:
|
||||
void editTextChanged();
|
||||
|
||||
Reference in New Issue
Block a user