File indexing completed on 2024-05-26 04:32:35
0001 /* 0002 SPDX-FileCopyrightText: 2006 Gábor Lehel <illissius@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KIS_DOCUMENT_SECTION_TOOLTIP_H 0008 #define KIS_DOCUMENT_SECTION_TOOLTIP_H 0009 0010 #include "KoItemToolTip.h" 0011 0012 class KisNodeModel; 0013 0014 /** 0015 * A default tooltip for a NodeView that shows a thumbnail 0016 * image and the list of properties associated with a node. 0017 */ 0018 class NodeToolTip: public KoItemToolTip 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 NodeToolTip(); 0024 ~NodeToolTip() override; 0025 0026 protected: 0027 QTextDocument *createDocument(const QModelIndex &index) override; 0028 0029 private: 0030 typedef KisNodeModel Model; 0031 }; 0032 0033 #endif