43 #include "WhatsThisGenerator.hh" 51 plugin_name_((_plugin_name !=
"user") ? QString(
"Plugin-")+_plugin_name : _plugin_name)
67 const QString baseHelpURL = QString(
" <a href='qthelp://org.openflipper.")
68 + plugin_name_.toLower()
70 + plugin_name_+QString(
"/")
71 + _site+QString(
"#")+_ref + QString(
"'>");
73 const QString clickText = QString(QObject::tr(
"Click for more information"))+QObject::tr(
"</a>");
74 return (baseHelpURL + clickText);
QString generateLink(const QString &_ref="", const QString &_site="index.html") const
generates a clickable link to the documentation for whatsThis Messages
WhatsThisGenerator(const QString &_plugin_name)
void setWhatsThis(QAction *_action, const QString &_msg, const QString &_ref="", const QString &_site="index.html") const
sets a whatsThis Message plus link to the doc for the given QAction