182 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
183 Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged FINAL)
184 Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged FINAL)
185 Q_PROPERTY(qreal verticalOffset READ verticalOffset WRITE setVerticalOffset NOTIFY verticalOffsetChanged FINAL)
186 Q_PROPERTY(qreal horizontalOffset READ horizontalOffset WRITE setHorizontalOffset NOTIFY horizontalOffsetChanged FINAL)
187 Q_PROPERTY(qreal blur READ blur WRITE setBlur NOTIFY blurChanged FINAL)
188 Q_PROPERTY(
bool visible READ visible WRITE setVisible NOTIFY visibleChanged FINAL)
189 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
190 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
191 QML_NAMED_ELEMENT(ShadowStyle)
194 QQStyleKitShadowProperties(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
196 template <
typename... CHANGED_SIGNALS>
197 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
199 QColor color()
const;
200 void setColor(QColor color);
202 qreal opacity()
const;
203 void setOpacity(qreal opacity);
206 void setScale(qreal scale);
208 qreal verticalOffset()
const;
209 void setVerticalOffset(qreal verticalOffset);
211 qreal horizontalOffset()
const;
212 void setHorizontalOffset(qreal horizontalOffset);
215 void setBlur(qreal blur);
217 bool visible()
const;
218 void setVisible(
bool visible);
220 QQmlComponent *delegate()
const;
221 void setDelegate(QQmlComponent *delegate);
225 void opacityChanged();
227 void verticalOffsetChanged();
228 void horizontalOffsetChanged();
230 void visibleChanged();
231 void delegateChanged();
239 Q_PROPERTY(qreal width READ width WRITE setWidth NOTIFY widthChanged FINAL)
240 Q_PROPERTY(qreal height READ height WRITE setHeight NOTIFY heightChanged FINAL)
241 Q_PROPERTY(qreal minimumWidth READ minimumWidth WRITE setMinimumWidth NOTIFY minimumWidthChanged FINAL)
242 Q_PROPERTY(qreal minimumHeight READ minimumHeight WRITE setMinimumHeight NOTIFY minimumHeightChanged FINAL)
243 Q_PROPERTY(
bool fillWidth READ fillWidth WRITE setFillWidth NOTIFY fillWidthChanged FINAL)
244 Q_PROPERTY(
bool fillHeight READ fillHeight WRITE setFillHeight NOTIFY fillHeightChanged FINAL)
245 Q_PROPERTY(qreal margins READ margins WRITE setMargins NOTIFY marginsChanged FINAL)
246 Q_PROPERTY(qreal leftMargin READ leftMargin WRITE setLeftMargin NOTIFY leftMarginChanged FINAL)
247 Q_PROPERTY(qreal rightMargin READ rightMargin WRITE setRightMargin NOTIFY rightMarginChanged FINAL)
248 Q_PROPERTY(qreal topMargin READ topMargin WRITE setTopMargin NOTIFY topMarginChanged FINAL)
249 Q_PROPERTY(qreal bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY bottomMarginChanged FINAL)
250 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged FINAL)
251 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged FINAL)
252 Q_PROPERTY(qreal topLeftRadius READ topLeftRadius WRITE setTopLeftRadius NOTIFY topLeftRadiusChanged FINAL)
253 Q_PROPERTY(qreal topRightRadius READ topRightRadius WRITE setTopRightRadius NOTIFY topRightRadiusChanged FINAL)
254 Q_PROPERTY(qreal bottomLeftRadius READ bottomLeftRadius WRITE setBottomLeftRadius NOTIFY bottomLeftRadiusChanged FINAL)
255 Q_PROPERTY(qreal bottomRightRadius READ bottomRightRadius WRITE setBottomRightRadius NOTIFY bottomRightRadiusChanged FINAL)
256 Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged FINAL)
257 Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged FINAL)
258 Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged FINAL)
259 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
260 Q_PROPERTY(
bool visible READ visible WRITE setVisible NOTIFY visibleChanged FINAL)
261 Q_PROPERTY(
bool clip READ clip WRITE setClip NOTIFY clipChanged FINAL)
262 Q_PROPERTY(QQuickGradient *gradient READ gradient WRITE setGradient NOTIFY gradientChanged FINAL)
263 Q_PROPERTY(QQStyleKitImageProperties *image READ image NOTIFY imageChanged FINAL)
264 Q_PROPERTY(QQStyleKitBorderProperties *border READ border NOTIFY borderChanged FINAL)
265 Q_PROPERTY(QQStyleKitShadowProperties *shadow READ shadow NOTIFY shadowChanged FINAL)
266 Q_PROPERTY(QObject *data READ data WRITE setData NOTIFY dataChanged FINAL)
267 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
268 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
269 QML_NAMED_ELEMENT(DelegateStyle)
272 QQStyleKitDelegateProperties(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
274 template <
typename... CHANGED_SIGNALS>
275 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
277 qreal radius()
const;
278 void setRadius(qreal radius);
280 qreal topLeftRadius()
const;
281 void setTopLeftRadius(qreal radius);
283 qreal topRightRadius()
const;
284 void setTopRightRadius(qreal radius);
286 qreal bottomLeftRadius()
const;
287 void setBottomLeftRadius(qreal radius);
289 qreal bottomRightRadius()
const;
290 void setBottomRightRadius(qreal radius);
293 void setScale(qreal scale);
295 qreal rotation()
const;
296 void setRotation(qreal rotation);
299 void setWidth(qreal width);
301 qreal height()
const;
302 void setHeight(qreal height);
304 qreal minimumWidth()
const;
305 void setMinimumWidth(qreal width);
307 qreal minimumHeight()
const;
308 void setMinimumHeight(qreal height);
310 bool fillWidth()
const;
311 void setFillWidth(
bool fill);
313 bool fillHeight()
const;
314 void setFillHeight(
bool fill);
316 qreal margins()
const;
317 void setMargins(qreal margins);
319 qreal leftMargin()
const;
320 void setLeftMargin(qreal margin);
322 qreal rightMargin()
const;
323 void setRightMargin(qreal margin);
325 qreal topMargin()
const;
326 void setTopMargin(qreal margin);
328 qreal bottomMargin()
const;
329 void setBottomMargin(qreal margin);
331 Qt::Alignment alignment()
const;
332 void setAlignment(Qt::Alignment alignment);
334 qreal opacity()
const;
335 void setOpacity(qreal opacity);
337 QColor color()
const;
338 void setColor(
const QColor &color);
340 bool visible()
const;
341 void setVisible(
bool visible);
344 void setClip(
bool clip);
346 QQuickGradient *gradient()
const;
347 void setGradient(QQuickGradient *gradient);
349 QObject *data()
const;
350 void setData(QObject *data);
352 QQmlComponent *delegate()
const;
353 void setDelegate(QQmlComponent *delegate);
355 QQStyleKitImageProperties *image()
const;
356 QQStyleKitBorderProperties *border()
const;
357 QQStyleKitShadowProperties *shadow()
const;
361 void radiusChanged();
362 void topLeftRadiusChanged();
363 void topRightRadiusChanged();
364 void bottomLeftRadiusChanged();
365 void bottomRightRadiusChanged();
367 void rotationChanged();
368 void visibleChanged();
370 void borderChanged();
371 void shadowChanged();
373 void gradientChanged();
374 void colorImageChanged();
376 void heightChanged();
377 void minimumWidthChanged();
378 void minimumHeightChanged();
379 void marginsChanged();
380 void leftMarginChanged();
381 void rightMarginChanged();
382 void topMarginChanged();
383 void bottomMarginChanged();
384 void alignmentChanged();
385 void opacityChanged();
387 void delegateChanged();
388 void fillWidthChanged();
389 void fillHeightChanged();
392 void forEachExistingNestedGroup(
393 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
396 QPointer<QQuickGradient> m_gradient;
397 QQStyleKitBorderProperties *m_border =
nullptr;
398 QQStyleKitShadowProperties *m_shadow =
nullptr;
399 QQStyleKitImageProperties *m_image =
nullptr;
407 Q_PROPERTY(QQStyleKitDelegateProperties *first READ first NOTIFY firstChanged FINAL)
408 Q_PROPERTY(QQStyleKitDelegateProperties *second READ second NOTIFY secondChanged FINAL)
409 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
410 QML_NAMED_ELEMENT(HandleStyle)
413 QQStyleKitHandleProperties(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
414 QQStyleKitDelegateProperties *first()
const;
415 QQStyleKitDelegateProperties *second()
const;
419 void secondChanged();
422 void forEachExistingNestedGroup(
423 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
426 QQStyleKitDelegateProperties *m_first =
nullptr;
427 QQStyleKitDelegateProperties *m_second =
nullptr;
429 friend class QQStyleKitReader;
430 friend class QQStyleKitControlProperties;
438 Q_PROPERTY(QQStyleKitDelegateProperties *foreground READ foreground NOTIFY foregroundChanged FINAL)
439 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
440 QML_NAMED_ELEMENT(SubIndicatorStyle)
443 QQStyleKitIndicatorProperties(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
445 template <
typename... CHANGED_SIGNALS>
446 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
448 QQStyleKitDelegateProperties *foreground()
const;
451 void foregroundChanged();
454 void forEachExistingNestedGroup(
455 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
458 QQStyleKitDelegateProperties *m_foreground =
nullptr;
460 friend class QQStyleKitReader;
461 friend class QQStyleKitControlProperties;
469 Q_PROPERTY(QQStyleKitDelegateProperties *foreground READ foreground NOTIFY foregroundChanged FINAL)
470 Q_PROPERTY(QQStyleKitIndicatorProperties *up READ up NOTIFY upChanged FINAL)
471 Q_PROPERTY(QQStyleKitIndicatorProperties *down READ down NOTIFY downChanged FINAL)
472 Q_PROPERTY(QQStyleKitIndicatorProperties *first READ first NOTIFY firstChanged FINAL)
473 Q_PROPERTY(QQStyleKitIndicatorProperties *second READ second NOTIFY secondChanged FINAL)
474 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
475 QML_NAMED_ELEMENT(IndicatorStyle)
478 QQStyleKitIndicatorWithSubTypes(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
480 template <
typename... CHANGED_SIGNALS>
481 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
483 QQStyleKitDelegateProperties *foreground()
const;
484 QQStyleKitIndicatorProperties *up()
const;
485 QQStyleKitIndicatorProperties *down()
const;
487 QQStyleKitIndicatorProperties *first()
const;
488 QQStyleKitIndicatorProperties *second()
const;
491 void foregroundChanged();
495 void secondChanged();
498 void forEachExistingNestedGroup(
499 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
502 QQStyleKitDelegateProperties *m_foreground =
nullptr;
503 QQStyleKitIndicatorProperties *m_first =
nullptr;
504 QQStyleKitIndicatorProperties *m_second =
nullptr;
506 friend class QQStyleKitReader;
507 friend class QQStyleKitControlProperties;
515 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
516 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged FINAL)
517 Q_PROPERTY(
bool bold READ bold WRITE setBold NOTIFY boldChanged FINAL)
518 Q_PROPERTY(
bool italic READ italic WRITE setItalic NOTIFY italicChanged FINAL)
519 Q_PROPERTY(qreal pointSize READ pointSize WRITE setPointSize NOTIFY pointSizeChanged FINAL)
520 Q_PROPERTY(qreal padding READ padding WRITE setPadding NOTIFY paddingChanged FINAL)
521 Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding NOTIFY leftPaddingChanged FINAL)
522 Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding NOTIFY rightPaddingChanged FINAL)
523 Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding NOTIFY topPaddingChanged FINAL)
524 Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding NOTIFY bottomPaddingChanged FINAL)
525 Q_PROPERTY(QQStyleKitTextProperties *first READ first NOTIFY firstChanged FINAL)
526 Q_PROPERTY(QQStyleKitTextProperties *second READ second NOTIFY secondChanged FINAL)
527 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
528 QML_NAMED_ELEMENT(TextStyle)
531 QQStyleKitTextProperties(QQSK::PropertyGroup group, QQStyleKitControlProperties *parent =
nullptr);
533 template <
typename... CHANGED_SIGNALS>
534 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
536 QColor color()
const;
537 void setColor(
const QColor &color);
539 Qt::Alignment alignment()
const;
540 void setAlignment(Qt::Alignment alignment);
543 void setBold(
bool bold);
546 void setItalic(
bool italic);
548 qreal pointSize()
const;
549 void setPointSize(qreal pointSize);
551 qreal padding()
const;
552 void setPadding(qreal padding);
554 qreal leftPadding()
const;
555 void setLeftPadding(qreal leftPadding);
557 qreal rightPadding()
const;
558 void setRightPadding(qreal rightPadding);
560 qreal topPadding()
const;
561 void setTopPadding(qreal topPadding);
563 qreal bottomPadding()
const;
564 void setBottomPadding(qreal bottomPadding);
566 QQStyleKitTextProperties *first()
const;
567 QQStyleKitTextProperties *second()
const;
571 void alignmentChanged();
573 void italicChanged();
574 void pointSizeChanged();
575 void paddingChanged();
576 void leftPaddingChanged();
577 void rightPaddingChanged();
578 void topPaddingChanged();
579 void bottomPaddingChanged();
581 void secondChanged();
584 void forEachExistingNestedGroup(
585 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
588 QQStyleKitTextProperties *m_first =
nullptr;
589 QQStyleKitTextProperties *m_second =
nullptr;
605 Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing NOTIFY spacingChanged FINAL)
606 Q_PROPERTY(qreal padding READ padding WRITE setPadding NOTIFY paddingChanged FINAL)
607 Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding NOTIFY leftPaddingChanged FINAL)
608 Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding NOTIFY rightPaddingChanged FINAL)
609 Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding NOTIFY topPaddingChanged FINAL)
610 Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding NOTIFY bottomPaddingChanged FINAL)
611 Q_PROPERTY(QQStyleKitDelegateProperties *background READ background NOTIFY backgroundChanged FINAL)
612 Q_PROPERTY(QQStyleKitHandleProperties *handle READ handle NOTIFY handleChanged FINAL)
613 Q_PROPERTY(QQStyleKitIndicatorWithSubTypes *indicator READ indicator NOTIFY indicatorChanged FINAL)
614 Q_PROPERTY(QQStyleKitTextProperties *text READ text NOTIFY textChanged FINAL)
615 Q_PROPERTY(QQuickTransition *transition READ transition WRITE setTransition NOTIFY transitionChanged FINAL)
617 QML_UNCREATABLE(
"This component can only be instantiated by StyleKit")
618 QML_NAMED_ELEMENT(ControlStyleProperties)
621 QQStyleKitControlProperties(QQSK::PropertyGroup group, QObject *parent =
nullptr);
623 void emitChangedForAllStyleProperties(EmitFlags emitFlags);;
624 template <
typename... CHANGED_SIGNALS>
625 void emitGlobally(CHANGED_SIGNALS... changedSignals)
const;
626 void forEachUsedDelegate(
627 std::function<
void (QQStyleKitDelegateProperties *, QQSK::Delegate,
const QString &)> f);
629 QQStyleKitStyle *style()
const;
630 QQSK::Subclass subclass()
const;
631 QQStyleKitReader *asQQStyleKitReader()
const;
632 QQStyleKitControlState *asQQStyleKitState()
const;
634 qreal spacing()
const;
635 void setSpacing(qreal spacing);
637 qreal padding()
const;
638 void setPadding(qreal padding);
640 qreal leftPadding()
const;
641 void setLeftPadding(qreal leftPadding);
643 qreal rightPadding()
const;
644 void setRightPadding(qreal rightPadding);
646 qreal topPadding()
const;
647 void setTopPadding(qreal topPadding);
649 qreal bottomPadding()
const;
650 void setBottomPadding(qreal bottomPadding);
652 QQuickTransition* transition()
const;
653 void setTransition(QQuickTransition *transition);
655 QQStyleKitTextProperties *text()
const;
657 QQStyleKitDelegateProperties *background()
const;
658 QQStyleKitHandleProperties *handle()
const;
659 QQStyleKitIndicatorWithSubTypes *indicator()
const;
662 void backgroundChanged();
663 void handleChanged();
664 void indicatorChanged();
665 void spacingChanged();
666 void paddingChanged();
667 void leftPaddingChanged();
668 void rightPaddingChanged();
669 void topPaddingChanged();
670 void bottomPaddingChanged();
671 void transitionChanged();
675 void forEachExistingNestedGroup(
676 const std::function<
void (QQStyleKitPropertyGroup *)> &f)
const override;
679 Q_DISABLE_COPY(QQStyleKitControlProperties)
681 QQStyleKitDelegateProperties *m_background =
nullptr;
682 QQStyleKitHandleProperties *m_handle =
nullptr;
683 QQStyleKitIndicatorWithSubTypes *m_indicator =
nullptr;
684 QQStyleKitTextProperties *m_text =
nullptr;
686 friend class QQStyleKitPropertyResolver;
687 friend class QQStyleKitReader;