1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 20:44:15 +00:00

Do not show completion when text is not being edited

This commit is contained in:
Eugene Shalygin 2017-07-03 12:57:02 +02:00
parent 59bbf2c6c6
commit 6b65f8add8
2 changed files with 1 additions and 5 deletions

View File

@ -207,8 +207,6 @@ Private::FileLineEdit::FileLineEdit(QWidget *parent)
m_completer->setModel(m_completerModel);
m_completer->setCompletionMode(QCompleter::PopupCompletion);
setCompleter(m_completer);
connect(m_completerModel, &QFileSystemModel::directoryLoaded, this, &FileLineEdit::showCompletionPopup);
}
Private::FileLineEdit::~FileLineEdit()

View File

@ -132,11 +132,9 @@ namespace Private
void keyPressEvent(QKeyEvent *event) override;
void contextMenuEvent(QContextMenuEvent *event) override;
private slots:
void showCompletionPopup();
private:
static QString warningText(FileSystemPathValidator::TestResult r);
void showCompletionPopup();
QFileSystemModel *m_completerModel;
QCompleter *m_completer;