forked from qt-creator/qt-creator
Replace set[Plain]Text(QString()) with clear()
...where applicable. Shorter, faster, more semantic. Change-Id: Ifb1cf200f489f62a79e12c761e98a846992744dc Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -1132,7 +1132,7 @@ public:
|
||||
void setHistoryCompleter(const QString &key)
|
||||
{
|
||||
m_lineEdit->setHistoryCompleter(key);
|
||||
m_lineEdit->setText(QString()); // Undo "convenient" population with history item.
|
||||
m_lineEdit->clear(); // Undo "convenient" population with history item.
|
||||
}
|
||||
|
||||
QString text() const
|
||||
|
||||
Reference in New Issue
Block a user