KGantt

kganttlistviewrowcontroller.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KGantt library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KGANTTLISTVIEWROWCONTROLLER_H
10#define KGANTTLISTVIEWROWCONTROLLER_H
11
12#include "kganttabstractrowcontroller.h"
13
14QT_BEGIN_NAMESPACE
16class QListView;
18
19namespace KGantt {
20
21
22 /*!\class ListViewRowController
23 * This is an implementation of AbstractRowController that
24 * aligns a gantt view with a QListView. Provided for
25 * convenience for users who want to use View with QListView
26 * instead of QTreeView.
27 */
28 class KGANTT_EXPORT ListViewRowController : public AbstractRowController {
29 KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(ListViewRowController)
30 public:
32 ~ListViewRowController() override;
33
34 /*reimp*/ int headerHeight() const override;
35 /*reimp*/ int maximumItemHeight() const override;
36 /*reimp*/ int totalHeight() const override;
37 /*reimp*/ bool isRowVisible( const QModelIndex& idx ) const override;
38 /*reimp*/ bool isRowExpanded( const QModelIndex& idx ) const override;
39 /*reimp*/ Span rowGeometry( const QModelIndex& idx ) const override;
40 /*reimp*/ QModelIndex indexAt( int height ) const override;
41 /*reimp*/ QModelIndex indexAbove( const QModelIndex& idx ) const override;
42 /*reimp*/ QModelIndex indexBelow( const QModelIndex& idx ) const override;
43 };
44}
45
46#endif /* KGANTTLISTVIEWROWCONTROLLER_H */
47
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
A class representing a start point and a length.
Global namespace.
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.