Commit 02e77368 authored by Matthias Möller's avatar Matthias Möller

helpbrowser get a valid file while starting openflipper

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14175 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ecfe897a
...@@ -617,7 +617,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -617,7 +617,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
// Help Browser start up // Help Browser start up
// ====================================================================== // ======================================================================
helpWidget_ = new HelpWidget(this); helpWidget_ = new HelpWidget(this,homePage_);
connect(this, SIGNAL(changeHelpSite(QUrl)), helpWidget_, SLOT(activateLink(QUrl))); connect(this, SIGNAL(changeHelpSite(QUrl)), helpWidget_, SLOT(activateLink(QUrl)));
helpWidget_->hide(); helpWidget_->hide();
......
...@@ -1034,9 +1034,12 @@ public: ...@@ -1034,9 +1034,12 @@ public:
* @{ */ * @{ */
//=========================================================================== //===========================================================================
private:
static const QString homePage_;
public slots: public slots:
/// Display the help Browser /// Display the help Browser
void showHelpBrowser(const QString &page = "qthelp://org.openflipper.user/user/index.html"); void showHelpBrowser(const QString &page = homePage_);
signals: signals:
void changeHelpSite(QUrl); void changeHelpSite(QUrl);
......
...@@ -55,9 +55,11 @@ ...@@ -55,9 +55,11 @@
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
const QString CoreWidget::homePage_ = "qthelp://org.openflipper.user/user/index.html";
//== IMPLEMENTATION ========================================================== //== IMPLEMENTATION ==========================================================
void CoreWidget::showHelpBrowser(const QString &page /*= "qthelp://org.openflipper.dev/doc/index.html"*/) { void CoreWidget::showHelpBrowser(const QString &page /*= homePage_*/) {
if ( OpenFlipper::Options::nogui() ) if ( OpenFlipper::Options::nogui() )
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment