31 #include <QtGui/QIcon>
32 #include <QtGui/QMouseEvent>
37 setIcon(QIcon::fromTheme(
"help-browser"));
47 QToolButton::mousePressEvent(e);
49 if(e->button() == Qt::LeftButton)
A singleton that contains a pointer to a help manager implementation.
A specialized tool button that uses terralib help managers.
void mousePressEvent(QMouseEvent *e)
Overloaded function of QPushButton. Only LEFT button pressed will show the help.
void showHelp(const QString &htmRef, const QString &nSpace="")
Opens the help on the selected page.
static HelpManager & getInstance()
It returns a reference to the singleton instance.
void setPageReference(const QString &ref)
Sets the documentation page reference.
HelpToolButton(QWidget *parent=0)
Constructor.