Commit 6205ab58 authored by Alexander Semke's avatar Alexander Semke
Browse files

Show the image config dialog automaticaly right after the image entry was added.

parent 6ffe8bfe
......@@ -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;
}
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment