Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nheko Reborn
nheko
Commits
473b14ed
Commit
473b14ed
authored
4 years ago
by
Jedi18
Browse files
Options
Downloads
Patches
Plain Diff
added roomversion, roomid etc
parent
7401bd13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
resources/qml/RoomSettings.qml
+4
-5
4 additions, 5 deletions
resources/qml/RoomSettings.qml
src/ui/RoomSettings.cpp
+18
-0
18 additions, 0 deletions
src/ui/RoomSettings.cpp
src/ui/RoomSettings.h
+6
-0
6 additions, 0 deletions
src/ui/RoomSettings.h
with
28 additions
and
5 deletions
resources/qml/RoomSettings.qml
+
4
−
5
View file @
473b14ed
...
...
@@ -17,7 +17,6 @@ ApplicationWindow {
minimumHeight
:
420
palette
:
colors
color
:
colors
.
window
title
:
roomSettings
.
roomName
modality
:
Qt
.
WindowModal
flags
:
Qt
.
WindowStaysOnTopHint
...
...
@@ -46,13 +45,13 @@ ApplicationWindow {
Layout.alignment
:
Qt
.
AlignHCenter
MatrixText
{
text
:
"
room
n
ame
"
text
:
room
Settings
.
roomN
ame
font.pixelSize
:
24
Layout.alignment
:
Qt
.
AlignHCenter
}
MatrixText
{
text
:
"
1 member
"
text
:
"
%
1 member
(s)
"
.
arg
(
roomSettings
.
memberCount
)
Layout.alignment
:
Qt
.
AlignHCenter
}
}
...
...
@@ -185,7 +184,7 @@ ApplicationWindow {
}
MatrixText
{
text
:
"
asdajdhasjkdhaskjdhasjdks
"
text
:
roomSettings
.
roomId
font.pixelSize
:
12
}
}
...
...
@@ -200,7 +199,7 @@ ApplicationWindow {
}
MatrixText
{
text
:
"
6
"
text
:
roomSettings
.
roomVersion
font.pixelSize
:
12
}
}
...
...
This diff is collapsed.
Click to expand it.
src/ui/RoomSettings.cpp
+
18
−
0
View file @
473b14ed
...
...
@@ -72,6 +72,24 @@ RoomSettings::roomName() const
return
QString
(
info_
.
name
.
c_str
());
}
QString
RoomSettings
::
roomId
()
const
{
return
roomid_
;
}
QString
RoomSettings
::
roomVersion
()
const
{
return
QString
::
fromStdString
(
info_
.
version
);
}
int
RoomSettings
::
memberCount
()
const
{
return
info_
.
member_count
;
}
void
RoomSettings
::
retrieveRoomInfo
()
{
...
...
This diff is collapsed.
Click to expand it.
src/ui/RoomSettings.h
+
6
−
0
View file @
473b14ed
...
...
@@ -11,6 +11,9 @@ class RoomSettings : public QObject
{
Q_OBJECT
Q_PROPERTY
(
QString
roomName
READ
roomName
CONSTANT
)
Q_PROPERTY
(
QString
roomId
READ
roomId
CONSTANT
)
Q_PROPERTY
(
QString
roomVersion
READ
roomVersion
CONSTANT
)
Q_PROPERTY
(
int
memberCount
READ
memberCount
CONSTANT
)
Q_PROPERTY
(
int
notifications
READ
notifications
NOTIFY
notificationsChanged
)
Q_PROPERTY
(
int
accessJoinRules
READ
accessJoinRules
NOTIFY
accessJoinRulesChanged
)
Q_PROPERTY
(
bool
canChangeJoinRules
READ
canChangeJoinRules
CONSTANT
)
...
...
@@ -21,6 +24,9 @@ public:
RoomSettings
(
QString
roomid
,
QObject
*
parent
=
nullptr
);
QString
roomName
()
const
;
QString
roomId
()
const
;
QString
roomVersion
()
const
;
int
memberCount
()
const
;
int
notifications
();
int
accessJoinRules
();
bool
respondsToKeyRequests
();
...
...
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