Eventviews

coloredtodoproxymodel.h
1/*
2 SPDX-FileCopyrightText: 2023 Kevin Ottens <ervin@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
5*/
6
7#pragma once
8
9#include "eventviews_export.h"
10#include "prefs.h"
11
12#include <QIdentityProxyModel>
13
14#include <memory>
15
16class ColoredTodoProxyModelPrivate;
17
18/**
19 * ProxyModel adding background color for overdue and due today items in a TodoModel
20 */
22{
23public:
24 explicit ColoredTodoProxyModel(const EventViews::PrefsPtr &preferences, QObject *parent = nullptr);
25 ~ColoredTodoProxyModel() override;
26
27 [[nodiscard]] QVariant data(const QModelIndex &index, int role) const override;
28
29private:
30 std::unique_ptr<ColoredTodoProxyModelPrivate> const d;
31};
ProxyModel adding background color for overdue and due today items in a TodoModel.
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.