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
a9a173e3
Commit
a9a173e3
authored
Mar 04, 2017
by
Carsten Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChannelListWidget can be resized now
parent
c117f586
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
10 deletions
+34
-10
ChannelListWidget.cpp
ChannelListWidget.cpp
+24
-5
ChannelListWidget.h
ChannelListWidget.h
+8
-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
+1
-1
overlaycontroller.h
overlaycontroller.h
+1
-3
No files found.
ChannelListWidget.cpp
View file @
a9a173e3
#include "ChannelListWidget.h"
#include <QMouseEvent>
#include <Windows.h>
#include <
QSizeGrip
>
#include <
qboxlayout.h
>
ChannelTree
::
ChannelTree
(
QWidget
*
parent
)
ChannelTree
::
ChannelTree
(
ChannelListWidget
*
widget
,
QWidget
*
parent
)
:
QTreeWidget
(
parent
)
{
m_parent
=
paren
t
;
m_parent
=
widge
t
;
setHeaderHidden
(
true
);
setExpandsOnDoubleClick
(
false
);
setStyleSheet
(
"padding:2px;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(100,100,100); background-color:rgba(50,50,50,150); color:rgb(255,255,255);"
);
setSizeAdjustPolicy
(
QAbstractScrollArea
::
AdjustToContents
);
}
ChannelTree
::~
ChannelTree
()
...
...
@@ -51,18 +53,35 @@ ChannelListWidget::ChannelListWidget(QWidget *parent)
{
setAttribute
(
Qt
::
WA_TranslucentBackground
);
setWindowFlags
(
Qt
::
WindowStaysOnTopHint
|
Qt
::
FramelessWindowHint
|
Qt
::
SplashScreen
);
move
(
320
,
200
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
this
);
layout
->
setMargin
(
0
);
layout
->
setSpacing
(
0
);
m_child
=
new
ChannelTree
(
this
);
layout
->
addWidget
(
m_child
);
m_grip
=
new
QSizeGrip
(
this
);
layout
->
addWidget
(
m_grip
,
0
,
Qt
::
AlignBottom
|
Qt
::
AlignRight
);
show
();
}
ChannelListWidget
::~
ChannelListWidget
()
{
m_child
->
deleteLater
();
delete
m_child
;
delete
m_grip
;
}
QTreeWidget
*
ChannelListWidget
::
getTree
()
{
return
(
QTreeWidget
*
)
m_child
;
}
void
ChannelListWidget
::
resizeEvent
(
QResizeEvent
*
event
)
{
QWidget
::
resizeEvent
(
event
);
m_child
->
resize
(
size
());
}
ChannelListWidget.h
View file @
a9a173e3
...
...
@@ -2,13 +2,16 @@
#include <QWidget>
#include <QPoint>
#include <QTreeWidget>
#include <QSizeGrip>
class
ChannelListWidget
;
class
ChannelTree
:
public
QTreeWidget
{
Q_OBJECT
public:
explicit
ChannelTree
(
QWidget
*
parent
);
explicit
ChannelTree
(
ChannelListWidget
*
widget
,
QWidget
*
parent
=
NULL
);
~
ChannelTree
();
protected:
...
...
@@ -35,6 +38,10 @@ public:
private:
ChannelTree
*
m_child
;
QSizeGrip
*
m_grip
;
protected:
virtual
void
resizeEvent
(
QResizeEvent
*
event
)
Q_DECL_OVERRIDE
;
public:
...
...
Release/x64/qtTsOverlay_x64.dll
View file @
a9a173e3
No preview for this file type
Release/x64/qtTsOverlay_x64.exp
View file @
a9a173e3
No preview for this file type
Release/x64/qtTsOverlay_x64.lib
View file @
a9a173e3
No preview for this file type
overlaycontroller.cpp
View file @
a9a173e3
...
...
@@ -126,7 +126,7 @@ void OverlayController::addChatLine(QString message)
deleteChatLine
(
m_msgLines
.
last
());
// hide after time
QTimer
::
singleShot
(
TIMEOUT
,
[
=
]
{
deleteChatLine
(
w
);});
QTimer
::
singleShot
(
TIMEOUT
,
[
=
]
()
{
deleteChatLine
(
w
);});
}
void
OverlayController
::
addSpeaker
(
QString
name
)
...
...
overlaycontroller.h
View file @
a9a173e3
...
...
@@ -36,10 +36,8 @@ private:
QVector
<
QWidget
*>
m_msgLines
;
ChannelListWidget
*
m_tree
;
private:
void
deleteChatLine
(
QWidget
*
line
);
private
slots
:
void
deleteChatLine
(
QWidget
*
line
);
void
treeItemClicked
(
QTreeWidgetItem
*
item
,
int
column
);
public:
...
...
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