[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kreport/nonvisual-T517-staniek] src/common: KReportSection: just generate height, backgroundColor g
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2015-08-01 0:04:26
Message-ID: E1ZLKHq-00044c-D4 () scm ! kde ! org
[Download RAW message or body]

Git commit 323f334065f89192e919ceb8b847f51078e6fee0 by Jaroslaw Staniek.
Committed on 30/07/2015 at 23:16.
Pushed by staniek into branch 'nonvisual-T517-staniek'.

KReportSection: just generate height,backgroundColor getter declarations

M  +10   -16   src/common/KReportSection.shared.h

http://commits.kde.org/kreport/323f334065f89192e919ceb8b847f51078e6fee0

diff --git a/src/common/KReportSection.shared.h b/src/common/KReportSection.shared.h
index c757c61..3a2899a 100644
--- a/src/common/KReportSection.shared.h
+++ b/src/common/KReportSection.shared.h
@@ -71,32 +71,26 @@ public:
     data_member KReportSection::Type type default=KReportSection::InvalidType simple_type;
 
     /*!
-    @setter
-    Sets section height measured in points.
-    Set negative value to reset to the default height.
-    */
-    data_member qreal height default=-1 no_getter;
-
-    /*!
-    @setter
-    Sets section background color.
-    Set invalid color (QColor()) to reset to the default background color.
-    */
-    data_member QColor backgroundColor no_getter;
-
-    /*!
+    @getter
     @return section height measured in points
     It is equal to KReportSection::defaultHeight() unless setHeight()
     is called with value > 0.
+    @setter
+    Sets section height measured in points.
+    Set negative value to reset to the default height.
     */
-    qreal height() const;
+    data_member qreal height default=-1 custom_getter;
 
     /*!
+    @getter
     @return section background color
     It is equal to KReportSection::defaultBackgroundColor() unless setBackgroundColor()
     is called with a valid color.
+    @setter
+    Sets section background color.
+    Set invalid color (QColor()) to reset to the default background color.
     */
-    QColor backgroundColor() const;
+    data_member QColor backgroundColor custom_getter;
 
     //! @return default height for report sections. The standard is 2cm (converted to points).
     static qreal defaultHeight();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic