aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r--src/quicktemplates2/qquickcheckdelegate.cpp5
-rw-r--r--src/quicktemplates2/qquickcheckdelegate_p.h2
-rw-r--r--src/quicktemplates2/qquickradiodelegate.cpp5
-rw-r--r--src/quicktemplates2/qquickradiodelegate_p.h2
-rw-r--r--src/quicktemplates2/qquickswipedelegate.cpp2
-rw-r--r--src/quicktemplates2/qquickswitchdelegate.cpp5
-rw-r--r--src/quicktemplates2/qquickswitchdelegate_p.h1
7 files changed, 21 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcheckdelegate.cpp b/src/quicktemplates2/qquickcheckdelegate.cpp
index 8dafbd7e..2a08e702 100644
--- a/src/quicktemplates2/qquickcheckdelegate.cpp
+++ b/src/quicktemplates2/qquickcheckdelegate.cpp
@@ -157,6 +157,11 @@ void QQuickCheckDelegate::setCheckState(Qt::CheckState state)
emit checkedChanged();
}
+QFont QQuickCheckDelegate::defaultFont() const
+{
+ return QQuickControlPrivate::themeFont(QPlatformTheme::ListViewFont);
+}
+
void QQuickCheckDelegate::checkStateSet()
{
setCheckState(isChecked() ? Qt::Checked : Qt::Unchecked);
diff --git a/src/quicktemplates2/qquickcheckdelegate_p.h b/src/quicktemplates2/qquickcheckdelegate_p.h
index 45d5b15f..10b10488 100644
--- a/src/quicktemplates2/qquickcheckdelegate_p.h
+++ b/src/quicktemplates2/qquickcheckdelegate_p.h
@@ -74,6 +74,8 @@ Q_SIGNALS:
void checkStateChanged();
protected:
+ QFont defaultFont() const override;
+
void checkStateSet() override;
void nextCheckState() override;
diff --git a/src/quicktemplates2/qquickradiodelegate.cpp b/src/quicktemplates2/qquickradiodelegate.cpp
index 81eb20ae..aff57491 100644
--- a/src/quicktemplates2/qquickradiodelegate.cpp
+++ b/src/quicktemplates2/qquickradiodelegate.cpp
@@ -85,6 +85,11 @@ QQuickRadioDelegate::QQuickRadioDelegate(QQuickItem *parent) :
setAutoExclusive(true);
}
+QFont QQuickRadioDelegate::defaultFont() const
+{
+ return QQuickControlPrivate::themeFont(QPlatformTheme::ListViewFont);
+}
+
#ifndef QT_NO_ACCESSIBILITY
QAccessible::Role QQuickRadioDelegate::accessibleRole() const
{
diff --git a/src/quicktemplates2/qquickradiodelegate_p.h b/src/quicktemplates2/qquickradiodelegate_p.h
index b77969a8..b5de6aa6 100644
--- a/src/quicktemplates2/qquickradiodelegate_p.h
+++ b/src/quicktemplates2/qquickradiodelegate_p.h
@@ -62,6 +62,8 @@ public:
explicit QQuickRadioDelegate(QQuickItem *parent = nullptr);
protected:
+ QFont defaultFont() const override;
+
#ifndef QT_NO_ACCESSIBILITY
QAccessible::Role accessibleRole() const override;
#endif
diff --git a/src/quicktemplates2/qquickswipedelegate.cpp b/src/quicktemplates2/qquickswipedelegate.cpp
index 82030646..aa54237c 100644
--- a/src/quicktemplates2/qquickswipedelegate.cpp
+++ b/src/quicktemplates2/qquickswipedelegate.cpp
@@ -842,7 +842,7 @@ void QQuickSwipeDelegate::mouseReleaseEvent(QMouseEvent *event)
QFont QQuickSwipeDelegate::defaultFont() const
{
- return QQuickControlPrivate::themeFont(QPlatformTheme::ItemViewFont);
+ return QQuickControlPrivate::themeFont(QPlatformTheme::ListViewFont);
}
#ifndef QT_NO_ACCESSIBILITY
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp
index aefe2e6d..286d253b 100644
--- a/src/quicktemplates2/qquickswitchdelegate.cpp
+++ b/src/quicktemplates2/qquickswitchdelegate.cpp
@@ -148,6 +148,11 @@ qreal QQuickSwitchDelegate::visualPosition() const
return d->position;
}
+QFont QQuickSwitchDelegate::defaultFont() const
+{
+ return QQuickControlPrivate::themeFont(QPlatformTheme::ListViewFont);
+}
+
void QQuickSwitchDelegate::mirrorChange()
{
QQuickItemDelegate::mirrorChange();
diff --git a/src/quicktemplates2/qquickswitchdelegate_p.h b/src/quicktemplates2/qquickswitchdelegate_p.h
index 95b96d31..af931863 100644
--- a/src/quicktemplates2/qquickswitchdelegate_p.h
+++ b/src/quicktemplates2/qquickswitchdelegate_p.h
@@ -73,6 +73,7 @@ Q_SIGNALS:
void visualPositionChanged();
protected:
+ QFont defaultFont() const override;
void mirrorChange() override;
private: