From 47b6f47d824e5570f121200677ffc8f90bb12dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 5 May 2013 17:53:56 +0200 Subject: [PATCH] corregida frase en traducci?n al castellano corregida la validaci?n en el di?logo de renombrado de bibliotecas --- YACReaderLibrary/library_window.cpp | 7 +++---- YACReaderLibrary/rename_library_dialog.cpp | 11 ++++++++++- YACReaderLibrary/rename_library_dialog.h | 1 + YACReaderLibrary/yacreaderlibrary_es.ts | 4 ++-- release/languages/yacreaderlibrary_es.qm | Bin 24478 -> 24478 bytes 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 11ce68c9..3e2fc5e7 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -200,6 +200,7 @@ void LibraryWindow::doLayout() sVertical->addWidget(comicFlow); comics = new QWidget; QVBoxLayout * comicsLayout = new QVBoxLayout; + comicsLayout->setSpacing(0); comicsLayout->setContentsMargins(2,2,0,0); comicsLayout->addWidget(editInfoToolBar = new QToolBar(comics)); comicsLayout->addWidget(comicView); @@ -507,11 +508,9 @@ void LibraryWindow::enableLibraryActions() void LibraryWindow::createToolBars() { libraryToolBar = addToolBar(tr("Library")); -#ifndef Q_WS_MAC + libraryToolBar->setIconSize(QSize(32,32)); //TODO make icon size dynamic -#else - libraryToolBar->setIconSize(QSize(24,24)); -#endif + libraryToolBar->addAction(createLibraryAction); libraryToolBar->addAction(openLibraryAction); diff --git a/YACReaderLibrary/rename_library_dialog.cpp b/YACReaderLibrary/rename_library_dialog.cpp index 64c84f52..071d7ac5 100644 --- a/YACReaderLibrary/rename_library_dialog.cpp +++ b/YACReaderLibrary/rename_library_dialog.cpp @@ -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(); diff --git a/YACReaderLibrary/rename_library_dialog.h b/YACReaderLibrary/rename_library_dialog.h index aa5eaccf..abdd2e3e 100644 --- a/YACReaderLibrary/rename_library_dialog.h +++ b/YACReaderLibrary/rename_library_dialog.h @@ -21,6 +21,7 @@ public slots: void rename(); void close(); + void nameSetted(const QString & name); signals: void renameLibrary(QString newName); }; diff --git a/YACReaderLibrary/yacreaderlibrary_es.ts b/YACReaderLibrary/yacreaderlibrary_es.ts index a129b52d..1525d60f 100644 --- a/YACReaderLibrary/yacreaderlibrary_es.ts +++ b/YACReaderLibrary/yacreaderlibrary_es.ts @@ -948,7 +948,7 @@ Files won't be erased from disk. New Library Name : - Nombre de la nueva biblioteca : + Nuevo nombre de la biblioteca : @@ -976,7 +976,7 @@ Files won't be erased from disk. EASY SERVER CONNECTION - CONEXIÓN AL SERVIDOR FÁCILMENTE + CONEXIÓN AL SERVIDOR FÁCILMENTE diff --git a/release/languages/yacreaderlibrary_es.qm b/release/languages/yacreaderlibrary_es.qm index 070a798f028b23674a16b1de0389e71f90dc1a07..e8df369a3f278355e392edf0fe69fa607eea6837 100644 GIT binary patch delta 34 qcmbQYpK;!P#tqB7xJwyQ8Oj*)859`uCJXRMPkzTPwE3Rb0TBSw2Mfvo delta 22 ecmbQYpK;!P#tqB7CSPHfn7orqe)C