Skip to content

Commit 1c57be4

Browse files
author
timlinux
committedSep 8, 2009
Fixes for evis (and general win qt image support). Search path for Qt plugins under win is now <app dir>/bin/qtplugins/. Set evis tooltip to show file path when hovered over the image. Set about box to show search path(s) for plugins.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11588 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎src/app/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ int main( int argc, char *argv[] )
575575
// application bundle...
576576
#ifdef Q_WS_WIN
577577
QCoreApplication::addLibraryPath( QApplication::applicationDirPath()
578-
+ QDir::separator() + "plugins" );
578+
+ QDir::separator() + "qtplugins" );
579579
#endif
580580
#ifdef Q_OS_MACX
581581
//qDebug("Adding qt image plugins to plugin search path...");

‎src/app/qgsabout.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ void QgsAbout::setPluginInfo()
280280
myString += "</li>\n</ol>\n";
281281
//qt image plugins
282282
myString += "<b>" + tr( "Available Qt Image Plugins" ) + "</b><br>";
283+
myString += tr( "Qt Image Plugin Search Paths<br>"" );
284+
myString += QApplication::libraryPaths().join("<br>");
283285
myString += "<ol>\n<li>\n";
284286
QList<QByteArray> myImageFormats = QImageReader::supportedImageFormats();
285287
QList<QByteArray>::const_iterator myIterator = myImageFormats.begin();

‎src/plugins/evis/eventbrowser/evisimagedisplaywidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <QHBoxLayout>
3434
#include <QScrollBar>
3535
#include <QUrl>
36-
3736
/**
3837
* Constructor
3938
* @param parent - Pointer the to parent QWidget for modality
@@ -131,6 +130,7 @@ void eVisImageDisplayWidget::resizeEvent( QResizeEvent *event )
131130
void eVisImageDisplayWidget::displayImage( QString path )
132131
{
133132
mImageLoaded = mImage->load( path, 0, Qt::AutoColor );
133+
this->setToolTip(path);
134134

135135
mCurrentZoomStep = 0;
136136
pbtnZoomOut->setEnabled( false );

0 commit comments

Comments
 (0)
Please sign in to comment.