summaryrefslogtreecommitdiffstats
path: root/scripts/kde-devel-vim.vim
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /scripts/kde-devel-vim.vim
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scripts/kde-devel-vim.vim')
-rw-r--r--scripts/kde-devel-vim.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/kde-devel-vim.vim b/scripts/kde-devel-vim.vim
index ddf2efa8..3507c805 100644
--- a/scripts/kde-devel-vim.vim
+++ b/scripts/kde-devel-vim.vim
@@ -9,7 +9,7 @@
" should do the trick.
" Don't include these in filename completions
-set suffixes+=.lo,.o,.moc,.la,.closure,.loT
+set suffixes+=.lo,.o,.tqmoc,.la,.closure,.loT
" Search for headers here
set path=.,/usr/include,/usr/local/include,
@@ -174,7 +174,7 @@ endfunction
function! MapIdentHeader( ident )
" Qt stuff
if a:ident =~ 'Q.*Layout'
- return '<qlayout.h>'
+ return '<qtqlayout.h>'
elseif a:ident == 'QListViewItem' ||
\a:ident == 'QCheckListItem' ||
\a:ident == 'QListViewItemIterator'
@@ -228,7 +228,7 @@ function! MapIdentHeader( ident )
\a:ident == 'QComboTableItem' ||
\a:ident == 'QCheckTableItem'
return '<qtable.h>'
- elseif a:ident == 'qApp'
+ elseif a:ident == 'tqApp'
return '<qapplication.h>'
" KDE stuff
@@ -314,7 +314,7 @@ function! AddHeader()
let incomment = 1
elseif s =~ '^' . include
break
- elseif s =~ '^#include' && s !~ '\.moc"'
+ elseif s =~ '^#include' && s !~ '\.tqmoc"'
let appendpos = line
elseif codestart == 0 && s !~ '^$'
let codestart = line
@@ -383,11 +383,11 @@ endfunction
function! AddQtSyntax()
if expand( "<amatch>" ) == "cpp"
- syn keyword qtKeywords signals slots emit foreach
+ syn keyword qtKeywords Q_SIGNALS Q_SLOTS emit foreach
syn keyword qtMacros Q_OBJECT Q_WIDGET Q_PROPERTY Q_ENUMS Q_OVERRIDE Q_CLASSINFO Q_SETS SIGNAL SLOT
syn keyword qtCast qt_cast qobject_cast qvariant_cast qstyleoption_cast
syn keyword qtTypedef uchar uint ushort ulong Q_INT8 Q_UINT8 Q_INT16 Q_UINT16 Q_INT32 Q_UINT32 Q_LONG Q_ULONG Q_INT64 Q_UINT64 Q_LLONG Q_ULLONG pchar puchar pcchar qint8 quint8 qint16 quint16 qint32 quint32 qint64 quint64 qlonglong qulonglong
- syn keyword kdeKeywords k_dcop k_dcop_signals
+ syn keyword kdeKeywords k_dcop k_dcop_Q_SIGNALS
syn keyword kdeMacros K_DCOP ASYNC
syn keyword cRepeat foreach
syn keyword cRepeat forever
@@ -411,7 +411,7 @@ function! UpdateMocFiles()
while i < 80
let s = getline( i )
if s =~ '^#include ".*\.moc"'
- let s = substitute( s, '.*"\(.*\)\.moc"', '\1.h', '' )
+ let s = substitute( s, '.*"\(.*\)\.tqmoc"', '\1.h', '' )
if stridx( &complete, s ) == -1
let &complete = &complete . ',k' . s
endif