Add neglected connect()s to Q{Date,Time}Edit constructors
Pointed out by Daniel Teske.
This amends commit c3e1abad4e
.
Change-Id: Ia6c6f41bf28e846152f9f86322f20a1b99e57201
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
89a25a3ef1
commit
3af55691bc
@ -1530,7 +1530,7 @@ void QDateTimeEdit::mousePressEvent(QMouseEvent *event)
|
||||
QTimeEdit::QTimeEdit(QWidget *parent)
|
||||
: QDateTimeEdit(QDATETIMEEDIT_TIME_MIN, QVariant::Time, parent)
|
||||
{
|
||||
connect(this, SIGNAL(timeChanged(QTime)), SIGNAL(userTimeChanged(QTime)));
|
||||
connect(this, &QTimeEdit::timeChanged, this, &QTimeEdit::userTimeChanged);
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -1541,6 +1541,7 @@ QTimeEdit::QTimeEdit(QWidget *parent)
|
||||
QTimeEdit::QTimeEdit(const QTime &time, QWidget *parent)
|
||||
: QDateTimeEdit(time, QVariant::Time, parent)
|
||||
{
|
||||
connect(this, &QTimeEdit::timeChanged, this, &QTimeEdit::userTimeChanged);
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -1599,7 +1600,7 @@ QTimeEdit::~QTimeEdit()
|
||||
QDateEdit::QDateEdit(QWidget *parent)
|
||||
: QDateTimeEdit(QDATETIMEEDIT_DATE_INITIAL, QVariant::Date, parent)
|
||||
{
|
||||
connect(this, SIGNAL(dateChanged(QDate)), SIGNAL(userDateChanged(QDate)));
|
||||
connect(this, &QDateEdit::dateChanged, this, &QDateEdit::userDateChanged);
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -1610,6 +1611,7 @@ QDateEdit::QDateEdit(QWidget *parent)
|
||||
QDateEdit::QDateEdit(const QDate &date, QWidget *parent)
|
||||
: QDateTimeEdit(date, QVariant::Date, parent)
|
||||
{
|
||||
connect(this, &QDateEdit::dateChanged, this, &QDateEdit::userDateChanged);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user