Skip to content
Snippets Groups Projects
Commit 3d60e12a authored by Langella Olivier's avatar Langella Olivier
Browse files

qt5 migration

parent aa23b200
No related branches found
No related tags found
No related merge requests found
......@@ -33,16 +33,12 @@ DbXrefButton::DbXrefButton(QWidget * parent, DbXref dbxref): QPushButton(parent)
_dbxref = dbxref;
#if QT_VERSION >= 0x050000
// Qt5 code
/*
connect(&workerThread, &QThread::finished, worker, &QObject::deleteLater);
connect(this, &PtSpectrumViewer::operateMsDataFile, worker, &PwizLoaderThread::doMsDataFileLoad);
connect(worker, &PwizLoaderThread::msDataReady, this, &PtSpectrumViewer::handleMsDataFile);
*/
QObject::connect(this, &DbXrefButton::clicked,this, &DbXrefButton::clickedSlot);
#else
// Qt4 code
QObject::connect(this, SIGNAL(clicked()),this, SLOT(clickedSlot()));
#endif
setText(_dbxref.accession);
}
......@@ -63,11 +59,8 @@ ProteinWindow::ProteinWindow(ProjectWindow *parent):
#if QT_VERSION >= 0x050000
// Qt5 code
/*
connect(&workerThread, &QThread::finished, worker, &QObject::deleteLater);
connect(this, &PtSpectrumViewer::operateMsDataFile, worker, &PwizLoaderThread::doMsDataFileLoad);
connect(worker, &PwizLoaderThread::msDataReady, this, &PtSpectrumViewer::handleMsDataFile);
*/
connect (_p_project_window, &ProjectWindow::identificationGroupGrouped, this,&ProteinWindow::doIdentificationGroupGrouped);
connect (_p_project_window, &ProjectWindow::peptideMatchSelected, this,&ProteinWindow::doPeptideMatchSelected);
#else
// Qt4 code
connect (_p_project_window, SIGNAL(identificationGroupGrouped(IdentificationGroup *)), this,SLOT(doIdentificationGroupGrouped(IdentificationGroup *)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment