summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pictureviewer2.cpp')
-rw-r--r--pictureviewer2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/pictureviewer2.cpp b/pictureviewer2.cpp
index e457865..f4592c1 100644
--- a/pictureviewer2.cpp
+++ b/pictureviewer2.cpp
@@ -39,7 +39,9 @@
#include "newpicsdialog.h"
#include "helper.h"
-PictureViewer2::PictureViewer2(QWidget *parent) : QGraphicsView(parent), mCur(0), mCurPos(0), mDefaultFile(":/picgone.png"), mFnItem(0), mMappingItem(0) {
+const QString PictureViewer2::mDefaultFile = ":/picgone.png";
+
+PictureViewer2::PictureViewer2(QWidget *parent) : QGraphicsView(parent), mCur(0), mCurPos(0), mFnItem(0), mMappingItem(0) {
//behave like QDialog, but don't be one...
setWindowFlags(QFlags<Qt::WindowType>(0x1|0x2|0x1000|0x2000|0x10000|0x8000000));
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
@@ -123,7 +125,7 @@ void PictureViewer2::setFile(const PicData &file){
showFile(mFiles.at(mCurPos));
}
-void PictureViewer2::setFile(const QString &fullPath){
+void PictureViewer2::setFile(QString fullPath){
PicData pd = picData(fullPath);
setFile(pd);
}