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++
636 B
Raw Blame
/*
  SPDX-FileCopyrightText: 2006 Gábor Lehel <[email protected]>

  SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef KIS_DOCUMENT_SECTION_TOOLTIP_H
#define KIS_DOCUMENT_SECTION_TOOLTIP_H

#include "KoItemToolTip.h"

class KisNodeModel;

/**
 * A default tooltip for a NodeView that shows a thumbnail
 * image and the list of properties associated with a node.
 */
class NodeToolTip: public KoItemToolTip
{
    Q_OBJECT

public:
    NodeToolTip(QWidget *widget);
    ~NodeToolTip() override;

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

private:
    typedef KisNodeModel Model;
};

#endif