forked from qt-creator/qt-creator
Utils: Use a bit more Key and Store
Also, separate the Key into a separate header to minimiz impact on #include load. Change-Id: I4f719cad4d23a71a9c228d0b7f5c2409fd6e24d5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -142,8 +142,7 @@ QWidget *FindInFiles::createConfigWidget()
|
||||
connect(m_directory.data(), &PathChooser::textChanged, this,
|
||||
[this] { setSearchDir(m_directory->filePath()); });
|
||||
connect(this, &BaseFileFind::searchDirChanged, m_directory, &PathChooser::setFilePath);
|
||||
m_directory->setHistoryCompleter(QLatin1String(HistoryKey),
|
||||
/*restoreLastItemFromHistory=*/ true);
|
||||
m_directory->setHistoryCompleter(HistoryKey, /*restoreLastItemFromHistory=*/ true);
|
||||
if (!HistoryCompleter::historyExistsFor(QLatin1String(HistoryKey))) {
|
||||
auto completer = static_cast<HistoryCompleter *>(m_directory->lineEdit()->completer());
|
||||
const QStringList legacyHistory = ICore::settings()->value(
|
||||
|
||||
Reference in New Issue
Block a user