Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
924 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 1999 Carsten Pfeiffer ([email protected])
 * SPDX-FileCopyrightText: 2002 Igor Jansen ([email protected])
 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef KISICONTOOLTIP_H
#define KISICONTOOLTIP_H

#include "KoItemToolTip.h"

#include "kritaresourcewidgets_export.h"

class KoCheckerBoardPainter;

class KRITARESOURCEWIDGETS_EXPORT KisIconToolTip: public KoItemToolTip
{

public:
    KisIconToolTip(QWidget *parent);
    ~KisIconToolTip() override;

    void setFixedToolTipThumbnailSize(const QSize &size);
    void setToolTipShouldRenderCheckers(bool value);

protected:
    QTextDocument *createDocument( const QModelIndex &index ) override;

private:
    QSize m_fixedToolTipThumbnailSize;
    QScopedPointer<KoCheckerBoardPainter> m_checkersPainter;
};

#endif // KISICONTOOLTIP_H