From 36426c5ef4e8d3c8e850996c447d6999e21479c6 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Thu, 4 Oct 2012 12:04:46 +0200 Subject: Move the enums into a class that inherits QObject, so they can be exposed and used directly from QML. --- src/common/qdbusactiongroup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/qdbusactiongroup.cpp') diff --git a/src/common/qdbusactiongroup.cpp b/src/common/qdbusactiongroup.cpp index 629915b..d25f2de 100644 --- a/src/common/qdbusactiongroup.cpp +++ b/src/common/qdbusactiongroup.cpp @@ -143,8 +143,8 @@ void QDBusActionGroup::stop() /*! \internal */ void QDBusActionGroup::setIntBusType(int busType) { - if ((busType > None) && (busType < LastBusType)) { - setBusType(static_cast(busType)); + if ((busType > DBusEnums::None) && (busType < DBusEnums::LastBusType)) { + setBusType(static_cast(busType)); } } -- cgit v1.2.3