1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-30 16:34:16 +00:00

Add maxVisibleItems combo box property to FileSystemPathComboEdit.

This commit is contained in:
Eugene Shalygin 2017-10-18 11:16:12 +02:00
parent 954448863e
commit e4771ba508
2 changed files with 13 additions and 0 deletions

View File

@ -362,6 +362,16 @@ void FileSystemPathComboEdit::setCurrentIndex(int index)
editWidget<WidgetType>()->setCurrentIndex(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 QString FileSystemPathComboEdit::editWidgetText() const
{ {
return editWidget<WidgetType>()->currentText(); return editWidget<WidgetType>()->currentText();

View File

@ -143,6 +143,9 @@ public:
int currentIndex() const; int currentIndex() const;
void setCurrentIndex(int index); void setCurrentIndex(int index);
int maxVisibleItems() const;
void setMaxVisibleItems(int maxItems);
private: private:
QString editWidgetText() const override; QString editWidgetText() const override;
void setEditWidgetText(const QString &text) override; void setEditWidgetText(const QString &text) override;