[Qt-creator] Problems with gdbmacros.cpp build

Rudenko Eugene erule.biz at gmail.com
Wed Nov 11 18:12:49 CET 2009


It's some problem with building gdb macros helper on custom configured  
Qt build without Shortcuts
The problem that there are no QKeySecuence realization , because  
realization is closed by define QT_NO_SHORTCUT, via  -config  option  
of configure script.
Here the patch to solve it:


--- ./gdbmacros.cpp     2009-11-11 18:29:47.000000000 +0300
+++ ./gdbmacros_rule.cpp        2009-11-11 20:04:54.000000000 +0300
@@ -2139,7 +2139,11 @@
          *value = qvariant_cast<QColor>(*v).name();
          break;
      case QVariant::KeySequence:
+#ifndef QT_NO_SHORTCUT
          *value = qvariant_cast<QKeySequence>(*v).toString();
+#else
+               *value = QString("QT_NO_SHORTCUT defined: QKeySequence  
is not builded.");
+#endif
          break;
      case QVariant::SizePolicy:
          *value = sizePolicyValue(qvariant_cast<QSizePolicy>(*v));


Rudenko Eugene.



More information about the Qt-creator-old mailing list