从git读取版本
This commit is contained in:
@@ -5,6 +5,8 @@ namespace mapcontrol {
|
||||
|
||||
AltitudeItem::AltitudeItem(MapGraphicItem *map, QColor background) : myMap(map), myColor(background)
|
||||
{
|
||||
|
||||
|
||||
this->setFlag(QGraphicsItem::ItemIsMovable, true);
|
||||
this->setFlag(QGraphicsItem::ItemIgnoresTransformations, true);
|
||||
this->setFlag(QGraphicsItem::ItemIsSelectable, false);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <QPoint>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
|
||||
#pragma execution_character_set("utf-8")
|
||||
|
||||
namespace mapcontrol {
|
||||
//class OPMapWidget;
|
||||
|
||||
@@ -43,6 +43,7 @@ OPMapWidget::OPMapWidget(QWidget *parent, Configuration *config) : QGraphicsView
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
core = new internals::Core;
|
||||
|
||||
|
||||
QDir *MapDir = new QDir;
|
||||
if(!MapDir->exists("./maps"))
|
||||
MapDir->mkdir("./maps");//如果文件夹不存在就新建
|
||||
|
||||
Reference in New Issue
Block a user