Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plugin-PropertyVis
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
242b124a
Commit
242b124a
authored
May 24, 2019
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence some cppcheck warnings
parent
16bc12e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
30 deletions
+30
-30
Models/MultiObjectPropertyModel.hh
Models/MultiObjectPropertyModel.hh
+14
-14
Models/SingleObjectPropertyModel.hh
Models/SingleObjectPropertyModel.hh
+16
-16
No files found.
Models/MultiObjectPropertyModel.hh
View file @
242b124a
...
...
@@ -56,42 +56,42 @@ public:
MultiObjectPropertyModel
(
const
QStringList
&
res
,
QObject
*
parent
=
0
);
virtual
~
MultiObjectPropertyModel
();
virtual
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
;
virtual
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
;
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
orientation
,
int
role
=
Qt
::
DisplayRole
)
const
;
virtual
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
override
;
virtual
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
orientation
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
/// Revisualizes visualized properties.
virtual
void
objectUpdated
();
virtual
void
objectUpdated
()
override
;
/// Visualizes the selected properties.
virtual
void
visualize
(
QModelIndexList
selectedIndices
,
QWidgetList
widgets
=
QWidgetList
());
virtual
void
visualize
(
QModelIndexList
selectedIndices
,
QWidgetList
widgets
=
QWidgetList
())
override
;
/// Removes the selected properties.
virtual
void
removeProperty
(
QModelIndexList
selectedIndices
);
virtual
void
removeProperty
(
QModelIndexList
selectedIndices
)
override
;
/// Duplicates the selected properties.
virtual
void
duplicateProperty
(
QModelIndexList
selectedIndices
);
virtual
void
duplicateProperty
(
QModelIndexList
selectedIndices
)
override
;
/// Searches for properties and creates PropertyVisualizers.
virtual
void
gatherProperties
();
virtual
void
gatherProperties
()
override
;
/// Clears the selected property visualization.
virtual
void
clear
(
QModelIndexList
selectedIndices
);
virtual
void
clear
(
QModelIndexList
selectedIndices
)
override
;
/// Hides the widget.
virtual
void
hideWidget
();
virtual
void
hideWidget
()
override
;
/// Returns the widget.
virtual
QWidget
*
getWidget
();
virtual
QWidget
*
getWidget
()
override
;
/// Updates the widget
virtual
void
updateWidget
(
const
QModelIndexList
&
selectedIndices
);
virtual
void
updateWidget
(
const
QModelIndexList
&
selectedIndices
)
override
;
/// Connects the PropertyVisualizer log signals with the log slot.
virtual
void
connectLogs
(
PropertyVisualizer
*
propViz
);
virtual
void
connectLogs
(
PropertyVisualizer
*
propViz
)
override
;
/// Returns the property info for the property with the given index.
virtual
PropertyInfo
getPropertyInfo
(
const
QModelIndex
index
)
const
;
virtual
PropertyInfo
getPropertyInfo
(
const
QModelIndex
index
)
const
override
;
private:
QWidget
*
createWidgetForType
(
const
TypeInfoWrapper
&
info
)
const
;
...
...
Models/SingleObjectPropertyModel.hh
View file @
242b124a
...
...
@@ -84,48 +84,48 @@ private slots:
void
slotLog
(
QString
_message
){
emit
log
(
_message
);}
public:
virtual
void
pickModeChanged
(
const
std
::
string
&
_mode
)
{}
virtual
void
mouseEvent
(
QMouseEvent
*
_event
)
{}
virtual
void
pickModeChanged
(
const
std
::
string
&
_mode
)
override
{}
virtual
void
mouseEvent
(
QMouseEvent
*
_event
)
override
{}
explicit
SingleObjectPropertyModel
(
QObject
*
parent
=
0
);
virtual
~
SingleObjectPropertyModel
();
virtual
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
;
virtual
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
;
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
orientation
,
int
role
=
Qt
::
DisplayRole
)
const
;
virtual
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
override
;
virtual
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
orientation
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
/// Revisualizes visualized properties.
virtual
void
objectUpdated
();
virtual
void
objectUpdated
()
override
;
/// Visualizes the selected properties.
virtual
void
visualize
(
QModelIndexList
selectedIndices
,
QWidgetList
widgets
=
QWidgetList
());
virtual
void
visualize
(
QModelIndexList
selectedIndices
,
QWidgetList
widgets
=
QWidgetList
())
override
;
/// Removes the selected properties.
virtual
void
removeProperty
(
QModelIndexList
selectedIndices
);
virtual
void
removeProperty
(
QModelIndexList
selectedIndices
)
override
;
/// Duplicates the selected properties.
virtual
void
duplicateProperty
(
QModelIndexList
selectedIndices
);
virtual
void
duplicateProperty
(
QModelIndexList
selectedIndices
)
override
;
/// Searches for properties and creates PropertyVisualizers.
virtual
void
gatherProperties
(){
/* implemented by subclass */
}
virtual
void
gatherProperties
()
override
{
/* implemented by subclass */
}
/// Clears the selected property visualization.
virtual
void
clear
(
QModelIndexList
selectedIndices
);
virtual
void
clear
(
QModelIndexList
selectedIndices
)
override
;
/// Hides the widget.
inline
void
hideWidget
()
{
widgets
->
hide
();
}
inline
void
hideWidget
()
override
{
widgets
->
hide
();
}
/// Returns the widget.
inline
QWidget
*
getWidget
()
{
return
widgets
;
}
inline
QWidget
*
getWidget
()
override
{
return
widgets
;
}
/// Updates the widget
virtual
void
updateWidget
(
const
QModelIndexList
&
selectedIndices
);
virtual
void
updateWidget
(
const
QModelIndexList
&
selectedIndices
)
override
;
/// Connects the PropertyVisualizer log signals with the log slot.
void
connectLogs
(
PropertyVisualizer
*
propViz
);
void
connectLogs
(
PropertyVisualizer
*
propViz
)
override
;
/// Returns the property info for the property with the given index.
virtual
PropertyInfo
getPropertyInfo
(
const
QModelIndex
index
)
const
;
virtual
PropertyInfo
getPropertyInfo
(
const
QModelIndex
index
)
const
override
;
/// Returns a qscript object that can be used to access visualisation parameters
virtual
QScriptValue
getScriptObject
(
const
QModelIndex
index
,
QScriptContext
*
ctx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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