KCompletion

kcompletionmatches.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1999, 2000 Carsten Pfeiffer <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KCOMPLETIONMATCHES_H
9 #define KCOMPLETIONMATCHES_H
10 
11 #include <ksortablelist.h>
12 #include <kcompletion_export.h>
13 
14 #include <QStringList>
15 #include <QScopedPointer>
16 
17 class KCompletionMatchesWrapper;
18 class KCompletionMatchesPrivate;
19 
21 
42 class KCOMPLETION_EXPORT KCompletionMatches : public KCompletionMatchesList
43 {
44 public:
45  Q_DECLARE_PRIVATE(KCompletionMatches)
51  KCompletionMatches(bool sort);
52 
57 
62 
66  KCompletionMatches(const KCompletionMatchesWrapper &matches);
67 
76  void removeDuplicates();
83  QStringList list(bool sort = true) const;
89  bool sorting() const;
90 
91 private:
93 };
94 
95 #endif // KCOMPLETIONMATCHES_H
QList< T > & operator=(const QList< T > &other)
This structure is returned by KCompletion::allWeightedMatches().
KSortableList is a QList which associates a key with each item in the list.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:52:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.