[rkward-cvs] SF.net SVN: rkward:[3478] trunk/rkward/rkward/windows/rkcommandeditorwindow .cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Mar 14 10:05:17 UTC 2011


Revision: 3478
          http://rkward.svn.sourceforge.net/rkward/?rev=3478&view=rev
Author:   tfry
Date:     2011-03-14 10:05:16 +0000 (Mon, 14 Mar 2011)

Log Message:
-----------
Add version switch also in definition.

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp

Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2011-03-14 08:48:58 UTC (rev 3477)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2011-03-14 10:05:16 UTC (rev 3478)
@@ -534,6 +534,7 @@
 	return RKCommonFunctions::getCurrentSymbol (current_line, cursor_pos, false);
 }
 
+#if KDE_IS_VERSION(4,2,0)
 KTextEditor::Range RKCodeCompletionModel::completionRange (KTextEditor::View *view, const KTextEditor::Cursor &position) {
 	QString current_line = view->document ()->line (position.line ());
 	int start;
@@ -541,6 +542,7 @@
 	RKCommonFunctions::getCurrentSymbolOffset (current_line, position.column (), false, &start, &end);
 	return KTextEditor::Range (position.line (), start, position.line (), end);
 }
+#endif
 
 void RKCommandEditorWindow::tryCompletion () {
 	// TODO: merge this with RKConsole::doTabCompletion () somehow


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list