OSDN Git Service

Ver0.18
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Fri, 29 Aug 2014 23:26:35 +0000 (08:26 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Fri, 29 Aug 2014 23:26:35 +0000 (08:26 +0900)
simpleimageview.cpp

index 3f6a6a3..9ed65f3 100644 (file)
@@ -105,6 +105,8 @@ bool SimpleImageView::setSource(const QString &path)
     QGraphicsScene *scene = new QGraphicsScene(this);
     scene->addPixmap(pixmap);
     setScene(scene);
+    resizeImage();
+
     return true;
 }
 
@@ -133,7 +135,7 @@ double SimpleImageView::scaleFactor(const QSize &size)
 void SimpleImageView::sizeChanged()
 {
     QString str;
-    str = tr("%1px x %2px x %3bpp(%4%)")
+    str = tr("%1 x %2 x %3(%4%)")
             .arg(m_imgSrc.width())
             .arg(m_imgSrc.height())
             .arg(m_imgSrc.depth())