-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add service list to gui #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any service logic, I just see the button being created but not the call to minikube.
Good catch I totally forgot to commit those files, now it should be good |
src/serviceView.cpp
Outdated
void ServiceView::displayTable(QString svcCmdOutput) | ||
{ | ||
|
||
m_dialog = new QDialog(m_parent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m_dialog = new QDialog(m_parent); | |
QDialog dialog = new QDialog(m_parent); |
This doesn't need to be a class wide variable as the variable isn't used outside this function.
ready for another look |
dockerEnvButton->setEnabled(isRunning || isPaused); | ||
sshButton->setEnabled(isRunning || isPaused); | ||
mountButton->setEnabled(isRunning || isPaused); | ||
tunnelButton->setEnabled(isRunning || isPaused); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't have to be done in this PR, but we should make a variable called isRunningOrPaused
instead of repeatedly doing isRunning || isPaused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
QLabel *tableLbl = new QLabel(); | ||
tableLbl->setOpenExternalLinks(true); | ||
tableLbl->setWordWrap(true); | ||
tableLbl->setText(svcCmdOutput); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required, but going forward you can pass a QString
to the QLabel
constructor and it will pass the QString
to setText
in the constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know thanks
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
can be merged after #24
the gui will need to use json instead of table when this is done kubernetes/minikube#15827