BibleTime
src
backend
bookshelfmodel
indexingitem.cpp
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 1999-2021 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#include "
indexingitem.h
"
14
15
#include <QObject>
16
#include <QString>
17
18
19
namespace
BookshelfModel
{
20
21
QVariant
IndexingItem::data
(
int
role)
const
{
22
if
(role != Qt::DisplayRole)
23
return
Item::data
(role);
24
25
return
m_indexed
26
? QObject::tr(
"Indexed works"
)
27
: QObject::tr(
"Unindexed works"
);
28
}
29
30
}
// namespace BookshelfModel
BookshelfModel::IndexingItem::m_indexed
bool m_indexed
Definition:
indexingitem.h:38
BookshelfModel::IndexingItem::data
QVariant data(int role=Qt::DisplayRole) const override
Returns data for this item.
Definition:
indexingitem.cpp:21
BookshelfModel::Item::data
virtual QVariant data(int role=Qt::DisplayRole) const
Returns data for this item.
Definition:
item.cpp:44
indexingitem.h
BookshelfModel
Definition:
btbookshelftreemodel.h:32
Generated by
1.9.1