Normalize signal/slot signatures.

This commit is contained in:
Felix Geyer 2012-07-14 19:34:38 +02:00
parent 288fa732ca
commit 6d5b31f527
3 changed files with 10 additions and 10 deletions

View file

@ -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));