diff --git a/src/gui/LineEdit.cpp b/src/gui/LineEdit.cpp index 89b420471..aad08e0bd 100644 --- a/src/gui/LineEdit.cpp +++ b/src/gui/LineEdit.cpp @@ -46,7 +46,7 @@ LineEdit::LineEdit(QWidget* parent) m_clearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }"); m_clearButton->hide(); connect(m_clearButton, SIGNAL(clicked()), this, SLOT(clear())); - connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(updateCloseButton(const QString&))); + connect(this, SIGNAL(textChanged(QString)), this, SLOT(updateCloseButton(QString))); int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); setStyleSheet(QString("QLineEdit { padding-right: %1px; } ") .arg(m_clearButton->sizeHint().width() + frameWidth + 1)); diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index b65b2ce1d..bc96ed62d 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -101,11 +101,11 @@ EditEntryWidget::EditEntryWidget(QWidget* parent) m_historyUi->historyView->setModel(m_sortModel); m_historyUi->historyView->setRootIsDecorated(false); - connect(m_historyUi->historyView, SIGNAL(activated(const QModelIndex&)), - SLOT(histEntryActivated(const QModelIndex&))); + connect(m_historyUi->historyView, SIGNAL(activated(QModelIndex)), + SLOT(histEntryActivated(QModelIndex))); connect(m_historyUi->historyView->selectionModel(), - SIGNAL(currentChanged(QModelIndex ,QModelIndex)), - SLOT(updateHistoryButtons(QModelIndex, QModelIndex))); + SIGNAL(currentChanged(QModelIndex,QModelIndex)), + SLOT(updateHistoryButtons(QModelIndex,QModelIndex))); connect(m_historyUi->showButton, SIGNAL(clicked()), SLOT(showHistoryEntry())); connect(m_historyUi->restoreButton, SIGNAL(clicked()), SLOT(restoreHistoryEntry())); connect(m_historyUi->deleteButton, SIGNAL(clicked()), SLOT(deleteHistoryEntry())); diff --git a/tests/TestEntryModel.cpp b/tests/TestEntryModel.cpp index 519bfbd88..c860c97b5 100644 --- a/tests/TestEntryModel.cpp +++ b/tests/TestEntryModel.cpp @@ -58,7 +58,7 @@ void TestEntryModel::test() QCOMPARE(model->rowCount(), 2); - QSignalSpy spyDataChanged(model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&))); + QSignalSpy spyDataChanged(model, SIGNAL(dataChanged(QModelIndex,QModelIndex))); entry1->setTitle("changed"); QCOMPARE(spyDataChanged.count(), 1); @@ -68,10 +68,10 @@ void TestEntryModel::test() QCOMPARE(model->data(index1).toString(), entry1->title()); QCOMPARE(model->data(index2).toString(), entry2->title()); - QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex&,int,int))); - QSignalSpy spyAdded(model, SIGNAL(rowsInserted(const QModelIndex&,int,int))); - QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex&,int,int))); - QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(const QModelIndex&,int,int))); + QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int))); + QSignalSpy spyAdded(model, SIGNAL(rowsInserted(QModelIndex,int,int))); + QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int))); + QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(QModelIndex,int,int))); Entry* entry3 = new Entry(); entry3->setGroup(group1);