KAbstractViewAdapter Class

Interface used by KFilePreviewGenerator to generate previews for files. More...

Header: #include <KAbstractViewAdapter>
CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOFileWidgets)
Inherits: QObject

Public Types

enum Signal { ScrollBarValueChanged, IconSizeChanged }

Public Functions

KAbstractViewAdapter(QObject *parent)
virtual void connect(KAbstractViewAdapter::Signal signal, QObject *receiver, const char *slot) = 0
virtual QSize iconSize() const = 0
virtual QAbstractItemModel *model() const = 0
virtual QPalette palette() const = 0
virtual QRect visibleArea() const = 0
virtual QRect visualRect(const QModelIndex &index) const = 0

Detailed Description

The interface allows KFilePreviewGenerator to be independent from the view implementation.

Member Type Documentation

enum KAbstractViewAdapter::Signal

ConstantValue
KAbstractViewAdapter::ScrollBarValueChanged0
KAbstractViewAdapter::IconSizeChanged1

Member Function Documentation

KAbstractViewAdapter::KAbstractViewAdapter(QObject *parent)

[pure virtual] void KAbstractViewAdapter::connect(KAbstractViewAdapter::Signal signal, QObject *receiver, const char *slot)

[pure virtual] QSize KAbstractViewAdapter::iconSize() const

[pure virtual] QAbstractItemModel *KAbstractViewAdapter::model() const

[pure virtual] QPalette KAbstractViewAdapter::palette() const

[pure virtual] QRect KAbstractViewAdapter::visibleArea() const

[pure virtual] QRect KAbstractViewAdapter::visualRect(const QModelIndex &index) const