2013-07-18 15:32:12 -04:00
|
|
|
#include <retroshare-gui/mainpage.h>
|
2013-10-09 05:31:40 -04:00
|
|
|
#include "common/FloatingHelpBrowser.h"
|
2013-07-18 15:32:12 -04:00
|
|
|
|
2014-05-09 22:38:47 -04:00
|
|
|
MainPage::MainPage(QWidget *parent , Qt::WindowFlags flags ) : QWidget(parent, flags)
|
2013-07-18 15:32:12 -04:00
|
|
|
{
|
2013-10-09 05:31:40 -04:00
|
|
|
mHelpBrowser = NULL ;
|
2014-05-09 22:38:47 -04:00
|
|
|
mIcon = QIcon();
|
|
|
|
mName = "";
|
|
|
|
mHelp = "";
|
2013-07-19 08:18:58 -04:00
|
|
|
}
|
|
|
|
|
2013-08-29 18:02:04 -04:00
|
|
|
void MainPage::registerHelpButton(QAbstractButton *button,const QString& help_html_txt)
|
2013-07-18 15:32:12 -04:00
|
|
|
{
|
2013-10-09 05:31:40 -04:00
|
|
|
if (mHelpBrowser == NULL)
|
2013-07-18 15:32:12 -04:00
|
|
|
{
|
2013-10-09 05:31:40 -04:00
|
|
|
mHelpBrowser = new FloatingHelpBrowser(this, button) ;
|
2013-07-19 08:18:58 -04:00
|
|
|
}
|
2013-07-18 15:32:12 -04:00
|
|
|
|
2013-10-09 05:31:40 -04:00
|
|
|
mHelpBrowser->setHelpText(help_html_txt) ;
|
2013-07-19 08:18:58 -04:00
|
|
|
}
|
2013-07-18 15:32:12 -04:00
|
|
|
|