mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-09 18:15:11 -04:00
Normalize signal/slot signatures.
This commit is contained in:
parent
288fa732ca
commit
6d5b31f527
3 changed files with 10 additions and 10 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue