改进代码
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
\brief Attributes of an entry on a legend
|
||||
|
||||
QwtLegendData is an abstract container ( like QAbstractModel )
|
||||
to exchange attributes, that are only known between to
|
||||
the plot item and the legend.
|
||||
|
||||
to exchange attributes, that are only known between to
|
||||
the plot item and the legend.
|
||||
|
||||
By overloading QwtPlotItem::legendData() any other set of attributes
|
||||
could be used, that can be handled by a modified ( or completely
|
||||
could be used, that can be handled by a modified ( or completely
|
||||
different ) implementation of a legend.
|
||||
|
||||
\sa QwtLegend, QwtPlotLegendItem
|
||||
@@ -52,13 +52,13 @@ public:
|
||||
enum Role
|
||||
{
|
||||
// The value is a Mode
|
||||
ModeRole,
|
||||
ModeRole,
|
||||
|
||||
// The value is a title
|
||||
TitleRole,
|
||||
TitleRole,
|
||||
|
||||
// The value is an icon
|
||||
IconRole,
|
||||
IconRole,
|
||||
|
||||
// Values < UserRole are reserved for internal use
|
||||
UserRole = 32
|
||||
|
||||
Reference in New Issue
Block a user