Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
a09d7d43
Commit
a09d7d43
authored
13 years ago
by
Andreas Schenk
Browse files
Options
Downloads
Patches
Plain Diff
fixed parent of DropBox to avoid problems with hiding it
parent
be94a1db
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/src/panels/panel_bar.cc
+6
-1
6 additions, 1 deletion
modules/gui/src/panels/panel_bar.cc
modules/gui/src/panels/panel_bar.hh
+1
-0
1 addition, 0 deletions
modules/gui/src/panels/panel_bar.hh
with
7 additions
and
1 deletion
modules/gui/src/panels/panel_bar.cc
+
6
−
1
View file @
a09d7d43
...
...
@@ -41,7 +41,7 @@ PanelBar::PanelBar(QWidget* parent) :
view_mode_menu_
(
new
QMenu
(
"View Mode"
,
this
)),
current_view_mode_
(
NULL
),
widget_states_
(),
drop_box_
(
new
DropBox
(
this
)),
drop_box_
(
new
DropBox
),
// DropBox having no parent is done on purpose (otherwise it will not hide properly)
show_action_
(
new
QAction
(
this
))
{
connect
(
view_mode_menu_
,
SIGNAL
(
triggered
(
QAction
*
)),
this
,
SLOT
(
ChangeViewMode
(
QAction
*
)));
...
...
@@ -62,6 +62,11 @@ PanelBar::PanelBar(QWidget* parent) :
this
->
addAction
(
show_action_
);
}
PanelBar
::~
PanelBar
()
{
delete
drop_box_
;
// manually destroy drop_box_ widget, as it has no parent.
}
void
PanelBar
::
AddWidget
(
Widget
*
widget
,
bool
is_hidden
)
{
int
index
=
this
->
GetIndex
(
widget
);
...
...
This diff is collapsed.
Click to expand it.
modules/gui/src/panels/panel_bar.hh
+
1
−
0
View file @
a09d7d43
...
...
@@ -54,6 +54,7 @@ class DLLEXPORT_OST_GUI PanelBar : public Widget {
Q_OBJECT
public:
PanelBar
(
QWidget
*
parent
);
virtual
~
PanelBar
();
virtual
bool
Save
(
const
QString
&
prefix
);
virtual
bool
Restore
(
const
QString
&
prefix
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment