diff --git a/YACReaderLibrary/export_library_dialog.cpp b/YACReaderLibrary/export_library_dialog.cpp index ec77ddfb..0d20fd2f 100644 --- a/YACReaderLibrary/export_library_dialog.cpp +++ b/YACReaderLibrary/export_library_dialog.cpp @@ -58,8 +58,6 @@ ExportLibraryDialog::ExportLibraryDialog(QWidget * parent) setModal(true); setWindowTitle(tr("Create covers package")); - t.setInterval(500); - connect(&t,SIGNAL(timeout()),this,SLOT(updateProgress())); } void ExportLibraryDialog::exportLibrary() @@ -70,7 +68,6 @@ void ExportLibraryDialog::exportLibrary() progressBar->show(); accept->setEnabled(false); emit exportPath(QDir::cleanPath(path->text())); - t.start(); } else QMessageBox::critical(NULL,tr("Problem found while writing"),tr("The selected path for the output file does not exist or is not a valid path. Be sure that you have write access to this folder")); @@ -92,7 +89,6 @@ void ExportLibraryDialog::close() path->clear(); progressBar->hide(); accept->setEnabled(false); - t.stop(); progressCount=0; QDialog::close(); } diff --git a/YACReaderLibrary/export_library_dialog.h b/YACReaderLibrary/export_library_dialog.h index cfc73b1b..86bd71b0 100644 --- a/YACReaderLibrary/export_library_dialog.h +++ b/YACReaderLibrary/export_library_dialog.h @@ -28,9 +28,8 @@ private: QPushButton * accept; QPushButton * cancel; void run(); - QTimer t; signals: void exportPath(QString); }; -#endif \ No newline at end of file +#endif diff --git a/YACReaderLibrary/import_comics_info_dialog.cpp b/YACReaderLibrary/import_comics_info_dialog.cpp index 4e20f105..e82ec33d 100644 --- a/YACReaderLibrary/import_comics_info_dialog.cpp +++ b/YACReaderLibrary/import_comics_info_dialog.cpp @@ -41,7 +41,7 @@ ImportComicsInfoDialog::ImportComicsInfoDialog(QWidget *parent) progressBar->setMaximum(0); progressBar->setTextVisible(false); progressBar->hide(); - connect(accept,SIGNAL(progressBar()),this,SLOT(show())); + connect(accept,SIGNAL(clicked()),progressBar,SLOT(show())); QHBoxLayout *bottomLayout = new QHBoxLayout; bottomLayout->addStretch(); diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 930c9307..b0a3b8aa 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -649,7 +649,7 @@ void LibraryWindow::createConnections() connect(libraryCreator,SIGNAL(comicAdded(QString,QString)),importWidget,SLOT(newComic(QString,QString))); //libraryCreator errors connect(libraryCreator,SIGNAL(failedCreatingDB(QString)),this,SLOT(manageCreatingError(QString))); - connect(libraryCreator,SIGNAL(failedUpdatingDB(QString)),this,SLOT(manageUpdatingError(QString))); + connect(libraryCreator,SIGNAL(failedUpdatingDB(QString)),this,SLOT(manageUpdatingError(QString))); //TODO: implement failedUpdatingDB //new import widget connect(importWidget,SIGNAL(stop()),this,SLOT(stopLibraryCreator())); @@ -679,10 +679,10 @@ void LibraryWindow::createConnections() connect(renameLibraryDialog,SIGNAL(renameLibrary(QString)),this,SLOT(rename(QString))); //navigations between view modes (tree,list and flow) - connect(foldersView, SIGNAL(pressed(QModelIndex)), this, SLOT(loadCovers(QModelIndex))); - connect(foldersView, SIGNAL(pressed(QModelIndex)), this, SLOT(updateHistory(QModelIndex))); + connect(foldersView, SIGNAL(clicked(QModelIndex)), this, SLOT(loadCovers(QModelIndex))); + connect(foldersView, SIGNAL(clicked(QModelIndex)), this, SLOT(updateHistory(QModelIndex))); - connect(comicView, SIGNAL(pressed(QModelIndex)), this, SLOT(centerComicFlow(QModelIndex))); + connect(comicView, SIGNAL(clicked(QModelIndex)), this, SLOT(centerComicFlow(QModelIndex))); connect(comicFlow, SIGNAL(centerIndexChanged(int)), this, SLOT(updateComicView(int))); connect(comicView, SIGNAL(comicRated(int,QModelIndex)), dmCV, SLOT(updateRating(int,QModelIndex))); diff --git a/YACReaderLibrary/server_config_dialog.cpp b/YACReaderLibrary/server_config_dialog.cpp index 35734d47..aa77596e 100644 --- a/YACReaderLibrary/server_config_dialog.cpp +++ b/YACReaderLibrary/server_config_dialog.cpp @@ -281,7 +281,7 @@ void ServerConfigDialog::generateQR(const QString & serverAddress) QStringList attributes; attributes << "-o" << "-" /*QCoreApplication::applicationDirPath()+"/utils/tmp.png"*/ << "-s" << "8" << "-l" << "H" << "-m" << "0" << serverAddress; connect(qrGenerator,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(updateImage(void))); - connect(qrGenerator,SIGNAL(error(QProcess::ProcessError)),this,SLOT(openingError(QProcess::ProcessError))); + connect(qrGenerator,SIGNAL(error(QProcess::ProcessError)),this,SLOT(openingError(QProcess::ProcessError))); //TODO: implement openingError qrGenerator->start(QCoreApplication::applicationDirPath()+"/utils/qrencode",attributes); } diff --git a/YACReaderLibrary/yacreader_local_server.cpp b/YACReaderLibrary/yacreader_local_server.cpp index 5e392312..cff21ee2 100644 --- a/YACReaderLibrary/yacreader_local_server.cpp +++ b/YACReaderLibrary/yacreader_local_server.cpp @@ -39,6 +39,7 @@ void YACReaderLocalServer::sendResponse() { QLocalSocket *clientConnection = localServer->nextPendingConnection(); //connect(clientConnection, SIGNAL(disconnected()),clientConnection, SLOT(deleteLater())); + clientConnection->setParent(0); YACReaderClientConnectionWorker * worker = new YACReaderClientConnectionWorker(clientConnection); if(worker != 0) diff --git a/custom_widgets/yacreader_gl_flow_config_widget.cpp b/custom_widgets/yacreader_gl_flow_config_widget.cpp index aa283ffc..35e09a2c 100644 --- a/custom_widgets/yacreader_gl_flow_config_widget.cpp +++ b/custom_widgets/yacreader_gl_flow_config_widget.cpp @@ -19,19 +19,19 @@ YACReaderGLFlowConfigWidget::YACReaderGLFlowConfigWidget(QWidget * parent /* = 0 QGroupBox *groupBox = new QGroupBox(tr("Presets:")); radioClassic = new QRadioButton(tr("Classic look")); - connect(radioClassic,SIGNAL(toggled(bool)),this,SLOT(setClassicConfig())); + //connect(radioClassic,SIGNAL(toggled(bool)),this,SLOT(setClassicConfig())); radioStripe = new QRadioButton(tr("Stripe look")); - connect(radioStripe,SIGNAL(toggled(bool)),this,SLOT(setStripeConfig())); + //connect(radioStripe,SIGNAL(toggled(bool)),this,SLOT(setStripeConfig())); radioOver = new QRadioButton(tr("Overlapped Stripe look")); - connect(radioOver,SIGNAL(toggled(bool)),this,SLOT(setOverlappedStripeConfig())); + //connect(radioOver,SIGNAL(toggled(bool)),this,SLOT(setOverlappedStripeConfig())); radionModern = new QRadioButton(tr("Modern look")); - connect(radionModern,SIGNAL(toggled(bool)),this,SLOT(setModernConfig())); + //connect(radionModern,SIGNAL(toggled(bool)),this,SLOT(setModernConfig())); radioDown = new QRadioButton(tr("Roulette look")); - connect(radioDown,SIGNAL(toggled(bool)),this,SLOT(setRouletteConfig())); + //connect(radioDown,SIGNAL(toggled(bool)),this,SLOT(setRouletteConfig())); QVBoxLayout *vbox = new QVBoxLayout; QHBoxLayout * opt1 = new QHBoxLayout; @@ -237,4 +237,4 @@ void YACReaderGLFlowConfigWidget::setValues(Preset preset) fadeOutDist->setValue(preset.animationFadeOutDist); lightStrength->setValue(preset.viewRotateLightStrenght); maxAngle->setValue(preset.viewAngle); -} \ No newline at end of file +} diff --git a/custom_widgets/yacreader_library_list_widget.cpp b/custom_widgets/yacreader_library_list_widget.cpp index 727b418a..6e5cc676 100644 --- a/custom_widgets/yacreader_library_list_widget.cpp +++ b/custom_widgets/yacreader_library_list_widget.cpp @@ -30,7 +30,7 @@ void YACReaderLibraryListWidget::addItem(QString name, QString path) librariesList.insert(itr,library); //connect(library,SIGNAL(selected(QString,QString)),this,SIGNAL(librarySelected(QString,QString))); - connect(library,SIGNAL(selected(QString,QString)),this,SLOT(updateLibraries(QString,QString))); + //connect(library,SIGNAL(selected(QString,QString)),this,SLOT(updateLibraries(QString,QString))); mainLayout->insertWidget(i,library); } @@ -125,4 +125,4 @@ void YACReaderLibraryListWidget::renameCurrentLibrary(QString newName) mainLayout->insertWidget(i,itemWidget); currentLibraryIndex = i; -} \ No newline at end of file +} diff --git a/custom_widgets/yacreader_options_dialog.cpp b/custom_widgets/yacreader_options_dialog.cpp index 00db7b55..f9fcae64 100644 --- a/custom_widgets/yacreader_options_dialog.cpp +++ b/custom_widgets/yacreader_options_dialog.cpp @@ -24,7 +24,7 @@ YACReaderOptionsDialog::YACReaderOptionsDialog(QWidget * parent) cancel->setDefault(true); connect(accept,SIGNAL(clicked()),this,SLOT(saveOptions())); - connect(cancel,SIGNAL(clicked()),this,SLOT(restoreOptions())); + connect(cancel,SIGNAL(clicked()),this,SLOT(restoreOptions())); //TODO fix this connect(cancel,SIGNAL(clicked()),this,SLOT(close())); useGL = new QCheckBox(tr("Use hardware acceleration (restart needed)")); @@ -82,7 +82,7 @@ YACReaderOptionsDialog::YACReaderOptionsDialog(QWidget * parent) connect(gl->maxAngle,SIGNAL(valueChanged(int)),this,SIGNAL(optionsChanged())); connect(gl->performanceSlider, SIGNAL(valueChanged(int)),this,SLOT(savePerformance(int))); - connect(gl->performanceSlider, SIGNAL(valueChanged(int)),this,SLOT(optionsChanged())); + connect(gl->performanceSlider, SIGNAL(valueChanged(int)),this,SIGNAL(optionsChanged())); connect(gl->vSyncCheck,SIGNAL(stateChanged(int)),this,SLOT(saveUseVSync(int))); }