aboutsummaryrefslogtreecommitdiff
path: root/tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp
diff options
context:
space:
mode:
authorVesa Halttunen <vesa.halttunen@nokia.com>2010-05-24 17:56:10 +0300
committerVesa Halttunen <vesa.halttunen@nokia.com>2010-05-24 17:56:10 +0300
commitbf46620259b0d096a5b0d58ec5fa09b9bc9d88d3 (patch)
tree44066ab81bd25ca374e4c5b6f46eddcc0909d9fa /tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp
parentb62f32487771d4273a73e97e5b57a496353f7c42 (diff)
Changes: Use QGraphicsWidget instead of MWidget as the application extension/applet base class
RevBy: Sachin Kundu, Daniel D'Andrada Details: This patch breaks the libmeegotouchextensions API. It changes the base class of the extensions to be QGraphicsWidget instead of MWidget so that in the future extensions can be written without having to use libmeegotouch. This change has been announced and agreed with the relevant parties. Approval from asset teams that are using application extensions has been received and the change has been discussed in DPMT.
Diffstat (limited to 'tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp')
-rw-r--r--tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp b/tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp
index 771cb844..b791030f 100644
--- a/tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp
+++ b/tests/ut_mapplicationextensionrunner/ut_mapplicationextensionrunner.cpp
@@ -24,9 +24,9 @@
#include <mapplicationextensionmetadata_stub.h>
#include <mapplicationextensionloader_stub.h>
#include <mappletid_stub.h>
-#include <MWidget>
#include <MWindow>
#include <MApplication>
+#include <QGraphicsWidget>
#include <QGraphicsLinearLayout>
#include <QtTest/QtTest>
@@ -46,7 +46,7 @@ bool TestExtension::initialize(const QString &interface)
return true;
}
-MWidget *TestExtension::widget()
+QGraphicsWidget *TestExtension::widget()
{
return widget_;
}
@@ -90,7 +90,7 @@ void Ut_MApplicationExtensionRunner::cleanupTestCase()
void Ut_MApplicationExtensionRunner::testInitializationSuccess()
{
- extension->widget_ = new MWidget;
+ extension->widget_ = new QGraphicsWidget;
QCOMPARE(m_instance->init("servername", *meta), true);
delete extension->widget_;
}