mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
bcff888eb7
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7360 b45a01b8-16f6-495d-af2f-9b41ad6348cc
22 lines
464 B
C++
22 lines
464 B
C++
#include <retroshare-gui/mainpage.h>
|
|
#include "common/FloatingHelpBrowser.h"
|
|
|
|
MainPage::MainPage(QWidget *parent , Qt::WindowFlags flags ) : QWidget(parent, flags)
|
|
{
|
|
mHelpBrowser = NULL ;
|
|
mIcon = QIcon();
|
|
mName = "";
|
|
mHelp = "";
|
|
}
|
|
|
|
void MainPage::registerHelpButton(QAbstractButton *button,const QString& help_html_txt)
|
|
{
|
|
if (mHelpBrowser == NULL)
|
|
{
|
|
mHelpBrowser = new FloatingHelpBrowser(this, button) ;
|
|
}
|
|
|
|
mHelpBrowser->setHelpText(help_html_txt) ;
|
|
}
|
|
|