Messagelib

groupheaderitem.cpp
1 /******************************************************************************
2  *
3  * SPDX-FileCopyrightText: 2008 Szymon Tomasz Stefanek <[email protected]>
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  *
7  *******************************************************************************/
8 
9 #include "core/groupheaderitem.h"
10 
11 using namespace MessageList::Core;
12 
13 GroupHeaderItem::GroupHeaderItem(const QString &label)
14  : Item(GroupHeader)
15  , mLabel(label)
16 {
17 }
18 
19 GroupHeaderItem::~GroupHeaderItem() = default;
20 
21 const QString &GroupHeaderItem::label() const
22 {
23  return mLabel;
24 }
25 
26 void GroupHeaderItem::setLabel(const QString &label)
27 {
28  mLabel = label;
29 }
QString label(StandardShortcut id)
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.