修复航点cmmand参数无法修改的bug
This commit is contained in:
@@ -330,7 +330,7 @@ MissionUI::MissionUI(QWidget *parent) :
|
||||
|
||||
ui->tabWidget->setCurrentIndex(1);
|
||||
|
||||
foreach (QTableWidget *table, tablelist) {
|
||||
foreach (QTableWidget *table, tablelist.values() ) {
|
||||
if(table)
|
||||
{
|
||||
if(tablelist.key(table) == 1)//围栏
|
||||
@@ -1194,6 +1194,7 @@ void MissionUI::itemDoubleClicked(QTableWidgetItem *item)
|
||||
int column = item->column();
|
||||
|
||||
|
||||
|
||||
if(widget == tablelist.value(1))
|
||||
{
|
||||
if(column == 2)
|
||||
@@ -1666,7 +1667,8 @@ void MissionUI::itemDoubleClicked(QTableWidgetItem *item)
|
||||
{
|
||||
QComboBox *combox = new QComboBox(widget);
|
||||
|
||||
for (QMap<int,QString>::iterator i = commandtext.begin(); i != commandtext.end(); ++i) {
|
||||
for (QMap<int,QString>::iterator i = commandtext.begin(); i != commandtext.end(); ++i)
|
||||
{
|
||||
combox->addItem(i.value(),i.key());
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>4</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
|
||||
@@ -1525,6 +1525,10 @@ void propertyui::on_pushButton_Seq_clicked()
|
||||
|
||||
void propertyui::setFriendlyName(QVariant value)
|
||||
{
|
||||
if(table)
|
||||
{
|
||||
this->m_command = table->commandtext.key(value.toString() );
|
||||
}
|
||||
bool isNew = false;
|
||||
if(ui->pushButton_friendlyName->text() != value.toString())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user