summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/StyleConvention
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/StyleConvention')
-rw-r--r--kpovmodeler/StyleConvention14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpovmodeler/StyleConvention b/kpovmodeler/StyleConvention
index 8c68d5fe..8199c913 100644
--- a/kpovmodeler/StyleConvention
+++ b/kpovmodeler/StyleConvention
@@ -69,7 +69,7 @@ Put type modifiers behind the type, not before the variable name.
Example:
-const QString& type;
+const TQString& type;
PMObject* obj;
@@ -201,19 +201,19 @@ things are set multiple times. But it works :-)
(load-library "vc")
;;for QT
- (set c-C++-access-key "\\<\\(Q_SIGNALS\\|public\\|protected\\|private
- \\|public Q_SLOTS\\|protected Q_SLOTS\\|private Q_SLOTS\\)\\>[ \t]*:")
- ;; modify the colour of Q_SLOTS to match public, private, etc ...
+ (set c-C++-access-key "\\<\\(signals\\|public\\|protected\\|private
+ \\|public slots\\|protected slots\\|private slots\\)\\>[ \t]*:")
+ ;; modify the colour of slots to match public, private, etc ...
(font-lock-add-keywords 'c++-mode
- '(("\\<\\(Q_SLOTS\\|Q_SIGNALS\\)\\>" . font-lock-type-face)))
+ '(("\\<\\(slots\\|signals\\)\\>" . font-lock-type-face)))
;; make new font for rest of qt keywords
(make-face 'qt-keywords-face)
(set-face-foreground 'qt-keywords-face "green")
;; qt keywords
(font-lock-add-keywords 'c++-mode
- '(("\\<Q_OBJECT\\>" . 'qt-keywords-face)))
+ '(("\\<TQ_OBJECT\\>" . 'qt-keywords-face)))
(font-lock-add-keywords 'c++-mode
- '(("\\<SIGNAL\\|SLOT\\>" . 'qt-keywords-face)))
+ '(("\\<TQ_SIGNAL\\|TQ_SLOT\\>" . 'qt-keywords-face)))
(font-lock-add-keywords 'c++-mode
'(("\\<Q[A-Z][A-Za-z]*" . 'qt-keywords-face)))
)