evis_add_layer_fix.diff
src/plugins/evis/databaseconnection/evisdatabaseconnectiongui.cpp (working copy) | ||
---|---|---|
39 | 39 |
#include <QtXml/QDomDocument> |
40 | 40 |
#include <QtXml/QDomElement> |
41 | 41 |
#include <QtXml/QDomNode> |
42 |
#include <QUrl> |
|
42 | 43 | |
43 | 44 |
/** |
44 | 45 |
* Constructor |
... | ... | |
108 | 109 |
//fileName is only available if the file is open |
109 | 110 |
//the last file in the list is always the newest |
110 | 111 |
mTempOutputFileList->last( )->open( ); |
111 |
QString uri = QString( "%1?delimiter=%2&xField=%3&yField=%4" )
|
|
112 |
.arg( mTempOutputFileList->last( )->fileName( ) )
|
|
113 |
.arg( "\t" )
|
|
114 |
.arg( xCoordinate )
|
|
115 |
.arg( yCoordinate );
|
|
116 |
emit drawVectorLayer( uri, layerName, "delimitedtext" );
|
|
112 |
QUrl url = QUrl::fromLocalFile( mTempOutputFileList->last()->fileName() );
|
|
113 |
url.addQueryItem( "delimiter", "\t" );
|
|
114 |
url.addQueryItem( "delimiterType", "regexp" );
|
|
115 |
url.addQueryItem( "xField", xCoordinate );
|
|
116 |
url.addQueryItem( "yField", yCoordinate );
|
|
117 |
emit drawVectorLayer( QString::fromAscii( url.toEncoded() ), layerName, "delimitedtext" );
|
|
117 | 118 |
mTempOutputFileList->last( )->close( ); |
118 | 119 |
} |
119 | 120 |
} |