Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenFlipper
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
OpenFlipper-Free
OpenFlipper
Commits
06a00097
Commit
06a00097
authored
6 years ago
by
Jan Möbius
Browse files
Options
Downloads
Patches
Plain Diff
Removed WhatsThisGenerator from Baseinterface
parent
45a9891c
Branches
Branches containing commit
No related tags found
1 merge request
!122
Enable automoc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
BasePlugin/BaseInterface.hh
+0
-1
0 additions, 1 deletion
BasePlugin/BaseInterface.hh
common/BaseObject.cc
+32
-1
32 additions, 1 deletion
common/BaseObject.cc
common/BaseObject.hh
+7
-21
7 additions, 21 deletions
common/BaseObject.hh
with
39 additions
and
23 deletions
BasePlugin/BaseInterface.hh
+
0
−
1
View file @
06a00097
...
...
@@ -42,7 +42,6 @@
#pragma once
#include
<OpenFlipper/common/Types.hh>
#include
"WhatsThisGenerator.hh"
/** \file BaseInterface.hh
...
...
This diff is collapsed.
Click to expand it.
common/BaseObject.cc
+
32
−
1
View file @
06a00097
...
...
@@ -821,7 +821,38 @@ deleteData() {
}
/** Returns a flat, human readable representation of all comments. */
QString
&
BaseObject
::
getCommentByKey
(
const
QString
&
key
)
{
return
commentsByKey_
[
key
];
}
const
QString
BaseObject
::
getCommentByKey
(
const
QString
&
key
)
const
{
return
commentsByKey_
.
value
(
key
);
}
bool
BaseObject
::
hasCommentForKey
(
const
QString
&
key
)
const
{
return
commentsByKey_
.
contains
(
key
);
}
bool
BaseObject
::
hasComments
()
const
{
return
!
commentsByKey_
.
empty
();
}
void
BaseObject
::
clearComment
(
const
QString
&
key
)
{
commentsByKey_
.
remove
(
key
);
}
void
BaseObject
::
clearAllComments
()
{
commentsByKey_
.
clear
();
}
const
QMap
<
QString
,
QString
>&
BaseObject
::
getAllComments
()
const
{
return
commentsByKey_
;
}
const
QString
BaseObject
::
getAllCommentsFlat
()
const
{
QStringList
result
;
...
...
This diff is collapsed.
Click to expand it.
common/BaseObject.hh
+
7
−
21
View file @
06a00097
...
...
@@ -541,41 +541,27 @@ class DLLEXPORT BaseObject : public QObject {
* If no comment with the specified exists, an empty
* one is created.
*/
QString
&
getCommentByKey
(
const
QString
&
key
)
{
return
commentsByKey_
[
key
];
}
QString
&
getCommentByKey
(
const
QString
&
key
);
/** \brief Get comment for the specified key.
*
* If no comment with the specified exists, an empty comment
* is returned (but not inserted into the map).
*/
const
QString
getCommentByKey
(
const
QString
&
key
)
const
{
return
commentsByKey_
.
value
(
key
);
}
const
QString
getCommentByKey
(
const
QString
&
key
)
const
;
/** Returns true if a comment for the specified key exists, false otherwise. */
bool
hasCommentForKey
(
const
QString
&
key
)
const
{
return
commentsByKey_
.
contains
(
key
);
}
bool
hasCommentForKey
(
const
QString
&
key
)
const
;
/** Indicates whether any comment has been supplied for this object. */
bool
hasComments
()
const
{
return
!
commentsByKey_
.
empty
();
}
bool
hasComments
()
const
;
void
clearComment
(
const
QString
&
key
)
{
commentsByKey_
.
remove
(
key
);
}
void
clearComment
(
const
QString
&
key
);
void
clearAllComments
()
{
commentsByKey_
.
clear
();
}
void
clearAllComments
();
/** Returns a reference to all comments. */
const
QMap
<
QString
,
QString
>
&
getAllComments
()
const
{
return
commentsByKey_
;
}
const
QMap
<
QString
,
QString
>
&
getAllComments
()
const
;
/** Returns a flat, human readable representation of all comments. */
const
QString
getAllCommentsFlat
()
const
;
...
...
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