update mavlink
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "CommandUI.h"
|
||||
#include "CommandUI.h"
|
||||
#include "ui_CommandUI.h"
|
||||
|
||||
#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)
|
||||
{
|
||||
if (event->button() == Qt::MiddleButton)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef COMMANDUI_H
|
||||
#ifndef COMMANDUI_H
|
||||
#define COMMANDUI_H
|
||||
|
||||
#include <QWidget>
|
||||
@@ -60,6 +60,10 @@ protected:
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
|
||||
void loadCommandJson(const QString& jsonFilename);
|
||||
|
||||
public slots:
|
||||
void setFloat(void);
|
||||
void setFloatFlag(bool flag);
|
||||
@@ -91,9 +95,7 @@ private slots:
|
||||
|
||||
void on_groupBox_Command_clicked();
|
||||
|
||||
protected:
|
||||
|
||||
void loadCommandJson(const QString& jsonFilename);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
+1
-1
Submodule mavlink updated: 54c7286a2c...d1fe3a364f
Reference in New Issue
Block a user