DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAChartLegendItemSettingWidget.h
1#ifndef DACHARTLEGENDITEMSETTINGWIDGET_H
2#define DACHARTLEGENDITEMSETTINGWIDGET_H
3
4#include "DAGuiAPI.h"
5#include "DAAbstractChartItemSettingWidget.h"
6class QwtPlotLegendItem;
7namespace Ui
8{
9class DAChartLegendItemSettingWidget;
10}
11namespace DA
12{
14{
15 Q_OBJECT
16
17public:
18 explicit DAChartLegendItemSettingWidget(QWidget* parent = nullptr);
20 // setPlotItem之后调用的虚函数
21 virtual void updateUI(QwtPlotItem* item) override;
22
23protected:
24 void changeEvent(QEvent* e);
25private slots:
26 void onAligmentPositionChanged(Qt::Alignment al);
27 void onSpinBoxHorizontalOffsetValueChanged(int v);
28 void onSpinBoxVerticalOffsetValueChanged(int v);
29 void onSpinBoxMarginValueChanged(int v);
30 void onSpinBoxSpacingValueChanged(int v);
31 void onSpinBoxItemMarginValueChanged(int v);
32 void onSpinBoxItemSpacingValueChanged(int v);
33 void onSpinBoxMaxColumnsValueChanged(int v);
34 void onDoubleSpinBoxRadiusValueChanged(double v);
35 void onBorderPenChanged(const QPen& v);
36 void onLegendFontChanged(const QFont& v);
37 void onLegendFontColorChanged(const QColor& v);
38 void onLegendBKBrushChanged(const QBrush& v);
39
40private:
41 Ui::DAChartLegendItemSettingWidget* ui;
42};
43} // end DA
44#endif // DACHARTLEGENDITEMSETTINGWIDGET_H
chart设置的基类封装了基本操作
Definition DAAbstractChartItemSettingWidget.h:32
Definition DAChartLegendItemSettingWidget.h:14
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44