0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +03:00
LimeReport/limereport/objectinspector/propertyItems/lrcontentpropitem.h

40 lines
1.0 KiB
C
Raw Normal View History

2017-09-27 13:04:56 +03:00
#ifndef LRCONTENTPROPITEM_H
#define LRCONTENTPROPITEM_H
2016-02-17 10:18:19 +03:00
#include "lrstringpropitem.h"
#include "objectinspector/editors/lrbuttonlineeditor.h"
namespace LimeReport {
class ContentEditor: public ButtonLineEditor {
2016-02-17 10:18:19 +03:00
Q_OBJECT
public:
explicit ContentEditor(QObject* object, const QString& propertyName, QWidget* parent = 0):
ButtonLineEditor(propertyName, parent),
m_object(object)
{
}
2016-02-17 10:18:19 +03:00
public slots:
void editButtonClicked();
2016-02-17 10:18:19 +03:00
private:
QObject* m_object;
};
class ContentPropItem: public StringPropItem {
2016-02-17 10:18:19 +03:00
Q_OBJECT
public:
ContentPropItem(): StringPropItem() { }
ContentPropItem(QObject* object, ObjectsList* objects, const QString& name,
const QString& displayName, const QVariant& value, ObjectPropItem* parent,
bool readonly):
StringPropItem(object, objects, name, displayName, value, parent, readonly)
{
}
QWidget* createProperyEditor(QWidget* parent) const;
2016-02-17 10:18:19 +03:00
};
} // namespace LimeReport
#endif // CONTENTPROPITEM_H