2018-12-30 15:46:15 +01:00
|
|
|
|
#include "MenuPath.h"
|
|
|
|
|
|
|
|
|
|
|
|
MenuPath::MenuPath() = default;
|
|
|
|
|
|
|
2019-02-08 10:10:11 +01:00
|
|
|
|
//MenuPath::MenuPath(QString menu_path)
|
|
|
|
|
|
// : m_menuPath(std::move(menu_path))
|
|
|
|
|
|
//{
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
2018-12-30 15:46:15 +01:00
|
|
|
|
MenuPath::MenuPath(QString menu_path)
|
|
|
|
|
|
{
|
2019-02-08 10:10:11 +01:00
|
|
|
|
auto parts = menu_path.splitRef('/');
|
|
|
|
|
|
for (auto&& elem : parts) {
|
|
|
|
|
|
m_elems.emplace_back(elem);
|
|
|
|
|
|
}
|
2018-12-30 15:46:15 +01:00
|
|
|
|
}
|
|
|
|
|
|
|