Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
user-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90e416ed
authored
Jun 12, 2017
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added all info display from lib about VM
parent
36d3dd60
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mainwindow.cpp
+10
-0
mainwindow.ui
+0
-0
No files found.
mainwindow.cpp
View file @
90e416ed
...
@@ -73,12 +73,22 @@ void MainWindow::loadVMData(std::string id){
...
@@ -73,12 +73,22 @@ void MainWindow::loadVMData(std::string id){
ComputeData
data
=
myController
.
getDataByID
(
id
.
c_str
());
ComputeData
data
=
myController
.
getDataByID
(
id
.
c_str
());
currentSelectedVM
=
data
;
currentSelectedVM
=
data
;
ui
->
lVMName
->
setText
(
data
.
name
.
c_str
());
ui
->
lVMName
->
setText
(
data
.
name
.
c_str
());
//--- for displaying initial hint
QFont
font
=
ui
->
lVMName
->
font
();
font
.
setPointSize
(
20
);
font
.
setBold
(
false
);
ui
->
lVMName
->
setFont
(
font
);
//---
ui
->
lArch
->
setText
(
data
.
architecture
.
c_str
());
ui
->
lCPU
->
setText
(
std
::
to_string
(
data
.
cpu
).
c_str
());
ui
->
lCPU
->
setText
(
std
::
to_string
(
data
.
cpu
).
c_str
());
ui
->
lMemory
->
setText
(
std
::
to_string
(
data
.
memory
).
c_str
());
ui
->
lMemory
->
setText
(
std
::
to_string
(
data
.
memory
).
c_str
());
ui
->
lCores
->
setText
(
std
::
to_string
(
data
.
cores
).
c_str
());
ui
->
lCores
->
setText
(
std
::
to_string
(
data
.
cores
).
c_str
());
ui
->
lHostname
->
setText
((
data
.
hostname
+
":"
+
std
::
to_string
(
data
.
port
)).
c_str
());
ui
->
lHostname
->
setText
((
data
.
hostname
+
":"
+
std
::
to_string
(
data
.
port
)).
c_str
());
ui
->
lProtocol
->
setText
(
data
.
protocol
.
c_str
());
ui
->
lUsernameVM
->
setText
(
data
.
username
.
c_str
());
ui
->
lUsernameVM
->
setText
(
data
.
username
.
c_str
());
ui
->
lPasswordVM
->
setText
(
data
.
password
.
c_str
());
ui
->
lPasswordVM
->
setText
(
data
.
password
.
c_str
());
ui
->
lSuspended
->
setText
(
data
.
leaseSuspend
.
c_str
());
ui
->
lRemoved
->
setText
(
data
.
leaseRemoved
.
c_str
());
}
}
...
...
mainwindow.ui
View file @
90e416ed
This diff is collapsed.
Click to expand it.
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