mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add maxVisibleItems combo box property to FileSystemPathComboEdit.
This commit is contained in:
parent
954448863e
commit
e4771ba508
2 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue