Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
|
||||
SPDX-FileContributor: Stephen Kelly <stephen@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef KVIEWSTATEMAINTAINERBASE_H
|
||||
#define KVIEWSTATEMAINTAINERBASE_H
|
||||
|
||||
#include "kwidgetsaddons_export.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class QItemSelectionModel;
|
||||
class QAbstractItemView;
|
||||
|
||||
class KViewStateMaintainerBasePrivate;
|
||||
|
||||
class KWIDGETSADDONS_EXPORT KViewStateMaintainerBase : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
KViewStateMaintainerBase(QObject *parent = nullptr);
|
||||
~KViewStateMaintainerBase() override;
|
||||
|
||||
void setSelectionModel(QItemSelectionModel *selectionModel);
|
||||
QItemSelectionModel *selectionModel() const;
|
||||
|
||||
void setView(QAbstractItemView *view);
|
||||
QAbstractItemView *view() const;
|
||||
|
||||
virtual void saveState() = 0;
|
||||
virtual void restoreState() = 0;
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(KViewStateMaintainerBase)
|
||||
std::unique_ptr<KViewStateMaintainerBasePrivate> const d_ptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user