kstars
Go to the documentation of this file.
19 #include <ktoolinvocation.h>
20 #include <QtGui/QMessageBox>
27 connect(
this, SIGNAL(linkActivated(QString)), SLOT(slotShowDefinition(QString)));
32 connect(
this, SIGNAL(linkActivated(QString)), SLOT(slotShowDefinition(QString)));
40 void KSHelpLabel::updateText() {
41 QLabel::setText(
"<a href=\"ai-" + m_anchor +
"\">" +
text() +
"</a>");
44 void KSHelpLabel::slotShowDefinition(
const QString & term) {
45 KToolInvocation::invokeHelp(term);
50 QLabel::setText(
"<a href=\"ai-" + m_anchor +
"\">" + m_cleanText +
"</a>");
KSHelpLabel(QWidget *parent=0)
Constructor.
void setAnchor(const QString &anchor)
void setText(const QString &text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.