Added tiff as image type supported, fixed a crash on Mac OS X Maverick when showing the GraphView

This commit is contained in:
matlabbe
2015-01-06 10:53:43 -05:00
parent 4c2dad453d
commit a979216fc1
4 changed files with 16 additions and 6 deletions

View File

@@ -160,7 +160,7 @@ GraphViewer::GraphViewer(QWidget * parent) :
_workingDirectory = QDir::homePath();
this->scene()->clear();
_root = (QGraphicsItem *)this->scene()->addEllipse(QRectF(0,0,0,0));
_root = (QGraphicsItem *)this->scene()->addEllipse(QRectF(-0.0001,-0.0001,0.0001,0.0001));
// add referential
QGraphicsLineItem * item = this->scene()->addLine(0,0,0,-1, QPen(QBrush(Qt::red), _linkWidth));

View File

@@ -1747,7 +1747,7 @@ void PreferencesDialog::selectSourceImage(Src src)
if(!path.isEmpty() && dir.exists())
{
QStringList filters;
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png" << "*.pnm";
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png" << "*.pnm" << "*.tiff";
dir.setNameFilters(filters);
QFileInfoList files = dir.entryInfoList();
if(!files.empty())