1
/* This file is part of the Kate project.
3
* Copyright (C) 2010 Christoph Cullmann <cullmann@kde.org>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
21
#ifndef KATE_PROJECT_ITEM_H
22
#define KATE_PROJECT_ITEM_H
24
#include <QStandardItem>
27
* Class representing a item inside a project.
28
* Items can be: projects, directories, files
30
class KateProjectItem : public QStandardItem
43
* construct new item with given text
44
* @param type type for this item
45
* @param text text for this item
47
KateProjectItem (Type type, const QString &text);
55
* Overwritten data methode for on-demand icon creation and co.
56
* @param role role to get data for
57
* @return data for role
59
QVariant data (int role = Qt::UserRole + 1) const;
70
mutable QIcon *m_icon;
75
// kate: space-indent on; indent-width 2; replace-tabs on;