Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
af73ab36
Commit
af73ab36
authored
Jun 27, 2020
by
Shubham .
Browse files
Some minor changes
parent
0812079f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/panelplugins/documentationpanel/documentationpanelplugin.cpp
View file @
af73ab36
...
...
@@ -20,10 +20,9 @@
#include "documentationpanelplugin.h"
DocumentationPanelPlugin
::
DocumentationPanelPlugin
(
QObject
*
parent
,
QList
<
QVariant
>
args
)
:
Cantor
::
PanelPlugin
(
parent
),
m_widget
(
nullptr
)
DocumentationPanelPlugin
::
DocumentationPanelPlugin
(
QObject
*
parent
,
QList
<
QVariant
>
args
)
:
Cantor
::
PanelPlugin
(
parent
),
m_widget
(
nullptr
)
,
m_showAtStart
(
true
)
{
Q_UNUSED
(
args
);
m_showAtStart
=
true
;
}
DocumentationPanelPlugin
::~
DocumentationPanelPlugin
()
...
...
@@ -33,7 +32,7 @@ DocumentationPanelPlugin::~DocumentationPanelPlugin()
QWidget
*
DocumentationPanelPlugin
::
widget
()
{
if
(
m_widget
==
nullptr
)
if
(
!
m_widget
)
{
m_widget
=
new
DocumentationPanelWidget
(
parentWidget
());
}
...
...
src/panelplugins/documentationpanel/documentationpanelplugin.h
View file @
af73ab36
...
...
@@ -39,8 +39,8 @@ class DocumentationPanelPlugin : public Cantor::PanelPlugin
void
setShowOnStartup
(
bool
);
private:
bool
m_showAtStart
;
QPointer
<
DocumentationPanelWidget
>
m_widget
;
bool
m_showAtStart
;
};
#endif
/* _DOCUMENTATIONPANELPLUGIN_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