Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
99157fdd
Commit
99157fdd
authored
Feb 21, 2022
by
Ingo Klöcker
Browse files
Do not keep layout as member
parent
154b00d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/view/tabwidget.cpp
View file @
99157fdd
...
...
@@ -445,7 +445,6 @@ private:
AbstractKeyListModel
*
flatModel
=
nullptr
;
AbstractKeyListModel
*
hierarchicalModel
=
nullptr
;
QTabWidget
tabWidget
;
QVBoxLayout
layout
;
QAction
*
newAction
=
nullptr
;
Actions
currentPageActions
;
Actions
otherPageActions
;
...
...
@@ -454,14 +453,14 @@ private:
TabWidget
::
Private
::
Private
(
TabWidget
*
qq
)
:
q
(
qq
),
tabWidget
(
q
),
layout
(
q
)
tabWidget
(
q
)
{
auto
layout
=
new
QVBoxLayout
{
q
};
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
KDAB_SET_OBJECT_NAME
(
tabWidget
);
KDAB_SET_OBJECT_NAME
(
layout
);
layout
.
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
.
addWidget
(
&
tabWidget
);
layout
->
addWidget
(
&
tabWidget
);
tabWidget
.
tabBar
()
->
hide
();
tabWidget
.
setMovable
(
true
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment