KompareDiff2

diffmodellist.h
1/*
2 SPDX-FileCopyrightText: 2004-2005, 2009 Otto Bruggeman <bruggie@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef KOMPAREDIFF2_DIFFMODELLIST_H
8#define KOMPAREDIFF2_DIFFMODELLIST_H
9
10// lib
11#include "diffmodel.h"
12#include "komparediff2_export.h"
13// Qt
14#include <QList>
15
16/**
17 * KompareDiff2 namespace
18 */
19namespace KompareDiff2
20{
21
22/**
23 * @class DiffModelList diffmodellist.h <KompareDiff2/DiffModelList>
24 *
25 * A list of DiffModel.
26 */
27class KOMPAREDIFF2_EXPORT DiffModelList : public QList<DiffModel *>
28{
29public:
30 DiffModelList() = default;
31 DiffModelList(const DiffModelList &list)
32 : QList<DiffModel *>(list)
33 {
34 }
35 virtual ~DiffModelList()
36 {
37 qDeleteAll(begin(), end());
38 }
39
40public:
41 void sort();
42};
43
46
47} // End of Namespace KompareDiff2
48
49#endif // KOMPAREDIFF2_DIFFMODELLIST_H
A list of DiffModel.
KompareDiff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.