forked from qt-creator/qt-creator
ProjectExplorer: And more Key and Store
Change-Id: Id5787890bdb46bfeef8e3f37923e6dc26cb56c31 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -525,7 +525,7 @@ QWidget *LineEditField::createWidget(const QString &displayName, JsonFieldPage *
|
||||
w->setFixupExpando(m_fixupExpando);
|
||||
|
||||
if (!m_historyId.isEmpty())
|
||||
w->setHistoryCompleter(m_historyId, m_restoreLastHistoryItem);
|
||||
w->setHistoryCompleter(keyFromString(m_historyId), m_restoreLastHistoryItem);
|
||||
|
||||
w->setEchoMode(m_isPassword ? QLineEdit::Password : QLineEdit::Normal);
|
||||
QObject::connect(w, &FancyLineEdit::textEdited, [this] { setHasUserChanges(); });
|
||||
@@ -800,7 +800,7 @@ QWidget *PathChooserField::createWidget(const QString &displayName, JsonFieldPag
|
||||
Q_UNUSED(page)
|
||||
auto w = new PathChooser;
|
||||
if (!m_historyId.isEmpty())
|
||||
w->setHistoryCompleter(m_historyId);
|
||||
w->setHistoryCompleter(keyFromString(m_historyId));
|
||||
QObject::connect(w, &PathChooser::textChanged, [this, w] {
|
||||
if (w->filePath() != m_path)
|
||||
setHasUserChanges();
|
||||
|
||||
Reference in New Issue
Block a user