KIO
7#include "defaultviewadapter_p.h"
9#include <QAbstractItemView>
14DefaultViewAdapter::DefaultViewAdapter(QAbstractItemView *view, QObject *parent)
15 : KAbstractViewAdapter(parent)
22 return m_view->model();
25QSize DefaultViewAdapter::iconSize()
const
27 return m_view->iconSize();
30QPalette DefaultViewAdapter::palette()
const
32 return m_view->palette();
35QRect DefaultViewAdapter::visibleArea()
const
37 return m_view->viewport()->rect();
42 return m_view->visualRect(index);
45void DefaultViewAdapter::connect(Signal signal,
QObject *receiver,
const char *slot)
47 if (signal == ScrollBarValueChanged) {
48 QObject::connect(m_view->horizontalScrollBar(), SIGNAL(valueChanged(
int)), receiver, slot);
49 QObject::connect(m_view->verticalScrollBar(), SIGNAL(valueChanged(
int)), receiver, slot);
55#include "moc_defaultviewadapter_p.cpp"
A namespace for KIO globals.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.