Browse Source

Add maxVisibleItems combo box property to FileSystemPathComboEdit.

adaptive-webui-19844
Eugene Shalygin 7 years ago
parent
commit
e4771ba508
  1. 10
      src/gui/fspathedit.cpp
  2. 3
      src/gui/fspathedit.h

10
src/gui/fspathedit.cpp

@ -362,6 +362,16 @@ void FileSystemPathComboEdit::setCurrentIndex(int index) @@ -362,6 +362,16 @@ void FileSystemPathComboEdit::setCurrentIndex(int index)
editWidget<WidgetType>()->setCurrentIndex(index);
}
int FileSystemPathComboEdit::maxVisibleItems() const
{
return editWidget<WidgetType>()->maxVisibleItems();
}
void FileSystemPathComboEdit::setMaxVisibleItems(int maxItems)
{
editWidget<WidgetType>()->setMaxVisibleItems(maxItems);
}
QString FileSystemPathComboEdit::editWidgetText() const
{
return editWidget<WidgetType>()->currentText();

3
src/gui/fspathedit.h

@ -143,6 +143,9 @@ public: @@ -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;

Loading…
Cancel
Save