Skip to content

Commit

Permalink
Use updated icons and dont use #include xpm style of icon loading - u…
Browse files Browse the repository at this point in the history
…ses themepath now instead.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4637 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 10, 2006
1 parent 730da58 commit 779d68f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/qgsdbsourceselect.cpp
Expand Up @@ -29,9 +29,7 @@ email : sherman at mrcc.com
#include <qinputdialog.h>
#include <q3groupbox.h>
#include <QTextOStream>
#include "../../images/themes/default/point_layer.xpm"
#include "../../images/themes/default/line_layer.xpm"
#include "../../images/themes/default/polygon_layer.xpm"
#include "qgsapplication.h"
#include "qgsdbsourceselect.h"
#include "qgsnewconnection.h"
#include "qgspgquerybuilder.h"
Expand Down Expand Up @@ -268,9 +266,11 @@ void QgsDbSourceSelect::on_btnConnect_clicked()
if (PQstatus(pd) == CONNECTION_OK)
{
// create the pixmaps for the layer types
QPixmap pxPoint(point_layer_xpm);
QPixmap pxLine(line_layer_xpm);
QPixmap pxPoly(polygon_layer_xpm);
QString myThemePath = QgsApplication::themePath();
QPixmap pxPoint(myThemePath+"/mIconPointLayer.png");
QPixmap pxLine(myThemePath+"/mIconLineLayer.png");
QPixmap pxPoly(myThemePath+"/mIconPolygonLayer.png");
assert (!pxPoint.isNull());
//qDebug("Connection succeeded");
// tell the DB that we want text encoded in UTF8
PQsetClientEncoding(pd, "UNICODE");
Expand Down

0 comments on commit 779d68f

Please sign in to comment.