mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-12 15:59:58 -05:00
Normalize signal/slot signatures.
This commit is contained in:
parent
288fa732ca
commit
6d5b31f527
@ -46,7 +46,7 @@ LineEdit::LineEdit(QWidget* parent)
|
|||||||
m_clearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }");
|
m_clearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }");
|
||||||
m_clearButton->hide();
|
m_clearButton->hide();
|
||||||
connect(m_clearButton, SIGNAL(clicked()), this, SLOT(clear()));
|
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);
|
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
|
||||||
setStyleSheet(QString("QLineEdit { padding-right: %1px; } ")
|
setStyleSheet(QString("QLineEdit { padding-right: %1px; } ")
|
||||||
.arg(m_clearButton->sizeHint().width() + frameWidth + 1));
|
.arg(m_clearButton->sizeHint().width() + frameWidth + 1));
|
||||||
|
@ -101,8 +101,8 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
|
|||||||
m_historyUi->historyView->setModel(m_sortModel);
|
m_historyUi->historyView->setModel(m_sortModel);
|
||||||
m_historyUi->historyView->setRootIsDecorated(false);
|
m_historyUi->historyView->setRootIsDecorated(false);
|
||||||
|
|
||||||
connect(m_historyUi->historyView, SIGNAL(activated(const QModelIndex&)),
|
connect(m_historyUi->historyView, SIGNAL(activated(QModelIndex)),
|
||||||
SLOT(histEntryActivated(const QModelIndex&)));
|
SLOT(histEntryActivated(QModelIndex)));
|
||||||
connect(m_historyUi->historyView->selectionModel(),
|
connect(m_historyUi->historyView->selectionModel(),
|
||||||
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||||
SLOT(updateHistoryButtons(QModelIndex,QModelIndex)));
|
SLOT(updateHistoryButtons(QModelIndex,QModelIndex)));
|
||||||
|
@ -58,7 +58,7 @@ void TestEntryModel::test()
|
|||||||
|
|
||||||
QCOMPARE(model->rowCount(), 2);
|
QCOMPARE(model->rowCount(), 2);
|
||||||
|
|
||||||
QSignalSpy spyDataChanged(model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)));
|
QSignalSpy spyDataChanged(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)));
|
||||||
entry1->setTitle("changed");
|
entry1->setTitle("changed");
|
||||||
QCOMPARE(spyDataChanged.count(), 1);
|
QCOMPARE(spyDataChanged.count(), 1);
|
||||||
|
|
||||||
@ -68,10 +68,10 @@ void TestEntryModel::test()
|
|||||||
QCOMPARE(model->data(index1).toString(), entry1->title());
|
QCOMPARE(model->data(index1).toString(), entry1->title());
|
||||||
QCOMPARE(model->data(index2).toString(), entry2->title());
|
QCOMPARE(model->data(index2).toString(), entry2->title());
|
||||||
|
|
||||||
QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex&,int,int)));
|
QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)));
|
||||||
QSignalSpy spyAdded(model, SIGNAL(rowsInserted(const QModelIndex&,int,int)));
|
QSignalSpy spyAdded(model, SIGNAL(rowsInserted(QModelIndex,int,int)));
|
||||||
QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex&,int,int)));
|
QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)));
|
||||||
QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(const QModelIndex&,int,int)));
|
QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(QModelIndex,int,int)));
|
||||||
|
|
||||||
Entry* entry3 = new Entry();
|
Entry* entry3 = new Entry();
|
||||||
entry3->setGroup(group1);
|
entry3->setGroup(group1);
|
||||||
|
Loading…
Reference in New Issue
Block a user