Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
ff6700e1
qplanetosm
项目概览
colorEagleStdio
/
qplanetosm
通知
118
Star
10
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qplanetosm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ff6700e1
编写于
2月 03, 2016
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sloved a tiny bug in geomarker.
the map will be refreshed when items deleted from scene.
上级
5a32faf5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
1 deletion
+15
-1
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
+15
-1
未找到文件。
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
浏览文件 @
ff6700e1
...
@@ -200,7 +200,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_point (const QMap<QStr
...
@@ -200,7 +200,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_update_point (const QMap<QStr
double
lon
=
paras
[
"lon"
].
toDouble
();
double
lon
=
paras
[
"lon"
].
toDouble
();
int
tpn
=
paras
[
"type"
].
toInt
();
int
tpn
=
paras
[
"type"
].
toInt
();
if
(
tpn
>
1
||
tpn
<
0
)
tpn
=
0
;
if
(
tpn
>
2
||
tpn
<
1
)
tpn
=
1
;
QTVP_GEOMARKER
::
geo_item_type
tpe
=
static_cast
<
QTVP_GEOMARKER
::
geo_item_type
>
(
tpn
);
QTVP_GEOMARKER
::
geo_item_type
tpe
=
static_cast
<
QTVP_GEOMARKER
::
geo_item_type
>
(
tpn
);
//update using same function in UI
//update using same function in UI
if
(
tpe
==
QTVP_GEOMARKER
::
ITEAMTYPE_RECT_POINT
)
if
(
tpe
==
QTVP_GEOMARKER
::
ITEAMTYPE_RECT_POINT
)
...
@@ -606,6 +606,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
...
@@ -606,6 +606,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
break
;
break
;
set_names
.
insert
(
paras
[
keystr
].
toString
());
set_names
.
insert
(
paras
[
keystr
].
toString
());
}
while
(
ct
<
1024
*
1024
*
1024
);
}
while
(
ct
<
1024
*
1024
*
1024
);
bool
needUpdate
=
false
;
if
(
set_names
.
size
())
if
(
set_names
.
size
())
{
{
ct
=
0
;
ct
=
0
;
...
@@ -617,6 +618,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
...
@@ -617,6 +618,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
{
{
m_pScene
->
removeItem
(
base
,
0
);
m_pScene
->
removeItem
(
base
,
0
);
res
[
keystr
]
=
1
;
res
[
keystr
]
=
1
;
needUpdate
=
true
;
}
}
else
else
res
[
keystr
]
=
0
;
res
[
keystr
]
=
0
;
...
@@ -629,6 +631,11 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
...
@@ -629,6 +631,11 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
m_pScene
->
removeItem
(
key
,
0
);
m_pScene
->
removeItem
(
key
,
0
);
res
[
"ALL"
]
=
1
;
res
[
"ALL"
]
=
1
;
}
}
if
(
needUpdate
)
{
scheduleRefreshMarks
();
scheduleUpdateMap
();
}
return
std
::
move
(
res
);
return
std
::
move
(
res
);
}
}
...
@@ -662,6 +669,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
...
@@ -662,6 +669,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
* prop0=TIME;prop1=Profit;Prop2=Address;Prop3=tel;
* prop0=TIME;prop1=Profit;Prop2=Address;Prop3=tel;
*/
*/
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
QTVP_GEOMARKER
::
geoItemBase
*
base
=
m_pScene
->
geoitem_by_name
(
name
);
bool
needUpdate
=
false
;
if
(
base
)
if
(
base
)
{
{
int
ct
=
0
;
int
ct
=
0
;
...
@@ -671,11 +679,17 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
...
@@ -671,11 +679,17 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_props (const QMap<QSt
break
;
break
;
QString
prop_name
=
paras
[
keystr
].
toString
();
QString
prop_name
=
paras
[
keystr
].
toString
();
base
->
del_prop
(
prop_name
);
base
->
del_prop
(
prop_name
);
needUpdate
=
true
;
}
while
(
ct
<
1024
*
1024
*
1024
);
}
while
(
ct
<
1024
*
1024
*
1024
);
}
}
else
else
res
[
"error"
]
=
tr
(
"the mark name."
)
+
name
+
tr
(
" does not exist in current scene."
);
res
[
"error"
]
=
tr
(
"the mark name."
)
+
name
+
tr
(
" does not exist in current scene."
);
if
(
needUpdate
)
{
scheduleRefreshMarks
();
scheduleUpdateMap
();
}
return
std
::
move
(
res
);
return
std
::
move
(
res
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录