Plasma
Plasma::ToolTipContent Class Reference
#include <tooltipcontent.h>
Public Types | |
enum | ResourceType { ImageResource = 0, HtmlResource, CssResource } |
Public Member Functions | |
void | addResource (ResourceType type, const QUrl &path, const QVariant &resource) |
bool | autohide () const |
QPixmap | image () const |
bool | isEmpty () const |
QString | mainText () const |
ToolTipContent & | operator= (const ToolTipContent &other) |
void | registerResources (QTextDocument *document) const |
void | setAutohide (bool autohide) |
void | setImage (const QIcon &icon) |
void | setImage (const QPixmap &image) |
void | setMainText (const QString &text) |
void | setSubText (const QString &text) |
void | setWindowToPreview (WId id) |
QString | subText () const |
ToolTipContent (const QString &mainText, const QString &subText, const QIcon &icon) | |
ToolTipContent (const QString &mainText, const QString &subText, const QPixmap &image=QPixmap()) | |
ToolTipContent (const ToolTipContent &other) | |
ToolTipContent () | |
WId | windowToPreview () const |
~ToolTipContent () |
Detailed Description
Definition at line 45 of file tooltipcontent.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Plasma::ToolTipContent::ToolTipContent | ( | ) |
Plasma::ToolTipContent::~ToolTipContent | ( | ) |
Definition at line 72 of file tooltipcontent.cpp.
Plasma::ToolTipContent::ToolTipContent | ( | const ToolTipContent & | other | ) |
Member Function Documentation
void Plasma::ToolTipContent::addResource | ( | ResourceType | type, | |
const QUrl & | path, | |||
const QVariant & | resource | |||
) |
Adds a resource that can then be referenced from the text elements using rich text.
Definition at line 166 of file tooltipcontent.cpp.
bool Plasma::ToolTipContent::autohide | ( | ) | const |
Whether or not to autohide the tooltip, defaults to true.
Definition at line 161 of file tooltipcontent.cpp.
QPixmap Plasma::ToolTipContent::image | ( | ) | const |
bool Plasma::ToolTipContent::isEmpty | ( | ) | const |
QString Plasma::ToolTipContent::mainText | ( | ) | const |
ToolTipContent & Plasma::ToolTipContent::operator= | ( | const ToolTipContent & | other | ) |
Definition at line 77 of file tooltipcontent.cpp.
void Plasma::ToolTipContent::registerResources | ( | QTextDocument * | document | ) | const |
void Plasma::ToolTipContent::setAutohide | ( | bool | autohide | ) |
Sets whether or not to autohide the tooltip, defaults to true.
Definition at line 156 of file tooltipcontent.cpp.
void Plasma::ToolTipContent::setImage | ( | const QIcon & | icon | ) |
void Plasma::ToolTipContent::setImage | ( | const QPixmap & | image | ) |
void Plasma::ToolTipContent::setMainText | ( | const QString & | text | ) |
Sets the main text which containts important information, e.g.
the title
Definition at line 111 of file tooltipcontent.cpp.
void Plasma::ToolTipContent::setSubText | ( | const QString & | text | ) |
void Plasma::ToolTipContent::setWindowToPreview | ( | WId | id | ) |
QString Plasma::ToolTipContent::subText | ( | ) | const |
WId Plasma::ToolTipContent::windowToPreview | ( | ) | const |
The documentation for this class was generated from the following files: