diff options
author | Frédéric Mercille <fmercille@homer.(none)> | 2009-07-17 12:46:29 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-17 13:20:24 (GMT) |
commit | 866e6e6338767086cef8f97bc4e7b38e78b83651 (patch) | |
tree | 81fdb2a2403ef12db4d0305335b65ba14c35ee2a /src/gui/util/qcompleter.h | |
parent | e3a34408aa65af33494b7154ab5eaefe676b5f20 (diff) | |
download | Qt-866e6e6338767086cef8f97bc4e7b38e78b83651.zip Qt-866e6e6338767086cef8f97bc4e7b38e78b83651.tar.gz Qt-866e6e6338767086cef8f97bc4e7b38e78b83651.tar.bz2 |
Lets the size of the completer be configurable in a way similar to QComboBox.
Merge-request: 884
Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
Diffstat (limited to 'src/gui/util/qcompleter.h')
-rw-r--r-- | src/gui/util/qcompleter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/util/qcompleter.h b/src/gui/util/qcompleter.h index c1169ef..a419154 100644 --- a/src/gui/util/qcompleter.h +++ b/src/gui/util/qcompleter.h @@ -69,6 +69,7 @@ class Q_GUI_EXPORT QCompleter : public QObject Q_PROPERTY(CompletionMode completionMode READ completionMode WRITE setCompletionMode) Q_PROPERTY(int completionColumn READ completionColumn WRITE setCompletionColumn) Q_PROPERTY(int completionRole READ completionRole WRITE setCompletionRole) + Q_PROPERTY(int maxVisibleItems READ maxVisibleItems WRITE setMaxVisibleItems) Q_PROPERTY(Qt::CaseSensitivity caseSensitivity READ caseSensitivity WRITE setCaseSensitivity) Q_PROPERTY(bool wrapAround READ wrapAround WRITE setWrapAround) @@ -118,6 +119,9 @@ public: bool wrapAround() const; + int maxVisibleItems() const; + void setMaxVisibleItems(int maxItems); + int completionCount() const; bool setCurrentRow(int row); int currentRow() const; |