dbhub: Make it clearer what the private/public flag means

This commit is contained in:
Martin Kleusberg
2017-08-12 18:48:07 +02:00
parent 1c7cc24b15
commit b51eeccba1
3 changed files with 23 additions and 1 deletions
-1
View File
@@ -1,5 +1,4 @@
#include <QSslCertificate>
#include <QInputDialog>
#include <QFileInfo>
#include "RemoteDock.h"
+7
View File
@@ -30,6 +30,13 @@ RemotePushDialog::~RemotePushDialog()
void RemotePushDialog::checkInput()
{
// Update public/private check box text
if(ui->checkPublic->isChecked())
ui->checkPublic->setText(tr("Database will be public. Everyone has read access to it."));
else
ui->checkPublic->setText(tr("Database will be private. Only you have access to it."));
// Check input
bool valid = true;
if(ui->editName->text().trimmed().isEmpty())
+16
View File
@@ -156,6 +156,22 @@ p, li { white-space: pre-wrap; }
</hint>
</hints>
</connection>
<connection>
<sender>checkPublic</sender>
<signal>toggled(bool)</signal>
<receiver>RemotePushDialog</receiver>
<slot>checkInput()</slot>
<hints>
<hint type="sourcelabel">
<x>171</x>
<y>176</y>
</hint>
<hint type="destinationlabel">
<x>210</x>
<y>175</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>checkInput()</slot>