fix ibus focus losing behavior (#142)
This commit is contained in:
parent
5de495e43b
commit
0bb941e7fd
|
@ -48,6 +48,7 @@ CodeCompletionPopup::CodeCompletionPopup(QWidget *parent) :
|
|||
setLayout(new QVBoxLayout());
|
||||
layout()->addWidget(mListView);
|
||||
layout()->setMargin(0);
|
||||
mListView->setFocus();
|
||||
|
||||
mShowKeywords=true;
|
||||
mRecordUsage = false;
|
||||
|
@ -1111,11 +1112,6 @@ const QString &CodeCompletionPopup::memberPhrase() const
|
|||
return mMemberPhrase;
|
||||
}
|
||||
|
||||
void CodeCompletionPopup::showEvent(QShowEvent *)
|
||||
{
|
||||
mListView->setFocus();
|
||||
}
|
||||
|
||||
const PStatement &CodeCompletionPopup::currentScope() const
|
||||
{
|
||||
return mCurrentScope;
|
||||
|
|
|
@ -194,7 +194,6 @@ private:
|
|||
|
||||
// QWidget interface
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
void hideEvent(QHideEvent *event) override;
|
||||
|
||||
// QObject interface
|
||||
|
|
Loading…
Reference in New Issue