Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
461cca7d
Commit
461cca7d
authored
Mar 17, 2013
by
Sebastian Eichelbaum
Browse files
[CHANGE] removed Qt warning about missing showHelp() slot.
parent
b2723071
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
src/qt4gui/guiElements/WQtDockWidget.cpp
src/qt4gui/guiElements/WQtDockWidget.cpp
+14
-0
src/qt4gui/guiElements/WQtDockWidget.h
src/qt4gui/guiElements/WQtDockWidget.h
+26
-0
No files found.
src/qt4gui/guiElements/WQtDockWidget.cpp
View file @
461cca7d
...
...
@@ -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
}
src/qt4gui/guiElements/WQtDockWidget.h
View file @
461cca7d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment