Warning, file /office/calligra/qtquick/CQTextDocumentModel.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * This file is part of the KDE project 0003 * 0004 * SPDX-FileCopyrightText: 2013 Shantanu Tushar <shantanu@kde.org> 0005 * SPDX-FileCopyrightText: 2013 Sujith Haridasan <sujith.h@gmail.com> 0006 * 0007 * SPDX-License-Identifier: LGPL-2.0-or-later 0008 * 0009 */ 0010 0011 #ifndef CQTEXTDOCUMENTMODEL_H 0012 #define CQTEXTDOCUMENTMODEL_H 0013 0014 #include <QAbstractListModel> 0015 #include <KWDocument.h> 0016 0017 0018 class CQTextDocumentModel : public QAbstractListModel 0019 { 0020 Q_OBJECT 0021 Q_PROPERTY(QSize thumbnailSize READ thumbnailSize WRITE setThumbnailSize NOTIFY thumbnailSizeChanged) 0022 public: 0023 CQTextDocumentModel(QObject* parent, KWDocument* document, KoShapeManager *shapemanager); 0024 virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; 0025 Q_INVOKABLE virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; 0026 0027 QSize thumbnailSize() const; 0028 void setThumbnailSize(const QSize& newSize); 0029 Q_SIGNALS: 0030 void documentControllerChanged(); 0031 void thumbnailSizeChanged(); 0032 0033 private: 0034 KWDocument *kw_document; 0035 KoShapeManager *kw_shapemanager; 0036 QSize m_thumbnailSize; 0037 }; 0038 0039 #endif // CQTEXTDOCUMENTMODEL_H