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
c001d542
Commit
c001d542
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused fct
parent
583ec9ca
No related branches found
No related tags found
1 merge request
!2005
rm unfinished undo/redo engine (#757)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/View/SampleDesigner/SampleEditorCommands.cpp
+0
-14
0 additions, 14 deletions
GUI/View/SampleDesigner/SampleEditorCommands.cpp
GUI/View/SampleDesigner/SampleEditorCommands.h
+0
-1
0 additions, 1 deletion
GUI/View/SampleDesigner/SampleEditorCommands.h
with
0 additions
and
15 deletions
GUI/View/SampleDesigner/SampleEditorCommands.cpp
+
0
−
14
View file @
c001d542
...
@@ -43,20 +43,6 @@ int CommandChangeValue::id() const
...
@@ -43,20 +43,6 @@ int CommandChangeValue::id() const
return
COMMAND_ID_CHANGE_VALUE
;
return
COMMAND_ID_CHANGE_VALUE
;
}
}
bool
CommandChangeValue
::
mergeWith
(
const
QUndoCommand
*
command
)
{
if
(
command
->
id
()
!=
id
())
// make sure other is also a changeValue command
return
false
;
const
auto
*
const
other
=
dynamic_cast
<
const
CommandChangeValue
*>
(
command
);
if
(
m_path
!=
other
->
m_path
)
return
false
;
m_newValue
=
other
->
m_newValue
;
return
true
;
}
void
CommandChangeValue
::
redo
()
void
CommandChangeValue
::
redo
()
{
{
if
(
m_isFirst
)
if
(
m_isFirst
)
...
...
This diff is collapsed.
Click to expand it.
GUI/View/SampleDesigner/SampleEditorCommands.h
+
0
−
1
View file @
c001d542
...
@@ -27,7 +27,6 @@ public:
...
@@ -27,7 +27,6 @@ public:
double
newValue
,
const
QString
&
path
,
QUndoCommand
*
parent
=
nullptr
);
double
newValue
,
const
QString
&
path
,
QUndoCommand
*
parent
=
nullptr
);
int
id
()
const
override
;
int
id
()
const
override
;
bool
mergeWith
(
const
QUndoCommand
*
command
)
override
;
void
redo
()
override
;
void
redo
()
override
;
void
undo
()
override
;
void
undo
()
override
;
...
...
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