添加地图设置界面
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#include "MapSettingUI.h"
|
||||
#include "ui_MapSettingUI.h"
|
||||
|
||||
MapSettingUI::MapSettingUI(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::MapSettingUI)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
MapSettingUI::~MapSettingUI()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
void MapSettingUI::setMapProvider(QVariant value)
|
||||
{
|
||||
ui->pushButton_MapProvider->setText(value.toString());
|
||||
|
||||
//emit setMapProvider
|
||||
|
||||
}
|
||||
|
||||
void MapSettingUI::MapTypes(QStringList list)
|
||||
{
|
||||
Selector *selector = new Selector(this);
|
||||
selector->setGeometry(0,0,this->width(),this->height());
|
||||
|
||||
selector->setList(list,ui->pushButton_MapProvider->text());
|
||||
|
||||
connect(selector,SIGNAL(confirmValue(QVariant)),
|
||||
this,SLOT(setMapProvider(QVariant)));
|
||||
|
||||
selector->show();
|
||||
}
|
||||
|
||||
void MapSettingUI::on_pushButton_MapProvider_clicked()
|
||||
{
|
||||
emit getMapTypes();
|
||||
}
|
||||
|
||||
void MapSettingUI::on_pushButton_Path_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user