Changeset View
Changeset View
Standalone View
Standalone View
src/KChart/KChartLegend.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 59 | public: | |||
---|---|---|---|---|---|
73 | 73 | | |||
74 | virtual Legend * clone() const; | 74 | virtual Legend * clone() const; | ||
75 | 75 | | |||
76 | /** | 76 | /** | ||
77 | * Returns true if both legends have the same settings. | 77 | * Returns true if both legends have the same settings. | ||
78 | */ | 78 | */ | ||
79 | bool compare( const Legend* other ) const; | 79 | bool compare( const Legend* other ) const; | ||
80 | 80 | | |||
81 | void resizeEvent( QResizeEvent * event ) Q_DECL_OVERRIDE; // TODO: should be protected | 81 | void resizeEvent( QResizeEvent * event ) override; // TODO: should be protected | ||
82 | 82 | | |||
83 | virtual void paint( QPainter* painter ) Q_DECL_OVERRIDE; | 83 | virtual void paint( QPainter* painter ) override; | ||
84 | void setVisible( bool visible ) Q_DECL_OVERRIDE; | 84 | void setVisible( bool visible ) override; | ||
85 | 85 | | |||
86 | /** | 86 | /** | ||
87 | Specifies the reference area for font size of title text, | 87 | Specifies the reference area for font size of title text, | ||
88 | and for font size of the item texts, IF automatic area | 88 | and for font size of the item texts, IF automatic area | ||
89 | detection is set. | 89 | detection is set. | ||
90 | 90 | | |||
91 | \note This parameter is ignored, if the Measure given for | 91 | \note This parameter is ignored, if the Measure given for | ||
92 | setTitleTextAttributes (or setTextAttributes, resp.) is | 92 | setTitleTextAttributes (or setTextAttributes, resp.) is | ||
▲ Show 20 Lines • Show All 282 Lines • ▼ Show 20 Line(s) | 286 | \endverbatim | |||
375 | 375 | | |||
376 | void setTitleTextAttributes( const TextAttributes &a ); | 376 | void setTitleTextAttributes( const TextAttributes &a ); | ||
377 | TextAttributes titleTextAttributes() const; | 377 | TextAttributes titleTextAttributes() const; | ||
378 | 378 | | |||
379 | void setSpacing( uint space ); | 379 | void setSpacing( uint space ); | ||
380 | uint spacing() const; | 380 | uint spacing() const; | ||
381 | 381 | | |||
382 | // called internally by KChart::Chart, when painting into a custom QPainter | 382 | // called internally by KChart::Chart, when painting into a custom QPainter | ||
383 | void forceRebuild() Q_DECL_OVERRIDE; | 383 | void forceRebuild() override; | ||
384 | 384 | | |||
385 | QSize minimumSizeHint() const Q_DECL_OVERRIDE; | 385 | QSize minimumSizeHint() const override; | ||
386 | QSize sizeHint() const Q_DECL_OVERRIDE; | 386 | QSize sizeHint() const override; | ||
387 | bool hasHeightForWidth() const Q_DECL_OVERRIDE; | 387 | bool hasHeightForWidth() const override; | ||
388 | int heightForWidth( int width ) const Q_DECL_OVERRIDE; | 388 | int heightForWidth( int width ) const override; | ||
389 | void needSizeHint() Q_DECL_OVERRIDE; | 389 | void needSizeHint() override; | ||
390 | void resizeLayout( const QSize& size ) Q_DECL_OVERRIDE; | 390 | void resizeLayout( const QSize& size ) override; | ||
391 | 391 | | |||
392 | Q_SIGNALS: | 392 | Q_SIGNALS: | ||
393 | void destroyedLegend( Legend* ); | 393 | void destroyedLegend( Legend* ); | ||
394 | /** Emitted upon change of a property of the Legend or any of its components. */ | 394 | /** Emitted upon change of a property of the Legend or any of its components. */ | ||
395 | void propertiesChanged(); | 395 | void propertiesChanged(); | ||
396 | 396 | | |||
397 | private Q_SLOTS: | 397 | private Q_SLOTS: | ||
398 | void emitPositionChanged(); | 398 | void emitPositionChanged(); | ||
Show All 10 Lines |