Show menu when clicking icon for collection and internet search tool buttons
This commit is contained in:
parent
4509a07fff
commit
1cc2e6303a
|
@ -136,6 +136,7 @@ CollectionFilterWidget::CollectionFilterWidget(QWidget *parent)
|
|||
ui_->options->setMenu(collection_menu_);
|
||||
|
||||
QObject::connect(ui_->search_field, &QSearchField::textChanged, this, &CollectionFilterWidget::FilterTextChanged);
|
||||
QObject::connect(ui_->options, &QToolButton::clicked, ui_->options, &QToolButton::showMenu);
|
||||
|
||||
ReloadSettings();
|
||||
|
||||
|
|
|
@ -208,6 +208,8 @@ void InternetSearchView::Init(Application *app, InternetService *service) {
|
|||
QObject::connect(app_, &Application::SettingsChanged, this, &InternetSearchView::ReloadSettings);
|
||||
QObject::connect(app_->album_cover_loader(), &AlbumCoverLoader::AlbumCoverLoaded, this, &InternetSearchView::AlbumCoverLoaded);
|
||||
|
||||
QObject::connect(ui_->settings, &QToolButton::clicked, ui_->settings, &QToolButton::showMenu);
|
||||
|
||||
ReloadSettings();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue