You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
463 B
31 lines
463 B
4 years ago
|
#pragma once
|
||
|
|
||
4 years ago
|
#include <QLabel>
|
||
|
#include <QString>
|
||
4 years ago
|
#include <QWidget>
|
||
|
#include <QLineEdit>
|
||
4 years ago
|
#include <QGridLayout>
|
||
4 years ago
|
|
||
|
#include "keyboard.hpp"
|
||
|
|
||
|
class InputField : public QWidget {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit InputField(QWidget* parent = 0);
|
||
4 years ago
|
void setPromptText(QString text);
|
||
|
|
||
4 years ago
|
private:
|
||
|
QLineEdit *line;
|
||
|
Keyboard *k;
|
||
4 years ago
|
QLabel *label;
|
||
|
QGridLayout *layout;
|
||
4 years ago
|
|
||
|
public slots:
|
||
|
void emitEmpty();
|
||
|
void getText(QString s);
|
||
|
|
||
|
signals:
|
||
|
void emitText(QString s);
|
||
|
};
|