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:
parent
954448863e
commit
e4771ba508
@ -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();
|
||||
|
@ -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…
x
Reference in New Issue
Block a user