forked from qt-creator/qt-creator
Help: Option to open links in window
Task-number: QTCREATORBUG-16842 Change-Id: I420f48a00c56ebc89bade7e91ceb8ec391316e36 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -86,6 +86,19 @@ HelpViewer::HelpViewer(QWidget *parent)
|
||||
{
|
||||
}
|
||||
|
||||
void HelpViewer::setActionVisible(Action action, bool visible)
|
||||
{
|
||||
if (visible)
|
||||
m_visibleActions |= Actions(action);
|
||||
else
|
||||
m_visibleActions &= ~Actions(action);
|
||||
}
|
||||
|
||||
bool HelpViewer::isActionVisible(HelpViewer::Action action)
|
||||
{
|
||||
return (m_visibleActions & Actions(action)) != 0;
|
||||
}
|
||||
|
||||
bool HelpViewer::isLocalUrl(const QUrl &url)
|
||||
{
|
||||
return url.scheme() == "about" // "No documenation available"
|
||||
|
||||
Reference in New Issue
Block a user