Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Tobias Hunger
qt-creator
Commits
89642119
"README.md" did not exist on "cf11b696431d26920f54598c8f03f0a5cf822ffa"
Commit
89642119
authored
15 years ago
by
con
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused code path for signal-slot editor yes/no.
parent
5146d231
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/designer/editorwidget.cpp
+9
-18
9 additions, 18 deletions
src/plugins/designer/editorwidget.cpp
with
9 additions
and
18 deletions
src/plugins/designer/editorwidget.cpp
+
9
−
18
View file @
89642119
...
...
@@ -41,8 +41,6 @@ using namespace Designer::Constants;
enum
{
ActionEditorTab
,
SignalSlotEditorTab
};
enum
{
wantSignalSlotEditor
=
1
};
namespace
Designer
{
namespace
Internal
{
...
...
@@ -156,27 +154,21 @@ EditorWidget::EditorWidget(QWidget *formWindow) :
// Get shared sub windows from Form Editor
FormEditorW
*
few
=
FormEditorW
::
instance
();
QWidget
*
const
*
subs
=
few
->
designerSubWindows
();
// Create shared sub windows except SignalSlotEditor
qFill
(
m_designerSubWindows
,
m_designerSubWindows
+
DesignerSubWindowCount
,
static_cast
<
SharedSubWindow
*>
(
0
));
// Create shared sub windows
for
(
int
i
=
0
;
i
<
DesignerSubWindowCount
;
i
++
)
if
(
wantSignalSlotEditor
||
i
!=
SignalSlotEditorSubWindow
)
m_designerSubWindows
[
i
]
=
new
SharedSubWindow
(
subs
[
i
]);
m_designerSubWindows
[
i
]
=
new
SharedSubWindow
(
subs
[
i
]);
// Create splitter
addWidget
(
m_designerSubWindows
[
WidgetBoxSubWindow
]);
// center
m_centerVertSplitter
->
addWidget
(
formWindow
);
if
(
wantSignalSlotEditor
)
{
m_bottomTab
=
new
QTabWidget
;
m_bottomTab
->
setTabPosition
(
QTabWidget
::
South
);
m_bottomTab
->
setDocumentMode
(
true
);
m_bottomTab
->
addTab
(
m_designerSubWindows
[
ActionEditorSubWindow
],
tr
(
"Action editor"
));
m_bottomTab
->
addTab
(
m_designerSubWindows
[
SignalSlotEditorSubWindow
],
tr
(
"Signals and slots editor"
));
m_centerVertSplitter
->
addWidget
(
m_bottomTab
);
}
else
{
m_centerVertSplitter
->
addWidget
(
m_designerSubWindows
[
ActionEditorSubWindow
]);
}
m_bottomTab
=
new
QTabWidget
;
m_bottomTab
->
setTabPosition
(
QTabWidget
::
South
);
m_bottomTab
->
setDocumentMode
(
true
);
m_bottomTab
->
addTab
(
m_designerSubWindows
[
ActionEditorSubWindow
],
tr
(
"Action editor"
));
m_bottomTab
->
addTab
(
m_designerSubWindows
[
SignalSlotEditorSubWindow
],
tr
(
"Signals and slots editor"
));
m_centerVertSplitter
->
addWidget
(
m_bottomTab
);
addWidget
(
m_centerVertSplitter
);
...
...
@@ -215,8 +207,7 @@ void EditorWidget::setInitialSizes()
void
EditorWidget
::
activate
()
{
for
(
int
i
=
0
;
i
<
DesignerSubWindowCount
;
i
++
)
if
(
SharedSubWindow
*
sw
=
m_designerSubWindows
[
i
])
// Signal slot might be deactivated
sw
->
activate
();
m_designerSubWindows
[
i
]
->
activate
();
if
(
!
restore
(
*
editorWidgetState
()))
setInitialSizes
();
}
...
...
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