fixed "QMetaObject::connectSlotsByName: No matching signal for" warnings

This commit is contained in:
Rafael 2016-04-03 06:12:12 +02:00
parent 9c4adc8779
commit cee1d0f861
11 changed files with 41 additions and 41 deletions

View file

@ -77,7 +77,7 @@ void SnapmaticWidget::on_cmdView_clicked()
picDialog->setModal(true);
// be ready for playerName updated
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(on_playerNameUpdated()));
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(playerNameUpdated()));
// show picture dialog
picDialog->show();
@ -165,7 +165,7 @@ void SnapmaticWidget::setChecked(bool isChecked)
ui->cbSelected->setChecked(isChecked);
}
void SnapmaticWidget::on_pictureSelected()
void SnapmaticWidget::pictureSelected()
{
setChecked(true);
}
@ -175,7 +175,7 @@ void SnapmaticWidget::contextMenuEvent(QContextMenuEvent *ev)
QMenu contextMenu(this);
if (!ui->cbSelected->isChecked())
{
contextMenu.addAction(tr("Select"), this, SLOT(on_pictureSelected()));
contextMenu.addAction(tr("Select"), this, SLOT(pictureSelected()));
contextMenu.addSeparator();
}
contextMenu.addAction(tr("View picture"), this, SLOT(on_cmdView_clicked()));