Skip to content
Permalink
Browse files

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@11588 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Sep 8, 2009
1 parent c5b6164 commit 418117602b30c29d07c7e88777a0630f75bab9ea
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/app/main.cpp
  2. +2 −0 src/app/qgsabout.cpp
  3. +1 −1 src/plugins/evis/eventbrowser/evisimagedisplaywidget.cpp
@@ -575,7 +575,7 @@ int main( int argc, char *argv[] )
// application bundle...
#ifdef Q_WS_WIN
QCoreApplication::addLibraryPath( QApplication::applicationDirPath()
+ QDir::separator() + "plugins" );
+ QDir::separator() + "qtplugins" );
#endif
#ifdef Q_OS_MACX
//qDebug("Adding qt image plugins to plugin search path...");
@@ -280,6 +280,8 @@ void QgsAbout::setPluginInfo()
myString += "</li>\n</ol>\n";
//qt image plugins
myString += "<b>" + tr( "Available Qt Image Plugins" ) + "</b><br>";
myString += tr( "Qt Image Plugin Search Paths<br>"" );
myString += QApplication::libraryPaths().join("<br>");
myString += "<ol>\n<li>\n";
QList<QByteArray> myImageFormats = QImageReader::supportedImageFormats();
QList<QByteArray>::const_iterator myIterator = myImageFormats.begin();
@@ -33,7 +33,6 @@
#include <QHBoxLayout>
#include <QScrollBar>
#include <QUrl>

/**
* Constructor
* @param parent - Pointer the to parent QWidget for modality
@@ -131,6 +130,7 @@ void eVisImageDisplayWidget::resizeEvent( QResizeEvent *event )
void eVisImageDisplayWidget::displayImage( QString path )
{
mImageLoaded = mImage->load( path, 0, Qt::AutoColor );
this->setToolTip(path);

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

0 comments on commit 4181176

Please sign in to comment.
You can’t perform that action at this time.