Commit 461cca7d authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] removed Qt warning about missing showHelp() slot.

parent b2723071
......@@ -89,3 +89,17 @@ void WQtDockWidget::removeTitleWidget( QWidget* widget )
m_titleBar->removeTitleWidget( widget );
}
void WQtDockWidget::setHelpContext( const QString& id )
{
m_helpContextId = id;
}
const QString& WQtDockWidget::getHelpContext()
{
return m_helpContextId;
}
void WQtDockWidget::showHelp()
{
// do something here
}
......@@ -110,12 +110,38 @@ public:
*/
virtual void removeTitleWidget( QWidget* widget );
/**
* Set a string which identifies help material for this dock. If you specify a help ID which then leads to multiple help documents, a help
* menu is shown instead of a simple help button. If no help context id was specified, the help button is not show.
*
* \param id the help context id for this dock
*/
virtual void setHelpContext( const QString& id );
/**
* Return the help context id.
*
* \return the id.
*/
virtual const QString& getHelpContext();
public slots:
/**
* Show help.
*/
void showHelp();
protected:
private:
/**
* Title widget.
*/
WQtDockTitleWidget* m_titleBar;
/**
* The ID for the help context associated with this dock.
*/
QString m_helpContextId;
};
#endif // WQTDOCKWIDGET_H
......
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