mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
0fca7169d3
except those placed in 3rdparty directories.
43 lines
813 B
C++
43 lines
813 B
C++
#ifndef LRIMAGEITEMEDITOR_H
|
|
#define LRIMAGEITEMEDITOR_H
|
|
|
|
#include "lreditableimageitemintf.h"
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class ImageItemEditor;
|
|
}
|
|
|
|
namespace LimeReport {
|
|
class ImageItem;
|
|
}
|
|
|
|
class ImageItemEditor: public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ImageItemEditor(LimeReport::IEditableImageItem* item, QWidget* parent = NULL);
|
|
~ImageItemEditor();
|
|
|
|
private:
|
|
void updateImage();
|
|
|
|
private:
|
|
Ui::ImageItemEditor* ui;
|
|
LimeReport::IEditableImageItem* m_item;
|
|
|
|
QByteArray m_image;
|
|
QPixmap m_resourcePathImage;
|
|
|
|
private slots:
|
|
void on_tbLoadImage_clicked();
|
|
void on_tbClearImage_clicked();
|
|
void on_buttonBox_accepted();
|
|
void on_buttonBox_rejected();
|
|
void on_toolButton_clicked();
|
|
void on_tbResourcePath_clicked();
|
|
};
|
|
|
|
#endif // LRIMAGEITEMEDITOR_H
|