From 99a2774ca6f1cab334de5d43fe36fc44ae889a4c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 12 Jun 2011 01:36:19 +0000 Subject: 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 --- scripts/kde-devel-vim.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'scripts/kde-devel-vim.vim') 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 '' + return '' elseif a:ident == 'QListViewItem' || \a:ident == 'QCheckListItem' || \a:ident == 'QListViewItemIterator' @@ -228,7 +228,7 @@ function! MapIdentHeader( ident ) \a:ident == 'QComboTableItem' || \a:ident == 'QCheckTableItem' return '' - elseif a:ident == 'qApp' + elseif a:ident == 'tqApp' return '' " 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( "" ) == "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 -- cgit v1.2.1