diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,33 +52,37 @@ find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Gui Sql Qml Svg) -find_package(KF5Activities ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Archive ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Config ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5ConfigWidgets ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5CoreAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5DBusAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Declarative ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5GlobalAccel ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5GuiAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5I18n ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5IconThemes ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5KIO ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Service ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5WindowSystem ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5XmlGui ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Notifications ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Package ${KF5_DEP_VERSION} REQUIRED) - -find_package(KF5Wayland ${KF5_DEP_VERSION}) +find_package(KF5 ${KF5_DEP_VERSION} REQUIRED + COMPONENTS + Activities + Archive + Config + ConfigWidgets + CoreAddons + DBusAddons + Declarative + GlobalAccel + GuiAddons + I18n + IconThemes + KIO + Service + WindowSystem + XmlGui + Notifications + Package + OPTIONAL_COMPONENTS + Wayland + DocTools +) + set_package_properties(KF5Wayland PROPERTIES DESCRIPTION "Integration with the Wayland compositor" TYPE OPTIONAL ) if(KF5Wayland_FOUND) set(HAVE_KWAYLAND 1) endif() -find_package(KF5DocTools ${KF5_DEP_VERSION}) set_package_properties(KF5DocTools PROPERTIES DESCRIPTION "Tools to generate documentation" TYPE OPTIONAL ) diff --git a/src/declarativeimports/plasmaextracomponents/qml/Heading.qml b/src/declarativeimports/plasmaextracomponents/qml/Heading.qml --- a/src/declarativeimports/plasmaextracomponents/qml/Heading.qml +++ b/src/declarativeimports/plasmaextracomponents/qml/Heading.qml @@ -48,14 +48,19 @@ id: heading /** + * level: int * The level determines how big the section header is display, values * between 1 (big) and 5 (small) are accepted */ property int level: 1 + /** + * step: int + * adjust the point size in between a level and another. + */ property int step: 2 - height: Math.round(paintedHeight * 1.2) + lineHeight: 1.2 font.pointSize: headerPointSize(level) font.weight: Font.Light wrapMode: Text.WordWrap