0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-27 00:13:25 +03:00
LimeReport/limereport/objectinspector/propertyItems/lraxispropitem.h

48 lines
1.1 KiB
C
Raw Normal View History

2022-03-10 22:35:48 +03:00
#ifndef AXISPROPITEM_H
#define AXISPROPITEM_H
#include <QHBoxLayout>
#include <QPushButton>
2022-03-10 22:35:48 +03:00
#include <lrchartitem.h>
#include <lrobjectpropitem.h>
2022-03-10 22:35:48 +03:00
namespace LimeReport {
class AxisPropEditor: public QWidget {
2022-03-10 22:35:48 +03:00
Q_OBJECT
public:
AxisPropEditor(ChartItem* chart, bool isXAxis, QWidget* parent = 0);
2022-03-10 22:35:48 +03:00
signals:
void editingFinished();
private slots:
void slotButtonClicked();
2022-03-10 22:35:48 +03:00
private:
QPushButton* m_button;
ChartItem* m_chart;
bool m_isXAxis;
};
class AxisPropItem: public LimeReport::ObjectPropItem {
2022-03-10 22:35:48 +03:00
Q_OBJECT
public:
AxisPropItem(): ObjectPropItem() { }
AxisPropItem(QObject* object, ObjectsList* objects, const QString& name,
const QString& displayName, const QVariant& value, ObjectPropItem* parent,
bool readonly, bool isXAxis):
ObjectPropItem(object, objects, name, displayName, value, parent, readonly),
m_isXAxis(isXAxis)
{
}
QWidget* createProperyEditor(QWidget* parent) const;
2022-03-10 22:35:48 +03:00
QString displayValue() const;
private:
bool m_isXAxis = false;
};
} // namespace LimeReport
#endif // AXISPROPITEM_H