Krita Source Code Documentation
Loading...
Searching...
No Matches
KisIconToolTip.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 1999 Carsten Pfeiffer (pfeiffer@kde.org)
3 * SPDX-FileCopyrightText: 2002 Igor Jansen (rm@kde.org)
4 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org>
5 *
6 * SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KISICONTOOLTIP_H
10#define KISICONTOOLTIP_H
11
12#include "KoItemToolTip.h"
13
14#include "kritaresourcewidgets_export.h"
15
17
18class KRITARESOURCEWIDGETS_EXPORT KisIconToolTip: public KoItemToolTip
19{
20
21public:
23 ~KisIconToolTip() override;
24
25 void setFixedToolTipThumbnailSize(const QSize &size);
26 void setToolTipShouldRenderCheckers(bool value);
27
28protected:
29 QTextDocument *createDocument( const QModelIndex &index ) override;
30
31private:
33 QScopedPointer<KoCheckerBoardPainter> m_checkersPainter;
34};
35
36#endif // KISICONTOOLTIP_H
float value(const T *src, size_t ch)
QScopedPointer< KoCheckerBoardPainter > m_checkersPainter
QSize m_fixedToolTipThumbnailSize
virtual QTextDocument * createDocument(const QModelIndex &index)=0