Context actions have become normal actions in the pluginwidget so the widget knows abot them and can easily do things like enable/disable.
17 lines
290 B
C++
17 lines
290 B
C++
#include "MenuPath.h"
|
|
|
|
MenuPath::MenuPath() = default;
|
|
|
|
//MenuPath::MenuPath(QString menu_path)
|
|
// : m_menuPath(std::move(menu_path))
|
|
//{
|
|
//}
|
|
|
|
MenuPath::MenuPath(QString menu_path)
|
|
{
|
|
auto parts = menu_path.splitRef('/');
|
|
for (auto&& elem : parts) {
|
|
m_elems.emplace_back(elem);
|
|
}
|
|
}
|
|
|