Commit d91a6b75 authored by Matthias Möller's avatar Matthias Möller

doc

clean up (nogui for help browser, header)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13969 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1c048b8e
......@@ -66,6 +66,10 @@
#include <OpenFlipper/widgets/glWidget/CursorPainter.hh>
// -------------------- Qt event Includes
#include <QEvent>
#include <QWhatsThisClickedEvent>
#define WIDGET_HEIGHT 800
#define WIDGET_WIDTH 800
......@@ -187,6 +191,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
pick_mode_name_(""),
pick_mode_idx_(-1)
{
setupStatusBar();
defaultIconSize_ = iconSize();
......@@ -612,12 +617,9 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
// Help Browser start up
// ======================================================================
if (!OpenFlipper::Options::nogui())
{
helpWidget_ = new HelpWidget(this);
connect(this, SIGNAL(changeHelpSite(QUrl)), helpWidget_, SLOT(activateLink(QUrl)));
helpWidget_->hide();
}
helpWidget_ = new HelpWidget(this);
connect(this, SIGNAL(changeHelpSite(QUrl)), helpWidget_, SLOT(activateLink(QUrl)));
helpWidget_->hide();
}
......@@ -1040,7 +1042,7 @@ void CoreWidget::setForceNativeCursor ( bool _state )
bool CoreWidget::event( QEvent *_event )
{
//WhatsThisClicked for hyperlinks in 'whats this' Message Boxes
//WhatsThisClicked event for hyperlinks in 'whats this' boxes
if( _event->type() == QEvent::WhatsThisClicked )
{
QWhatsThisClickedEvent *wtcEvent = static_cast<QWhatsThisClickedEvent*>(_event);
......@@ -1049,7 +1051,7 @@ bool CoreWidget::event( QEvent *_event )
return true;
}
return QWidget::event(_event);
return QMainWindow::event(_event);
}
//=============================================================================
......
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