Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qtTsOverlay
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
C-Fu
qtTsOverlay
Commits
d8cb025b
Commit
d8cb025b
authored
Mar 02, 2017
by
Carsten Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to sort
parent
0889b855
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
1 deletion
+6
-1
ChannelListWidget.cpp
ChannelListWidget.cpp
+2
-1
Release/x64/qtTsOverlay_x64.dll
Release/x64/qtTsOverlay_x64.dll
+0
-0
Release/x64/qtTsOverlay_x64.exp
Release/x64/qtTsOverlay_x64.exp
+0
-0
Release/x64/qtTsOverlay_x64.lib
Release/x64/qtTsOverlay_x64.lib
+0
-0
overlaycontroller.cpp
overlaycontroller.cpp
+4
-0
No files found.
ChannelListWidget.cpp
View file @
d8cb025b
...
...
@@ -22,7 +22,8 @@ ChannelListWidget::ChannelListWidget()
ChannelListWidget
::~
ChannelListWidget
()
{
//m_parent->deleteLater();
setParent
(
NULL
);
m_parent
->
deleteLater
();
}
void
ChannelListWidget
::
mousePressEvent
(
QMouseEvent
*
event
)
...
...
Release/x64/qtTsOverlay_x64.dll
View file @
d8cb025b
No preview for this file type
Release/x64/qtTsOverlay_x64.exp
View file @
d8cb025b
No preview for this file type
Release/x64/qtTsOverlay_x64.lib
View file @
d8cb025b
No preview for this file type
overlaycontroller.cpp
View file @
d8cb025b
...
...
@@ -16,6 +16,7 @@ struct channelInfo {
QString
name
;
uint64
parent
;
QTreeWidgetItem
*
entry
;
int
order
;
};
enum
nodeType
{
...
...
@@ -232,6 +233,7 @@ void OverlayController::displayChannelList()
tmp
.
id
=
channelIDList
[
i
];
tmp
.
name
=
channelID2Name
(
m_SCHID
,
channelIDList
[
i
]);
ts3
.
getChannelVariableAsInt
(
m_SCHID
,
tmp
.
id
,
CHANNEL_ORDER
,
&
tmp
.
order
);
ts3
.
getParentChannelOfChannel
(
m_SCHID
,
channelIDList
[
i
],
&
tmp
.
parent
);
tmp
.
entry
=
new
QTreeWidgetItem
;
...
...
@@ -246,6 +248,8 @@ void OverlayController::displayChannelList()
i
++
;
}
qSort
(
channelList
.
begin
(),
channelList
.
end
(),
[](
const
channelInfo
&
a
,
const
channelInfo
&
b
)
{
return
a
.
order
<
b
.
order
;
});
// build tree structure
for
(
auto
&
it
:
channelList
)
{
...
...
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