diff --git a/src/gui/fspathedit.cpp b/src/gui/fspathedit.cpp index 1ccd086c0..b7889763a 100644 --- a/src/gui/fspathedit.cpp +++ b/src/gui/fspathedit.cpp @@ -362,6 +362,16 @@ void FileSystemPathComboEdit::setCurrentIndex(int index) editWidget()->setCurrentIndex(index); } +int FileSystemPathComboEdit::maxVisibleItems() const +{ + return editWidget()->maxVisibleItems(); +} + +void FileSystemPathComboEdit::setMaxVisibleItems(int maxItems) +{ + editWidget()->setMaxVisibleItems(maxItems); +} + QString FileSystemPathComboEdit::editWidgetText() const { return editWidget()->currentText(); diff --git a/src/gui/fspathedit.h b/src/gui/fspathedit.h index e7bf496ab..880c667f8 100644 --- a/src/gui/fspathedit.h +++ b/src/gui/fspathedit.h @@ -143,6 +143,9 @@ public: int currentIndex() const; void setCurrentIndex(int index); + int maxVisibleItems() const; + void setMaxVisibleItems(int maxItems); + private: QString editWidgetText() const override; void setEditWidgetText(const QString &text) override;