File gsd-qt-compat.patch of Package gsd
diff -uNr ../gsd-1.2.2.orig/src/dock_details.cpp ./src/dock_details.cpp
--- ../gsd-1.2.2.orig/src/dock_details.cpp 2012-04-20 23:23:00.000000000 +0200
+++ ./src/dock_details.cpp 2012-07-02 16:32:52.090349041 +0200
@@ -593,7 +593,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
if (id == NULL || id.compare ("") == 0)
return;
diff -uNr ../gsd-1.2.2.orig/src/omp_command.cpp ./src/omp_command.cpp
--- ../gsd-1.2.2.orig/src/omp_command.cpp 2012-04-20 23:23:00.000000000 +0200
+++ ./src/omp_command.cpp 2012-07-02 16:47:58.193510097 +0200
@@ -523,7 +523,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
QString str_type ("");
omp_utilities::omp_type type;
diff -uNr ../gsd-1.2.2.orig/src/omp_string_builder.cpp ./src/omp_string_builder.cpp
--- ../gsd-1.2.2.orig/src/omp_string_builder.cpp 2012-04-20 23:23:00.000000000 +0200
+++ ./src/omp_string_builder.cpp 2012-07-02 16:49:08.377430111 +0200
@@ -56,7 +56,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
QString command ("<get_");
switch (type)
@@ -150,7 +150,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
QString command ("<create_");
QString typeStr;
@@ -209,7 +209,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
QString command ("<delete_");
QString typeString;
@@ -419,7 +419,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
QString com ("");
if (type == omp_utilities::TASK)
@@ -864,7 +864,7 @@
QVariant var_prot_version = qApp->property("protocol_version");
float protocol_version = -1;
if (var_prot_version.isValid())
- protocol_version = var_prot_version.toFloat();
+ protocol_version = var_prot_version.toDouble();
if (type == omp_utilities::TASK)
{
if (!parameter.contains ("task_id"))