forked from qt-creator/qt-creator
HistoryCompleter: Accept parent
Change-Id: Ifbbd2b7af06eec620a765614792547fff6303f06 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -305,7 +305,7 @@ bool FancyLineEdit::hasAutoHideButton(Side side) const
|
||||
void FancyLineEdit::setHistoryCompleter(const QString &historyKey)
|
||||
{
|
||||
QTC_ASSERT(!d->m_historyCompleter, return);
|
||||
d->m_historyCompleter = new HistoryCompleter(this, historyKey);
|
||||
d->m_historyCompleter = new HistoryCompleter(this, historyKey, this);
|
||||
QLineEdit::setCompleter(d->m_historyCompleter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user