Incidenceeditor

freebusyganttproxymodel.h
1/*
2 SPDX-FileCopyrightText: 2010 Casey Link <unnamedrambler@gmail.com>
3 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "incidenceeditor_export.h"
11
12#include <QSortFilterProxyModel>
13
14namespace KCalendarCore
15{
16class FreeBusyPeriod;
17}
18
19namespace IncidenceEditorNG
20{
21/**
22 * This is a private proxy model, that wraps the free busy data exposed
23 * by the FreeBusyItemModel for use by KDGantt2.
24 *
25 * This model exposes the FreeBusyPeriods, which are the child level nodes
26 * in FreeBusyItemModel, as a list.
27 *
28 * @see FreeBusyItemMode
29 * @see FreeBusyItem
30 */
31class INCIDENCEEDITOR_EXPORT FreeBusyGanttProxyModel : public QSortFilterProxyModel
32{
33 Q_OBJECT
34public:
35 explicit FreeBusyGanttProxyModel(QObject *parent = nullptr);
36 [[nodiscard]] QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
37 [[nodiscard]] QString tooltipify(const KCalendarCore::FreeBusyPeriod &period) const;
38};
39}
This is a private proxy model, that wraps the free busy data exposed by the FreeBusyItemModel for use...
DisplayRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.