Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/core/units.h
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
127 | Q_PROPERTY(int longDuration READ longDuration NOTIFY durationChanged) | 127 | Q_PROPERTY(int longDuration READ longDuration NOTIFY durationChanged) | ||
128 | 128 | | |||
129 | /** | 129 | /** | ||
130 | * units.shortDuration should be used for short animations, such as accentuating a UI event, | 130 | * units.shortDuration should be used for short animations, such as accentuating a UI event, | ||
131 | * hover events, etc.. | 131 | * hover events, etc.. | ||
132 | */ | 132 | */ | ||
133 | Q_PROPERTY(int shortDuration READ shortDuration NOTIFY durationChanged) | 133 | Q_PROPERTY(int shortDuration READ shortDuration NOTIFY durationChanged) | ||
134 | 134 | | |||
135 | /** | ||||
136 | * units.veryLongDuration should be used for specialty animations that benefit | ||||
137 | * from being even longer than longDuration. | ||||
138 | */ | ||||
139 | Q_PROPERTY(int veryLongDuration READ veryLongDuration NOTIFY durationChanged) | ||||
140 | | ||||
135 | public: | 141 | public: | ||
136 | /// @cond INTERNAL_DOCS | 142 | /// @cond INTERNAL_DOCS | ||
137 | 143 | | |||
138 | ~Units(); | 144 | ~Units(); | ||
139 | 145 | | |||
140 | /** | 146 | /** | ||
141 | * @return a reference to the global Units instance | 147 | * @return a reference to the global Units instance | ||
142 | * @since 5.31 | 148 | * @since 5.31 | ||
Show All 39 Lines | |||||
182 | */ | 188 | */ | ||
183 | int longDuration() const; | 189 | int longDuration() const; | ||
184 | 190 | | |||
185 | /** | 191 | /** | ||
186 | * @return Duration for short animations, in milliseconds. | 192 | * @return Duration for short animations, in milliseconds. | ||
187 | * @since 5.0 | 193 | * @since 5.0 | ||
188 | */ | 194 | */ | ||
189 | int shortDuration() const; | 195 | int shortDuration() const; | ||
196 | | ||||
197 | /** | ||||
198 | * @return Duration for very long animations, in milliseconds. | ||||
199 | * @since 5.69 | ||||
200 | */ | ||||
201 | int veryLongDuration() const; | ||||
190 | /// @endcond | 202 | /// @endcond | ||
191 | 203 | | |||
192 | /** | 204 | /** | ||
193 | * @return a size rounded tothe nearest inferior standard icon size. | 205 | * @return a size rounded tothe nearest inferior standard icon size. | ||
194 | * sizes larger than iconSizes.huge, it will be returned unmodified | 206 | * sizes larger than iconSizes.huge, it will be returned unmodified | ||
195 | * @param int size the size we want to be rounded down | 207 | * @param int size the size we want to be rounded down | ||
196 | * @see iconSizes | 208 | * @see iconSizes | ||
197 | */ | 209 | */ | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |