aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Semke <alexander.semke@web.de>2016-11-05 14:07:54 (GMT)
committerAlexander Semke <alexander.semke@web.de>2016-11-05 14:07:54 (GMT)
commit6205ab584e72e295ff6162424750e521c960c5bf (patch)
treecc7cab7879cd94a01cd31868be679a71853f9cc8
parent6ffe8bfed1601d3d9ca998907682a839a0566d4a (diff)
Show the image config dialog automaticaly right after the image entry was added.
-rw-r--r--src/imageentry.cpp6
-rw-r--r--src/imageentry.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/imageentry.cpp b/src/imageentry.cpp
index 1ed9ff7..6b51b95 100644
--- a/src/imageentry.cpp
+++ b/src/imageentry.cpp
@@ -23,8 +23,9 @@
#include "actionbar.h"
#include <KLocalizedString>
-#include <QMenu>
#include <QDebug>
+#include <QMenu>
+#include <QFileSystemWatcher>
ImageEntry::ImageEntry(Worksheet* worksheet) : WorksheetEntry(worksheet)
{
@@ -44,6 +45,7 @@ ImageEntry::ImageEntry(Worksheet* worksheet) : WorksheetEntry(worksheet)
setFlag(QGraphicsItem::ItemIsFocusable);
updateEntry();
+ startConfigDialog();
}
ImageEntry::~ImageEntry()
@@ -336,5 +338,3 @@ bool ImageEntry::wantFocus()
{
return false;
}
-
-
diff --git a/src/imageentry.h b/src/imageentry.h
index b671b91..1520e5a 100644
--- a/src/imageentry.h
+++ b/src/imageentry.h
@@ -25,11 +25,11 @@
#include "imagesettingsdialog.h"
#include <QString>
-#include <QFileSystemWatcher>
class Worksheet;
class ActionBar;
class WorksheetImageItem;
+class QFileSystemWatcher;
class ImageEntry : public WorksheetEntry
{
@@ -61,7 +61,7 @@ class ImageEntry : public WorksheetEntry
void populateMenu(QMenu *menu, const QPointF& pos);
void startConfigDialog();
- void setImageData(const QString& path, const ImageSize& displaySize,
+ void setImageData(const QString& path, const ImageSize& displaySize,
const ImageSize& printSize, bool useDisplaySizeForPrinting);
protected: