dragonpilot - 基於 openpilot 的開源駕駛輔助系統
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
514 B

#pragma once
#include <QLabel>
#include <QString>
#include <QWidget>
#include <QDialog>
#include <QLineEdit>
#include <QVBoxLayout>
#include "keyboard.hpp"
class InputDialog : public QDialog {
Q_OBJECT
public:
explicit InputDialog(QString prompt_text, QWidget* parent = 0);
static QString getText(QString prompt);
QString text();
private:
QLineEdit *line;
Keyboard *k;
QLabel *label;
QVBoxLayout *layout;
public slots:
int exec() override;
private slots:
void handleInput(QString s);
};