1/*
2 SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz@gmx.at>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef DEFAULTVIEWADAPTER_H
8#define DEFAULTVIEWADAPTER_H
9
10#include "kabstractviewadapter.h"
11#include "kiofilewidgets_export.h"
12
13class QAbstractItemView;
14
15namespace KIO
16{
17/**
18 * Implementation of the view adapter for the default case when
19 * an instance of QAbstractItemView is used as view.
20 */
21class KIOFILEWIDGETS_EXPORT DefaultViewAdapter : public KAbstractViewAdapter
22{
23 Q_OBJECT
24public:
25 DefaultViewAdapter(QAbstractItemView *view, QObject *parent);
26 QAbstractItemModel *model() const override;
27 QSize iconSize() const override;
28 QPalette palette() const override;
29 QRect visibleArea() const override;
30 QRect visualRect(const QModelIndex &index) const override;
31 void connect(Signal signal, QObject *receiver, const char *slot) override;
32
33private:
34 QAbstractItemView *m_view;
35};
36}
37
38#endif
39

source code of kio/src/filewidgets/defaultviewadapter_p.h