Skip to content

Commit

Permalink
Work on tutorial plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKroes committed Dec 10, 2024
1 parent 19a7550 commit b0986aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ LearningCenterTutorialsFilterModel::LearningCenterTutorialsFilterModel(QObject*

_tagsFilterAction.setIconByName("tag");
_tagsFilterAction.setConfigurationFlag(WidgetAction::ConfigurationFlag::ForceCollapsedInGroup);
_tagsFilterAction.setDefaultWidgetFlags(OptionsAction::Tags | OptionsAction::Selection);
_tagsFilterAction.setDefaultWidgetFlags(OptionsAction::ComboBox | OptionsAction::Selection);

connect(&_tagsFilterAction, &OptionsAction::selectedOptionsChanged, this, [this](const QStringList& tags) -> void {
invalidate();
Expand Down
4 changes: 2 additions & 2 deletions ManiVault/src/plugins/TutorialPlugin/src/TutorialPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ TutorialPlugin::TutorialPlugin(const PluginFactory* factory) :

tagsFilterAction.setConfigurationFlag(WidgetAction::ConfigurationFlag::NoLabelInGroup);
//tagsFilterAction.setConfigurationFlag(WidgetAction::ConfigurationFlag::ForceCollapsedInGroup, true);
tagsFilterAction.setDefaultWidgetFlags(OptionsAction::Tags | OptionsAction::Selection);
tagsFilterAction.setPopupSizeHint(QSize(640, 180));
tagsFilterAction.setDefaultWidgetFlags(OptionsAction::ComboBox | OptionsAction::Selection);
tagsFilterAction.setPopupSizeHint(QSize(640, 0));

_horizontalGroupAction.addAction(&_tutorialPickerAction);
_horizontalGroupAction.addAction(&tagsFilterAction, OptionsAction::Tags | OptionsAction::Selection);
Expand Down

0 comments on commit b0986aa

Please sign in to comment.