Changeset View
Changeset View
Standalone View
Standalone View
src/kruler.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
123 | KRuler(Qt::Orientation orient, int widgetWidth, QWidget *parent = nullptr, | 123 | KRuler(Qt::Orientation orient, int widgetWidth, QWidget *parent = nullptr, | ||
124 | Qt::WindowFlags f = Qt::WindowFlags()); | 124 | Qt::WindowFlags f = Qt::WindowFlags()); | ||
125 | 125 | | |||
126 | /** | 126 | /** | ||
127 | * Destructor. | 127 | * Destructor. | ||
128 | */ | 128 | */ | ||
129 | ~KRuler(); | 129 | ~KRuler(); | ||
130 | 130 | | |||
131 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
131 | /** | 132 | /** | ||
132 | * Sets the minimal value of the ruler pointer (default is 0). | 133 | * Sets the minimal value of the ruler pointer (default is 0). | ||
133 | * | 134 | * | ||
134 | * This method calls update() so that the widget is painted after leaving | 135 | * This method calls update() so that the widget is painted after leaving | ||
135 | * to the main event loop. | 136 | * to the main event loop. | ||
136 | * | 137 | * | ||
138 | * @deprecated Since 5.0, use setMinimum(int). | ||||
137 | **/ | 139 | **/ | ||
138 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 140 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "Use KRuler::setMinimum(int)") | ||
139 | KWIDGETSADDONS_DEPRECATED void setMinValue(int); | 141 | void setMinValue(int); | ||
140 | #endif | 142 | #endif | ||
141 | 143 | | |||
144 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
142 | /** | 145 | /** | ||
143 | * Returns the minimal value of the ruler pointer. | 146 | * Returns the minimal value of the ruler pointer. | ||
147 | * | ||||
148 | * @deprecated Since 5.0, use minimum(). | ||||
144 | **/ | 149 | **/ | ||
145 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 150 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "Use KRuler::minimum()") | ||
146 | KWIDGETSADDONS_DEPRECATED int minValue() const; | 151 | int minValue() const; | ||
147 | #endif | 152 | #endif | ||
148 | 153 | | |||
154 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
149 | /** | 155 | /** | ||
150 | * Sets the maximum value of the ruler pointer (default is 100). | 156 | * Sets the maximum value of the ruler pointer (default is 100). | ||
151 | * | 157 | * | ||
152 | * This method calls update() so that the widget is painted after leaving | 158 | * This method calls update() so that the widget is painted after leaving | ||
153 | * to the main event loop. | 159 | * to the main event loop. | ||
160 | * | ||||
161 | * @deprecated Since 5.0, use setMaximum(). | ||||
154 | */ | 162 | */ | ||
155 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 163 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "Use KRuler::setMaximum(int)") | ||
156 | KWIDGETSADDONS_DEPRECATED void setMaxValue(int); | 164 | void setMaxValue(int); | ||
157 | #endif | 165 | #endif | ||
158 | 166 | | |||
167 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
159 | /** | 168 | /** | ||
160 | * Returns the maximal value of the ruler pointer. | 169 | * Returns the maximal value of the ruler pointer. | ||
170 | * | ||||
171 | * @deprecated Since 5.0, use maximum(). | ||||
161 | */ | 172 | */ | ||
162 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 173 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "Use KRuler::maximum()") | ||
163 | KWIDGETSADDONS_DEPRECATED int maxValue() const; | 174 | int maxValue() const; | ||
164 | #endif | 175 | #endif | ||
165 | 176 | | |||
166 | /** | 177 | /** | ||
167 | * Sets the distance between tiny marks. | 178 | * Sets the distance between tiny marks. | ||
168 | * | 179 | * | ||
169 | * This is mostly used in the English system (inches) with distance of 1. | 180 | * This is mostly used in the English system (inches) with distance of 1. | ||
170 | */ | 181 | */ | ||
171 | void setTinyMarkDistance(int); | 182 | void setTinyMarkDistance(int); | ||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
232 | void setShowEndMarks(bool); | 243 | void setShowEndMarks(bool); | ||
233 | bool showEndMarks() const; | 244 | bool showEndMarks() const; | ||
234 | /** | 245 | /** | ||
235 | * Shows/hides the pointer. | 246 | * Shows/hides the pointer. | ||
236 | */ | 247 | */ | ||
237 | void setShowPointer(bool); | 248 | void setShowPointer(bool); | ||
238 | bool showPointer() const; | 249 | bool showPointer() const; | ||
239 | 250 | | |||
240 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 251 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||
241 | KWIDGETSADDONS_DEPRECATED void setFrameStyle(int); | 252 | /** | ||
253 | * Is a no-op. | ||||
254 | * @deprecated Since 5.0. | ||||
255 | */ | ||||
256 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "No longer a feature") | ||||
257 | void setFrameStyle(int); | ||||
242 | #endif | 258 | #endif | ||
243 | 259 | | |||
244 | /** | 260 | /** | ||
245 | * Show/hide number values of the end marks. | 261 | * Show/hide number values of the end marks. | ||
246 | * | 262 | * | ||
247 | * Default is @p false. | 263 | * Default is @p false. | ||
248 | **/ | 264 | **/ | ||
249 | void setShowEndLabel(bool); | 265 | void setShowEndLabel(bool); | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |