Save and restore
[impuzzle] / src / settings.cpp
index 62801af..93af8ba 100644 (file)
@@ -8,6 +8,7 @@ Settings::Settings(QObject *parent) :
 {
     pieceCount_ = EASY_PIECE_COUNT;
     image_ = 0;
+    imagePath_ = "";
 }
 
 Settings *Settings::instance()
@@ -38,3 +39,13 @@ void Settings::setImage(const QPixmap &image)
 {
     image_ = image;
 }
+
+QString Settings::imagePath() const
+{
+    return imagePath_;
+}
+
+void Settings::setImagePath(const QString &path)
+{
+    imagePath_ = path;
+}