#pragma once #include #include #include #include #include #include namespace chatterino { class TextInputDialog : public QDialog { Q_OBJECT public: TextInputDialog(QWidget *parent = nullptr); QString getText() const; void setText(const QString &text); void highlightText(); private: QVBoxLayout vbox_; QLineEdit lineEdit_; QHBoxLayout buttonBox_; QPushButton okButton_; QPushButton cancelButton_; private slots: void okButtonClicked(); void cancelButtonClicked(); }; } // namespace chatterino