OSDN Git Service
(root)
/
gefu
/
Gefu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d673063
)
Ver0.18
author
Masayuki Satoh
<miyabi.satoh@gmail.com>
Fri, 29 Aug 2014 23:26:35 +0000
(08:26 +0900)
committer
Masayuki Satoh
<miyabi.satoh@gmail.com>
Fri, 29 Aug 2014 23:26:35 +0000
(08:26 +0900)
simpleimageview.cpp
patch
|
blob
|
history
diff --git
a/simpleimageview.cpp
b/simpleimageview.cpp
index
3f6a6a3
..
9ed65f3
100644
(file)
--- a/
simpleimageview.cpp
+++ b/
simpleimageview.cpp
@@
-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("%1
px 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())