forked from qt-creator/qt-creator
CodePaster: Fix broken connects
I broke some connects today, fix them by turning them into Qt5 style connects. Change-Id: I5aab2afcebbef5a5f36840352598c747d5d60477 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -127,9 +127,8 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *errorMe
|
|||||||
};
|
};
|
||||||
const int count = sizeof(protos) / sizeof(Protocol *);
|
const int count = sizeof(protos) / sizeof(Protocol *);
|
||||||
for (int i = 0; i < count; ++i) {
|
for (int i = 0; i < count; ++i) {
|
||||||
connect(protos[i], SIGNAL(pasteDone(QString)), this, SLOT(finishPost(QString)));
|
connect(protos[i], &Protocol::pasteDone, this, &CodepasterPlugin::finishPost);
|
||||||
connect(protos[i], SIGNAL(fetchDone(QString,QString,bool)),
|
connect(protos[i], &Protocol::fetchDone, this, &CodepasterPlugin::finishFetch);
|
||||||
this, SLOT(finishFetch(QString,QString,bool)));
|
|
||||||
settingsPage->addProtocol(protos[i]->name());
|
settingsPage->addProtocol(protos[i]->name());
|
||||||
if (protos[i]->hasSettings())
|
if (protos[i]->hasSettings())
|
||||||
addAutoReleasedObject(protos[i]->settingsPage());
|
addAutoReleasedObject(protos[i]->settingsPage());
|
||||||
|
|||||||
Reference in New Issue
Block a user