12345678910111213141516171819202122232425262728293031323334 |
- #ifndef QSPINPUTBOX_H
- #define QSPINPUTBOX_H
- #include <QWidget>
- #include <QPlainTextEdit>
- #include <QString>
- #include <QStringList>
- namespace Ui {
- class QspInputBox;
- }
- class QspInputBox : public QPlainTextEdit
- {
- Q_OBJECT
- signals:
- void InputTextEnter();
- public:
- explicit QspInputBox(QWidget *parent = 0);
- ~QspInputBox();
- // Accessors
- void SetText(const QString& text);
- QString GetText();
- private:
- void keyPressEvent(QKeyEvent *event);
- // Fields
- QStringList m_strings;
- int m_selIndex;
- };
- #endif // QSPINPUTBOX_H
|