Plasma
Go to the documentation of this file.
20#ifndef PLASMA_TOOLTIPCONTENT_H
21#define PLASMA_TOOLTIPCONTENT_H
23#include <QtCore/QString>
25#include <QtCore/QVariant>
26#include <QtCore/QList>
27#include <QtGui/QPixmap>
45class ToolTipContentPrivate;
50 enum ResourceType { ImageResource = 0, HtmlResource, CssResource };
68 const QString &subText,
69 const QPixmap &image = QPixmap());
75 const QString &subText,
88 void setMainText(
const QString &text);
93 QString mainText()
const;
98 void setSubText(
const QString &text) ;
103 QString subText()
const;
108 void setImage(
const QPixmap &image);
113 void setImage(
const QIcon &icon);
118 QPixmap image()
const;
125 KDE_DEPRECATED
void setWindowToPreview(WId
id);
132 KDE_DEPRECATED WId windowToPreview()
const;
138 void setWindowsToPreview(
const QList<WId> &ids);
144 QList<WId> windowsToPreview()
const;
151 void setHighlightWindows(
bool highlight);
158 bool highlightWindows()
const;
162 void setAutohide(
bool autohide);
167 bool autohide()
const;
175 void setInstantPopup(
bool enabled);
183 bool isInstantPopup()
const;
189 void addResource(ResourceType type,
const QUrl &path,
const QVariant &resource);
194 void registerResources(QTextDocument *document)
const;
202 void setClickable(
bool clickable);
209 bool isClickable()
const;
224 ToolTipContentPrivate *
const d;
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.