update mavlink
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "CommandUI.h"
|
#include "CommandUI.h"
|
||||||
#include "ui_CommandUI.h"
|
#include "ui_CommandUI.h"
|
||||||
|
|
||||||
#include "QtTextToSpeech/QtTextToSpeech"
|
#include "QtTextToSpeech/QtTextToSpeech"
|
||||||
@@ -133,6 +133,20 @@ void CommandUI::wheelEvent(QWheelEvent *e)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CommandUI::keyPressEvent(QKeyEvent *event) //键盘按下事件
|
||||||
|
{
|
||||||
|
|
||||||
|
switch(event->key())
|
||||||
|
{
|
||||||
|
case Qt::Key_Space :
|
||||||
|
{
|
||||||
|
qInfo() << "command key" << event;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CommandUI::mousePressEvent(QMouseEvent *event)
|
void CommandUI::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->button() == Qt::MiddleButton)
|
if (event->button() == Qt::MiddleButton)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef COMMANDUI_H
|
#ifndef COMMANDUI_H
|
||||||
#define COMMANDUI_H
|
#define COMMANDUI_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
@@ -60,6 +60,10 @@ protected:
|
|||||||
void wheelEvent(QWheelEvent *e);
|
void wheelEvent(QWheelEvent *e);
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event);
|
||||||
|
|
||||||
|
void keyPressEvent(QKeyEvent *event);
|
||||||
|
|
||||||
|
void loadCommandJson(const QString& jsonFilename);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setFloat(void);
|
void setFloat(void);
|
||||||
void setFloatFlag(bool flag);
|
void setFloatFlag(bool flag);
|
||||||
@@ -91,9 +95,7 @@ private slots:
|
|||||||
|
|
||||||
void on_groupBox_Command_clicked();
|
void on_groupBox_Command_clicked();
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
void loadCommandJson(const QString& jsonFilename);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
+1
-1
Submodule mavlink updated: 54c7286a2c...d1fe3a364f
Reference in New Issue
Block a user