|
@@ -119,12 +119,13 @@ void MainWindow::AdjustWPos(QSize sizemain)
|
|
|
|
|
|
void MainWindow::ExecPainter()
|
|
|
{
|
|
|
- QTime x;
|
|
|
- x.start();
|
|
|
+ // QTime x;
|
|
|
+
|
|
|
+// x.start();
|
|
|
// qDebug("painter.");
|
|
|
|
|
|
painter->begin(image);
|
|
|
- qDebug("time is %d",x.elapsed());
|
|
|
+ // qDebug("time is %d",x.elapsed());
|
|
|
image->fill(QColor(255, 255, 255));//对画布进行填充
|
|
|
|
|
|
// std::vector<iv::GPSData> navigation_data = brain->navigation_data;
|
|
@@ -1559,14 +1560,22 @@ void MainWindow::onClickLoadLane()
|
|
|
QByteArray ba;
|
|
|
ba = xFile.read(xFile.size());
|
|
|
QString strdata = ba;
|
|
|
+#ifdef ADCQT6
|
|
|
+ QStringList strlinedata= strdata.split("\n",Qt::SplitBehaviorFlags::SkipEmptyParts);
|
|
|
+#else
|
|
|
QStringList strlinedata= strdata.split("\n",QString::SkipEmptyParts);
|
|
|
+#endif
|
|
|
int i;
|
|
|
int nsize = strlinedata.size();
|
|
|
// qDebug("line is %d",nsize);
|
|
|
for(i=0;i<nsize;i++)
|
|
|
{
|
|
|
QString strline = strlinedata.at(i);
|
|
|
+#ifdef ADCQT6
|
|
|
+ QStringList strvaluedata = strline.split(" ",Qt::SplitBehaviorFlags::SkipEmptyParts);
|
|
|
+#else
|
|
|
QStringList strvaluedata = strline.split(" ",QString::SkipEmptyParts);
|
|
|
+#endif
|
|
|
// qDebug("%d value size is %d ",i,strvaluedata.size());
|
|
|
iv::lanepoint lpleft,lpright;
|
|
|
if(strvaluedata.size() == 12)
|