mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
corregida frase en traducci?n al castellano
corregida la validaci?n en el di?logo de renombrado de bibliotecas
This commit is contained in:
@ -17,9 +17,10 @@ void RenameLibraryDialog::setupUI()
|
||||
newNameLabel = new QLabel(tr("New Library Name : "));
|
||||
newNameEdit = new QLineEdit;
|
||||
newNameLabel->setBuddy(newNameEdit);
|
||||
connect(newNameEdit,SIGNAL(textChanged(QString)),this,SLOT(nameSetted(QString)));
|
||||
|
||||
accept = new QPushButton(tr("Rename"));
|
||||
//accept->setDisabled(true);
|
||||
accept->setDisabled(true);
|
||||
connect(accept,SIGNAL(clicked()),this,SLOT(rename()));
|
||||
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
@ -60,6 +61,14 @@ void RenameLibraryDialog::rename()
|
||||
close();
|
||||
}
|
||||
|
||||
void RenameLibraryDialog::nameSetted(const QString & text)
|
||||
{
|
||||
if(!text.isEmpty())
|
||||
accept->setEnabled(true);
|
||||
else
|
||||
accept->setEnabled(false);
|
||||
}
|
||||
|
||||
void RenameLibraryDialog::close()
|
||||
{
|
||||
newNameEdit->clear();
|
||||
|
Reference in New Issue
Block a user