mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
a50c899ff3
Added FloatingHelpBrowser to the option window (help text not including). The help text can be specified for the ConfigPages in the method "helpText". git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6818 b45a01b8-16f6-495d-af2f-9b41ad6348cc
19 lines
421 B
C++
19 lines
421 B
C++
#include <retroshare-gui/mainpage.h>
|
|
#include "common/FloatingHelpBrowser.h"
|
|
|
|
MainPage::MainPage(QWidget *parent , Qt::WindowFlags flags ) : QWidget(parent, flags)
|
|
{
|
|
mHelpBrowser = NULL ;
|
|
}
|
|
|
|
void MainPage::registerHelpButton(QAbstractButton *button,const QString& help_html_txt)
|
|
{
|
|
if (mHelpBrowser == NULL)
|
|
{
|
|
mHelpBrowser = new FloatingHelpBrowser(this, button) ;
|
|
}
|
|
|
|
mHelpBrowser->setHelpText(help_html_txt) ;
|
|
}
|
|
|