Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
23f8004a
Commit
23f8004a
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm fct
parent
feb33cb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!585
GUI: rm unused fcts
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/Model/Catalog/ItemFactory.cpp
+0
-5
0 additions, 5 deletions
GUI/Model/Catalog/ItemFactory.cpp
GUI/Model/Catalog/ItemFactory.h
+0
-3
0 additions, 3 deletions
GUI/Model/Catalog/ItemFactory.h
GUI/Model/Session/SessionModel.cpp
+1
-1
1 addition, 1 deletion
GUI/Model/Session/SessionModel.cpp
with
1 addition
and
9 deletions
GUI/Model/Catalog/ItemFactory.cpp
+
0
−
5
View file @
23f8004a
...
...
@@ -24,8 +24,3 @@ SessionItem* GUI::Model::ItemFactory::CreateItem(const QString& model_name, Sess
return
result
;
}
SessionItem
*
GUI
::
Model
::
ItemFactory
::
CreateEmptyItem
()
{
return
new
SessionItem
(
"ROOT_ITEM"
);
}
This diff is collapsed.
Click to expand it.
GUI/Model/Catalog/ItemFactory.h
+
0
−
3
View file @
23f8004a
...
...
@@ -28,9 +28,6 @@ SessionItem* CreateItem(const QString& model_name, SessionItem* parent = nullptr
template
<
typename
ItemType
>
ItemType
*
CreateItem
(
SessionItem
*
parent
=
nullptr
);
//! create empty SessionItem that serves as a root item
SessionItem
*
CreateEmptyItem
();
template
<
typename
ItemType
>
ItemType
*
CreateItem
(
SessionItem
*
parent
)
{
return
dynamic_cast
<
ItemType
*>
(
CreateItem
(
ItemType
::
M_TYPE
,
parent
));
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Session/SessionModel.cpp
+
1
−
1
View file @
23f8004a
...
...
@@ -54,7 +54,7 @@ SessionModel::SessionModel(QString model_tag, QObject* parent)
void
SessionModel
::
createRootItem
()
{
m_root_item
=
GUI
::
Model
::
ItemFactory
::
CreateEmptyItem
(
);
m_root_item
=
new
SessionItem
(
"ROOT_ITEM"
);
m_root_item
->
setModel
(
this
);
m_root_item
->
registerTag
(
"rootTag"
);
m_root_item
->
setDefaultTag
(
"rootTag"
);
...
...
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