diff options
author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-05 11:59:50 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-05 11:59:50 +0200 |
commit | 81dbf09d988d87f82496ba106b5f1dd2aad7967d (patch) | |
tree | d1fed43374afcd9be379998526b7de11d591e271 /tests/client/modeltest.cpp | |
parent | 696fba50395807c344325af11e71ec74cf370c3d (diff) | |
download | qmenumodel-81dbf09d988d87f82496ba106b5f1dd2aad7967d.tar.gz qmenumodel-81dbf09d988d87f82496ba106b5f1dd2aad7967d.tar.bz2 qmenumodel-81dbf09d988d87f82496ba106b5f1dd2aad7967d.zip |
Port to Qt5.
To compile and test, one needs to install the qt5-meta-minimal package from the Canonical Qt5 Edgers PPA (https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-beta1). This installs Qt5 in /opt/qt5/. cmake needs to be invoked with CMAKE_PREFIX_PATH=/opt/qt5/lib/cmake, and /opt/qt5/bin needs to be added to $PATH.
Diffstat (limited to 'tests/client/modeltest.cpp')
-rw-r--r-- | tests/client/modeltest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index 9f6ee76..542b38a 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -17,6 +17,10 @@ * Renato Araujo Oliveira Filho <renato@canonical.com> */ +extern "C" { +#include <glib-object.h> +} + #include "qdbusmenumodel.h" #include "dbusmenuscript.h" @@ -35,6 +39,7 @@ private: private Q_SLOTS: void initTestCase() { + g_type_init(); Q_ASSERT(m_script.connect()); } |