KCompletion

kpixmapprovider.h
1 /*
2  This file is part of the KDE libraries
3 
4  SPDX-FileCopyrightText: 2000 Carsten Pfeiffer <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KPIXMAPPROVIDER_H
10 #define KPIXMAPPROVIDER_H
11 
12 #include <kcompletion_export.h>
13 #include <QPixmap>
14 
30 #if KCOMPLETION_ENABLE_DEPRECATED_SINCE(5, 66)
31 class KCOMPLETION_EXPORT KPixmapProvider
32 {
33 public:
34  virtual ~KPixmapProvider();
43  KCOMPLETION_DEPRECATED_VERSION(5, 66, "Use an std::function that takes a QString and returns a QIcon/QPixmap")
44  virtual QPixmap pixmapFor(const QString &text, int size = 0) = 0;
45 protected:
49  virtual void virtual_hook(int id, void *data);
50 };
51 #endif
52 
53 #endif // KPIXMAPPROVIDER_H
A tiny abstract class with just one method: pixmapFor()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 22:55:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.