[Amarok] ac6fff9 Fix QtScript bindings check, now works with all di

Mark Kretschmann kretschmann at kde.org
Sat Apr 17 23:15:03 CEST 2010


commit ac6fff90596e1f207dc7ae6e7c2b0f024b60c340
Author: Mark Kretschmann <kretschmann at kde.org>
Date:   Sat Apr 17 23:27:42 2010 +0200

    Fix QtScript bindings check, now works with all distros.
    
    Thanks to Martin Blumenstingl <darklight.xdarklight at googlemail.com>
    for the patch :)
    
    Everyone please test this with whatever distro you have. I verified
    it here with Arch Linux.
    
    CCMAIL: amarok-devel at kde.org

diff --git a/cmake/modules/bindingstest/QtScriptBindingsTest.cpp b/cmake/modules/bindingstest/QtScriptBindingsTest.cpp
index b7b4390..609bb36 100644
--- a/cmake/modules/bindingstest/QtScriptBindingsTest.cpp
+++ b/cmake/modules/bindingstest/QtScriptBindingsTest.cpp
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <QtCore/QCoreApplication>
+#include <QtGui/QApplication>
 #include <QtScript/QScriptEngine>
 #include <QtCore/QStringList>
 #include <QtCore/QDebug>
@@ -25,7 +25,7 @@
 
 int main(int argc, char **argv)
 {
-    QCoreApplication app( argc, argv );
+    QApplication app( argc, argv );
 
     QStringList allowedBindings;
     allowedBindings << "qt.core" << "qt.gui" << "qt.sql" << "qt.xml" << "qt.uitools" << "qt.network";


More information about the Amarok-devel mailing list