mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-03 20:04:43 +03:00
SVGItem default editor has been added
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
#define SVGITEM_H
|
||||
|
||||
#include "lritemdesignintf.h"
|
||||
#include "lreditableimageitemintf.h"
|
||||
|
||||
namespace LimeReport{
|
||||
class SVGItem: public ItemDesignIntf
|
||||
class SVGItem: public ItemDesignIntf, public IEditableImageItem
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString resourcePath READ resourcePath WRITE setResourcePath)
|
||||
@@ -18,6 +19,14 @@ public:
|
||||
SVGItem(QObject *owner, QGraphicsItem *parent);
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
|
||||
QByteArray imageAsByteArray() const;
|
||||
void setImageAsByteArray(QByteArray image);
|
||||
QString fileFilter() const;
|
||||
|
||||
void preparePopUpMenu(QMenu &menu);
|
||||
void processPopUpAction(QAction *action);
|
||||
QWidget* defaultEditor();
|
||||
|
||||
QString resourcePath() const;
|
||||
void setResourcePath(const QString &resourcePath);
|
||||
QByteArray image() const;
|
||||
@@ -39,6 +48,8 @@ private:
|
||||
QString m_datasource;
|
||||
QString m_field;
|
||||
QString m_variable;
|
||||
public:
|
||||
|
||||
};
|
||||
} // namespace LimeReport
|
||||
#endif // SVGITEM_H
|
||||
|
Reference in New Issue
Block a user