/* SPDX-License-Identifier: GPL-2.0-only */ #pragma once #include #include #include namespace Util { inline QMap parseParameters(QIODevice& dev){ QString curr_line; QMap result; while (!dev.atEnd()) { curr_line = dev.readLine().trimmed(); auto split = curr_line.split('='); if(split.size()!=2){ continue; } result.insert(split[0].trimmed(), split[1].trimmed()); } return result; } }