| 1 | /* |
|---|---|
| 2 | This file is part of the KDE project |
| 3 | SPDX-FileCopyrightText: 2007 Matthias Kretz <kretz@kde.org> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-only |
| 6 | */ |
| 7 | |
| 8 | #ifndef KPAGEWIDGET_P_H |
| 9 | #define KPAGEWIDGET_P_H |
| 10 | |
| 11 | #include "kpageview_p.h" |
| 12 | #include "kpagewidget.h" |
| 13 | |
| 14 | class KPageWidgetModel; |
| 15 | class KPageWidgetPrivate : public KPageViewPrivate |
| 16 | { |
| 17 | Q_DECLARE_PUBLIC(KPageWidget) |
| 18 | protected: |
| 19 | KPageWidgetPrivate(KPageWidget *qq); |
| 20 | |
| 21 | KPageWidgetModel *model() const |
| 22 | { |
| 23 | return static_cast<KPageWidgetModel *>(KPageViewPrivate::model); |
| 24 | } |
| 25 | |
| 26 | void slotCurrentPageChanged(const QModelIndex &, const QModelIndex &); |
| 27 | }; |
| 28 | |
| 29 | #endif // KPAGEWIDGET_P_H |
| 30 |
