From e237036e033db10f20bb3d25d8905c6579372b09 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Tue, 24 Nov 2009 19:13:37 +0100
Subject: [PATCH] OBJECTIVE_HEADERS for pro parsing and syntax highlighting.

---
 src/plugins/qt4projectmanager/profilehighlighter.cpp | 4 +++-
 src/plugins/qt4projectmanager/qt4nodes.cpp           | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/qt4projectmanager/profilehighlighter.cpp b/src/plugins/qt4projectmanager/profilehighlighter.cpp
index 9c5a0c62e3f..b80e2bb2d59 100644
--- a/src/plugins/qt4projectmanager/profilehighlighter.cpp
+++ b/src/plugins/qt4projectmanager/profilehighlighter.cpp
@@ -36,7 +36,7 @@
 
 using namespace Qt4ProjectManager::Internal;
 
-#define MAX_VARIABLES 53
+#define MAX_VARIABLES 55
 const char *const variables[MAX_VARIABLES] = {
     "CCFLAG",
     "CONFIG",
@@ -55,6 +55,8 @@ const char *const variables[MAX_VARIABLES] = {
     "LIBS",
     "MAKEFILE",
     "MOC_DIR",
+    "OBJECTIVE_HEADERS",
+    "OBJECTIVE_SOURCES",
     "OBJECTS",
     "OBJECTS_DIR",
     "OBJMOC",
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index 9d213e2cf28..70c7029251c 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -716,6 +716,7 @@ QStringList Qt4PriFileNode::varNames(FileType type)
     switch (type) {
     case ProjectExplorer::HeaderType:
         vars << QLatin1String("HEADERS");
+        vars << QLatin1String("OBJECTIVE_HEADERS");
         break;
     case ProjectExplorer::SourceType:
         vars << QLatin1String("SOURCES");
-- 
GitLab