mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-06 00:36:25 +08:00
fa147c5d6e
* add wifi to setup * wifi looks better * move widgets * this looks ok * small fixups * fix relase tests old-commit-hash: 6a2678aae7fa353617ec111bd46181cdc422e15b
31 lines
463 B
C++
31 lines
463 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QLineEdit>
|
|
#include <QGridLayout>
|
|
|
|
#include "keyboard.hpp"
|
|
|
|
class InputField : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit InputField(QWidget* parent = 0);
|
|
void setPromptText(QString text);
|
|
|
|
private:
|
|
QLineEdit *line;
|
|
Keyboard *k;
|
|
QLabel *label;
|
|
QGridLayout *layout;
|
|
|
|
public slots:
|
|
void emitEmpty();
|
|
void getText(QString s);
|
|
|
|
signals:
|
|
void emitText(QString s);
|
|
};
|