Pages
API Documentation
On this page

KViewStateMaintainer Class

Encapsulates the maintenance of state between resets of QAbstractItemModel. More...

  • Header: #include <KViewStateMaintainer>
  • CMake: find_package(KF6 REQUIRED COMPONENTS ConfigWidgets)
    target_link_libraries(mytarget PRIVATE KF6::ConfigWidgets)
  • Inherits: KViewStateMaintainerBase

List of all members, including inherited members

Public Functions

Detailed Description

m_collectionViewStateMaintainer = new KViewStateMaintainer<Akonadi::ETMViewStateSaver>(KSharedConfig::openConfig()->group("collectionView"));
m_collectionViewStateMaintainer->setView(m_collectionView);

m_collectionCheckStateMaintainer = new KViewStateMaintainer<Akonadi::ETMViewStateSaver>(KSharedConfig::openConfig()->group("collectionCheckState"));
m_collectionCheckStateMaintainer->setSelectionModel(m_checkableProxy->selectionModel());

See also KConfigViewStateSaver

Member Function Documentation

KViewStateMaintainer::KViewStateMaintainer(const KConfigGroup &configGroup, QObject *parent = nullptr)

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