diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/converter.cpp | 2 | ||||
-rw-r--r-- | src/common/converter.h | 2 | ||||
-rw-r--r-- | src/common/qdbusactiongroup.cpp | 4 | ||||
-rw-r--r-- | src/common/qmenumodel.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/common/converter.cpp b/src/common/converter.cpp index a8ccb0f..c5cdade 100644 --- a/src/common/converter.cpp +++ b/src/common/converter.cpp @@ -3,7 +3,7 @@ #include <QDebug> /*! \internal */ -QVariant Converter::parseGVariant(GVariant *value) +QVariant Converter::toGVariant(GVariant *value) { QVariant result; if (value == NULL) { diff --git a/src/common/converter.h b/src/common/converter.h index adbad71..6ad4b2c 100644 --- a/src/common/converter.h +++ b/src/common/converter.h @@ -26,7 +26,7 @@ class Converter { public: - static QVariant parseGVariant(GVariant *value); + static QVariant toGVariant(GVariant *value); private: Converter(); diff --git a/src/common/qdbusactiongroup.cpp b/src/common/qdbusactiongroup.cpp index 1038014..b6f52f5 100644 --- a/src/common/qdbusactiongroup.cpp +++ b/src/common/qdbusactiongroup.cpp @@ -196,7 +196,7 @@ QStateAction *QDBusActionGroup::addAction(const char *actionName, bool create) GVariant *actState = g_action_group_get_action_state(m_actionGroup, actionName); if (actState) { - act->setState(Converter::parseGVariant(actState)); + act->setState(Converter::toGVariant(actState)); } act->setValid(true); } else { @@ -241,7 +241,7 @@ void QDBusActionGroup::updateAction(const char *actionName, GVariant *state) { QStateAction *action = this->action(actionName); if ((action != NULL) && (state != NULL)) { - action->setState(Converter::parseGVariant(state)); + action->setState(Converter::toGVariant(state)); } } diff --git a/src/common/qmenumodel.cpp b/src/common/qmenumodel.cpp index 2321f1c..f8d71ba 100644 --- a/src/common/qmenumodel.cpp +++ b/src/common/qmenumodel.cpp @@ -202,7 +202,7 @@ QVariant QMenuModel::getExtraProperties(const QModelIndex &index) const while (g_menu_attribute_iter_get_next (iter, &attrName, &value)) { if (strncmp("x-", attrName, 2) == 0) { extra.insert(parseExtraPropertyName(attrName), - Converter::parseGVariant(value)); + Converter::toGVariant(value)); } } |