1. totte
  2. kate

Commits

zaufi  committed 5569203

few updates to Qt 4.8 stuff

  • Participants
  • Parent commits b332c6b
  • Branches master

Comments (0)

Files changed (2)

File part/syntax/data/get-Qt-classes.sh

View file
  • Ignore whitespace
+#!/bin/bash
+#
+# Copyright (c) 2012 by Alex Turbov
+#
+# Grab a documented (officially) class list from Qt project web site:
+# http://qt-project.org/doc/qt-${version}/classes.html
+#
+
+version=$1
+shift
+
+if [ -n "$version" ]; then
+  tmp=`mktemp`
+  wget -O $tmp http://qt-project.org/doc/qt-${version}/classes.html
+  cat $tmp | egrep '^<dd><a href=".*\.html">.*</a></dd>$' \
+    | sed -e 's,<dd><a href=".*\.html">\(.*\)</a></dd>,<item> \1 </item>,'
+  rm $tmp
+else
+  cat <<EOF
+Usage:
+  $0 Qt-version
+
+Note: Only major and minor version required
+
+Example:
+  $0 4.8
+EOF
+fi

File part/syntax/data/qt4.xml

View file
  • Ignore whitespace
 <language
     name="C++11/Qt4"
     section="Sources"
-    version="0.7"
+    version="0.8"
     kateversion="2.4"
     indenter="cstyle"
     extensions="*.moc"
     <item> QT_NO_CAST_TO_ASCII </item>
     <item> QT_NO_URL_CAST_FROM_STRING </item>
     <item> QT_USE_QSTRINGBUILDER </item>
+    <!-- QtTest macros: http://qt-project.org/doc/qt-4.8/qtest.html#macros -->
+    <item> QBENCHMARK </item>
+    <item> QBENCHMARK_ONCE </item>
+    <item> QCOMPARE </item>
+    <item> QEXPECT_FAIL </item>
+    <item> QFAIL </item>
+    <item> QFETCH </item>
+    <item> QSKIP </item>
+    <item> QTEST </item>
+    <item> QTEST_APPLESS_MAIN </item>
+    <item> QTEST_MAIN </item>
+    <item> QTEST_NOOP_MAIN </item>
+    <item> QVERIFY2 </item>
+    <item> QVERIFY </item>
+    <item> QWARN </item>
     <!-- List of Qt macros obtained by
          part/syntax/data/get-Qt-macros.sh for qglobal.h qfeatures.h qconfig.h
       -->
   </list>
 
   <list name="Qt4Classes">
+    <!-- Classes listed here: http://qt-project.org/doc/qt-4.8/classes.html
+        Obtained by `get-Qt-classes.sh 4.8`
+      -->
     <item> QAbstractAnimation </item>
     <item> QAbstractButton </item>
     <item> QAbstractEventDispatcher </item>
     <item> QFileDialog </item>
     <item> QFileIconProvider </item>
     <item> QFileInfo </item>
-    <item> QFileInfoList </item>                            <!-- typedef -->
     <item> QFileOpenEvent </item>
     <item> QFileSystemModel </item>
     <item> QFileSystemWatcher </item>
     <item> QMutableListIterator </item>
     <item> QMutableMapIterator </item>
     <item> QMutableSetIterator </item>
-    <item> QMutableStringListIterator </item>
     <item> QMutableVectorIterator </item>
     <item> QMutex </item>
     <item> QMutexLocker </item>
     <item> QProxyScreenCursor </item>
     <item> QProxyStyle </item>
     <item> QPushButton </item>
-    <item> QTouchEventSequence (QTest) </item>
     <item> QQuaternion </item>
     <item> QQueue </item>
     <item> QRadialGradient </item>
     <item> QStatusTipEvent </item>
     <item> QString </item>
     <item> QStringList </item>
-    <item> QStringListIterator </item>
     <item> QStringListModel </item>
     <item> QStringMatcher </item>
     <item> QStringRef </item>
     <item> QXmlStreamWriter </item>
     <!-- Not actually classes, but namespaces -->
     <item> Qt </item>
+    <item> QTest </item>
     <item> QtConcurrent </item>
     <item> Phonon </item>
+    <!-- Some public types, but not listed in main class list -->
+    <item> QFileInfoList </item>
+    <item> QMutableStringListIterator </item>
+    <item> QTouchEventSequence </item>                      <!-- QTest -->
+    <item> QStringListIterator </item>
+    <item> QStringBuilder </item>
   </list>
 
   <list name="Qt4Func">
     <item> uint </item>
     <item> ulong </item>
     <item> ushort </item>
+    <!-- http://qt-project.org/doc/qt-4.8/qprocess.html#Q_PID-typedef -->
+    <item> Q_PID </item>
   </list>
 
   <contexts>