diff --git a/panels/effectcontrols.cpp b/panels/effectcontrols.cpp index 1e3e6a857..c6a8740b1 100644 --- a/panels/effectcontrols.cpp +++ b/panels/effectcontrols.cpp @@ -155,6 +155,8 @@ void EffectControls::show_effect_menu(int type, int subtype) { effects_loaded.lock(); QMenu effects_menu(this); + effects_menu.setToolTipsVisible(true); + for (int i=0;isetText(em.name); action->setData(reinterpret_cast(&em)); + if (!em.tooltip.isEmpty()) { + action->setToolTip(em.tooltip); + } QMenu* parent = &effects_menu; if (!em.category.isEmpty()) { @@ -178,6 +183,7 @@ void EffectControls::show_effect_menu(int type, int subtype) { } if (!found) { parent = new QMenu(&effects_menu); + parent->setToolTipsVisible(true); parent->setTitle(em.category); bool found = false; diff --git a/project/effect.cpp b/project/effect.cpp index 443ed2d5f..4ba72f4d8 100644 --- a/project/effect.cpp +++ b/project/effect.cpp @@ -360,7 +360,7 @@ EffectGizmo *Effect::gizmo(int i) { return gizmos.at(i); } -int Effect::gizmo_count(){ +int Effect::gizmo_count() { return gizmos.size(); } diff --git a/project/effect.h b/project/effect.h index 72baa3b07..cc48d9d72 100644 --- a/project/effect.h +++ b/project/effect.h @@ -29,6 +29,7 @@ struct EffectMeta { QString category; QString filename; QString path; + QString tooltip; int internal; int type; int subtype; diff --git a/project/effectloaders.cpp b/project/effectloaders.cpp index 83616e3cd..b434eda86 100644 --- a/project/effectloaders.cpp +++ b/project/effectloaders.cpp @@ -188,6 +188,9 @@ void load_frei0r_effects_worker(const QString& dir, EffectMeta& em, QVector effect_dirs = get_effects_paths(); - int lim = effect_dirs.size(); - - // add extra search paths for frei0r effects - for (int i=0;i loaded_names;