diff --git a/cropeditor/cropeditor.cpp b/cropeditor/cropeditor.cpp
index 50c8a58..5cb34ea 100644
--- a/cropeditor/cropeditor.cpp
+++ b/cropeditor/cropeditor.cpp
@@ -20,7 +20,7 @@ CropEditor::CropEditor(QPixmap image, QObject *parent) : QObject(parent) {
scene->setSceneRect(image.rect());
view->resize(image.width(), image.height());
view->setMinimumSize(image.size());
- view->move(0, 0);
+ view->move(settings::settings().value("cropx", 0).toInt(), settings::settings().value("cropy", 0).toInt());
view->setWindowTitle("KShare Crop Editor");
view->show();
diff --git a/settingsdialog.cpp b/settingsdialog.cpp
index 0bd498b..c12c45e 100644
--- a/settingsdialog.cpp
+++ b/settingsdialog.cpp
@@ -159,3 +159,11 @@ void SettingsDialog::on_pushButton_clicked() {
void SettingsDialog::on_saveLocation_currentIndexChanged(int index) {
settings::settings().setValue("saveLocation", index);
}
+
+void SettingsDialog::on_cropX_valueChanged(int arg1) {
+ settings::settings().setValue("cropx", arg1);
+}
+
+void SettingsDialog::on_cropY_valueChanged(int arg1) {
+ settings::settings().setValue("cropy", arg1);
+}
diff --git a/settingsdialog.hpp b/settingsdialog.hpp
index 7029fed..a75ea21 100644
--- a/settingsdialog.hpp
+++ b/settingsdialog.hpp
@@ -34,6 +34,10 @@ private slots:
void uploaderChanged(QString newName);
void on_saveLocation_currentIndexChanged(int index);
+ void on_cropX_valueChanged(int arg1);
+
+ void on_cropY_valueChanged(int arg1);
+
private:
Ui::SettingsDialog *ui;
};
diff --git a/settingsdialog.ui b/settingsdialog.ui
index 0906c3d..4356c78 100644
--- a/settingsdialog.ui
+++ b/settingsdialog.ui
@@ -6,8 +6,8 @@
0
0
- 483
- 530
+ 485
+ 638
@@ -47,6 +47,9 @@
-
+ -
+
+
-
@@ -54,16 +57,6 @@
- -
-
-
- -
-
-
- Encoder settings
-
-
-
-
@@ -130,6 +123,20 @@
+ -
+
+
-
+
+ Pictures folder
+
+
+ -
+
+ Screenshots folder (In your user folder)
+
+
+
+
-
@@ -147,18 +154,44 @@
- -
-
-
-
-
- Pictures folder
-
-
- -
-
- Screenshots folder (In your user folder)
-
-
+ -
+
+
+ Advanced
+
+
+
-
+
+
+
+
+
+ x:
+
+
+
+ -
+
+
+ y:
+
+
+
+ -
+
+
+ Editor Position (tweak if the editor does not cover the entire screen)
+
+
+
+ -
+
+
+ Encoder settings
+
+
+
+