Work on plugin mechanism
Context actions have become normal actions in the pluginwidget so the widget knows abot them and can easily do things like enable/disable.
This commit is contained in:
parent
eca8841427
commit
a704332342
24 changed files with 239 additions and 267 deletions
|
|
@ -2,9 +2,16 @@
|
|||
|
||||
MenuPath::MenuPath() = default;
|
||||
|
||||
//MenuPath::MenuPath(QString menu_path)
|
||||
// : m_menuPath(std::move(menu_path))
|
||||
//{
|
||||
//}
|
||||
|
||||
MenuPath::MenuPath(QString menu_path)
|
||||
: m_menuPath(std::move(menu_path))
|
||||
{
|
||||
auto parts = menu_path.splitRef('/');
|
||||
for (auto&& elem : parts) {
|
||||
m_elems.emplace_back(elem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue