12#include <kwidgetsaddons_export.h>
14#include <QAbstractSlider>
56 Q_PROPERTY(
bool showTinyMarks READ showTinyMarks WRITE setShowTinyMarks)
57 Q_PROPERTY(
bool showLittleMarks READ showLittleMarks WRITE setShowLittleMarks)
58 Q_PROPERTY(
bool showMediumMarks READ showMediumMarks WRITE setShowMediumMarks)
59 Q_PROPERTY(
bool showBigMarks READ showBigMarks WRITE setShowBigMarks)
60 Q_PROPERTY(
bool showPointer READ showPointer WRITE setShowPointer)
61 Q_PROPERTY(
bool showEndLabel READ showEndLabel WRITE setShowEndLabel)
62 Q_PROPERTY(
int tinyMarkDistance READ tinyMarkDistance WRITE setTinyMarkDistance)
63 Q_PROPERTY(
int littleMarkDistance READ littleMarkDistance WRITE setLittleMarkDistance)
64 Q_PROPERTY(
int mediumMarkDistance READ mediumMarkDistance WRITE setBigMarkDistance)
65 Q_PROPERTY(
int bigMarkDistance READ bigMarkDistance WRITE setBigMarkDistance)
66 Q_PROPERTY(
double pixelPerMark READ pixelPerMark WRITE setPixelPerMark)
67 Q_PROPERTY(
bool lengthFixed READ lengthFixed WRITE setLengthFixed)
69 Q_PROPERTY(
int length READ length WRITE setLength)
77 enum MetricStyle { Custom = 0, Pixel, Inch, Millimetres, Centimetres, Metres };
124 void setTinyMarkDistance(
int);
128 int tinyMarkDistance()
const;
135 void setLittleMarkDistance(
int);
140 int littleMarkDistance()
const;
148 void setMediumMarkDistance(
int);
149 int mediumMarkDistance()
const;
156 void setBigMarkDistance(
int);
160 int bigMarkDistance()
const;
165 void setShowTinyMarks(
bool);
166 bool showTinyMarks()
const;
170 void setShowLittleMarks(
bool);
171 bool showLittleMarks()
const;
175 void setShowMediumMarks(
bool);
176 bool showMediumMarks()
const;
180 void setShowBigMarks(
bool);
181 bool showBigMarks()
const;
185 void setShowEndMarks(
bool);
186 bool showEndMarks()
const;
190 void setShowPointer(
bool);
191 bool showPointer()
const;
198 void setShowEndLabel(
bool);
199 bool showEndLabel()
const;
205 void setEndLabel(
const QString &);
233 void setPixelPerMark(
double rate);
238 double pixelPerMark()
const;
258 void setLengthFixed(
bool fix);
259 bool lengthFixed()
const;
272 void slideUp(
int count = 1);
285 void slideDown(
int count = 1);
295 void setOffset(
int offset);
302 int endOffset()
const;
312 void slotNewValue(
int);
320 void slotNewOffset(
int);
322 void slotEndOffset(
int);
331 std::unique_ptr<class KRulerPrivate>
const d;
~KRuler() override
Destructor.
MetricStyle
The types of units used.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.