Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_TOOLTIPCONTENT_H
21 #define PLASMA_TOOLTIPCONTENT_H
23 #include <QtCore/QString>
24 #include <QtCore/QUrl>
25 #include <QtCore/QVariant>
26 #include <QtCore/QList>
27 #include <QtGui/QPixmap>
28 #include <QtGui/QIcon>
45 class 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);
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;
void highlightWindows(WId controller, const QList< WId > &ids)
Highlight the selected windows, making all the others translucent.
Namespace for everything in libplasma.
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Thu Feb 18 2016 12:21:25 by
doxygen 1.8.10 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.