Skip to content

Commit

Permalink
Put action icon back in identify results dialog box
Browse files Browse the repository at this point in the history
Put tr() around some text


git-svn-id: http://svn.osgeo.org/qgis/trunk@4768 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jan 28, 2006
1 parent ed4278c commit 90cbd51
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/gui/qgsidentifyresults.cpp
Expand Up @@ -18,8 +18,9 @@
/* $Id$ */

#include "qgsidentifyresults.h"
#include "qgsapplication.h"

#include <QCloseEvent>
#include <QCoreApplication>
#include <QLabel>
#include <Q3ListView>
#include <QPixmap>
Expand Down Expand Up @@ -171,16 +172,7 @@ void QgsIdentifyResults::addAction(Q3ListViewItem * fnode, int id, QString field
{
Q3ListViewItem *item = new Q3ListViewItem(fnode, field, value, "action", QString::number(id) );

QString appDir;
#if defined(WIN32) || defined(Q_OS_MACX)
appDir = QCoreApplication::applicationDirPath();
#else
appDir = PREFIX;
#endif

QString img = appDir + "/share/themes/default/action.png";

QPixmap pm ( img );
QPixmap pm ( QgsApplication::themePath() + "/action.png" );
item->setPixmap ( 0, pm );
}

Expand All @@ -192,7 +184,7 @@ Q3ListViewItem *QgsIdentifyResults::addNode(QString label)

void QgsIdentifyResults::setTitle(QString title)
{
setWindowTitle("Identify Results - " + title);
setWindowTitle(tr("Identify Results - ") + title);
}

void QgsIdentifyResults::setColumnText ( int column, const QString & label )
Expand Down

0 comments on commit 90cbd51

Please sign in to comment.