KGantt

kgantttreeviewrowcontroller.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 KGANTTTREEVIEWROWCONTROLLER_H
10#define KGANTTTREEVIEWROWCONTROLLER_H
11
12#include "kganttabstractrowcontroller.h"
13
14QT_BEGIN_NAMESPACE
16class QTreeView;
17QT_END_NAMESPACE
18
19namespace KGantt {
20
21
22 /*!\class TreeViewRowController
23 * This is an implementation of AbstractRowController that
24 * aligns a gantt view with a QTreeView.
25 */
26 class KGANTT_EXPORT TreeViewRowController : public AbstractRowController {
27 KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(TreeViewRowController)
28 public:
30 ~TreeViewRowController() override;
31
32 /*reimp*/ int headerHeight() const override;
33 /*reimp*/ int maximumItemHeight() const override;
34 /*reimp*/ int totalHeight() const override;
35 /*reimp*/ bool isRowVisible( const QModelIndex& idx ) const override;
36 /*reimp*/ bool isRowExpanded( const QModelIndex& idx ) const override;
37 /*reimp*/ Span rowGeometry( const QModelIndex& idx ) const override;
38 /*reimp*/ QModelIndex indexAt( int height ) const override;
39 /*reimp*/ QModelIndex indexAbove( const QModelIndex& idx ) const override;
40 /*reimp*/ QModelIndex indexBelow( const QModelIndex& idx ) const override;
41 };
42}
43
44#endif /* KGANTTTREEVIEWROWCONTROLLER_H */
45
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.