54 lines
901 B
C++
54 lines
901 B
C++
#include "MapSettingUI.h"
|
|
#include "ui_MapSettingUI.h"
|
|
|
|
MapSettingUI::MapSettingUI(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::MapSettingUI)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
|
|
//载入qss
|
|
|
|
|
|
|
|
//载入配置
|
|
|
|
}
|
|
|
|
MapSettingUI::~MapSettingUI()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
|
|
void MapSettingUI::setMapProvider(QVariant value)
|
|
{
|
|
ui->pushButton_MapProvider->setText(value.toString());
|
|
|
|
emit setMapTypes(value);
|
|
}
|
|
|
|
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()
|
|
{
|
|
|
|
}
|