Pages
API Documentation
On this page

Kirigami::Platform::PlatformThemeChangeTracker Class

A class that tracks changes to PlatformTheme properties and emits signals at the right moment. This class was introduced in Qt 6.7. More...

  • Header: #include <Kirigami/Platform/PlatformTheme>
  • Since: Qt 6.7
  • CMake: find_package(KF6 REQUIRED COMPONENTS KirigamiPlatform)
    target_link_libraries(mytarget PRIVATE KF6::KirigamiPlatform)

List of all members, including inherited members

Public Types

Detailed Description

This should be used by PlatformTheme implementations to ensure that multiple changes to a PlatformTheme's properties do not emit multiple change signals, instead batching all of them into a single signal emission. This then ensures things making use of PlatformTheme aren't needlessly redrawn or redrawn in a partially changed state.

Member Type Documentation

enum PlatformThemeChangeTracker::PropertyChange

flags PlatformThemeChangeTracker::PropertyChanges

Flags used to indicate changes made to certain properties.

Constant
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::None 0
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::ColorSet 1 << 0
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::ColorGroup 1 << 1
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::Color 1 << 2
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::Palette 1 << 3
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::Font 1 << 4
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::Data 1 << 5
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::FrameContrast 1 << 6
Kirigami::Platform::PlatformThemeChangeTracker::PropertyChange::All `ColorSet

The PropertyChanges type is a typedef for QFlags<PropertyChange>. It stores an OR combination of PropertyChange values.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.