forked from qt-creator/qt-creator
Keep the current explicitly selected item.
Done with: Thorbjørn Lindeijer
This commit is contained in:
@@ -62,6 +62,10 @@ public:
|
||||
void showCompletions(int startPos);
|
||||
|
||||
QChar typedChar() const;
|
||||
CompletionItem currentCompletionItem() const;
|
||||
|
||||
void setCurrentIndex(int index);
|
||||
bool explicitlySelected() const;
|
||||
|
||||
signals:
|
||||
void itemSelected(const TextEditor::CompletionItem &item);
|
||||
@@ -86,6 +90,9 @@ class CompletionListView : public QListView
|
||||
public:
|
||||
~CompletionListView();
|
||||
|
||||
CompletionItem currentCompletionItem() const;
|
||||
bool explicitlySelected() const;
|
||||
|
||||
signals:
|
||||
void itemSelected(const TextEditor::CompletionItem &item);
|
||||
void completionListClosed();
|
||||
@@ -118,6 +125,7 @@ private:
|
||||
QPointer<CompletionInfoFrame> m_infoFrame;
|
||||
QTimer m_infoTimer;
|
||||
QChar m_typedChar;
|
||||
bool m_explicitlySelected;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user