aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-14 09:46:29 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-14 09:46:29 -0300
commit2b9cf1654e8eb602f70e14246c3c583962ce7254 (patch)
tree5da20da0bd8cf9ad7e735268697bd7068cff26a4
parent7dec723ad070fea717a8c235eeada0889615ab6a (diff)
downloadqmenumodel-2b9cf1654e8eb602f70e14246c3c583962ce7254.tar.gz
qmenumodel-2b9cf1654e8eb602f70e14246c3c583962ce7254.tar.bz2
qmenumodel-2b9cf1654e8eb602f70e14246c3c583962ce7254.zip
Renamed Converter::parseGVariant.
-rw-r--r--src/common/converter.cpp2
-rw-r--r--src/common/converter.h2
-rw-r--r--src/common/qdbusactiongroup.cpp4
-rw-r--r--src/common/qmenumodel.cpp2
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));
}
}