[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/interfaces/ktexteditor
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2010-05-06 19:26:27
Message-ID: 20100506192627.B7438AC8AC () svn ! kde ! org
[Download RAW message or body]

SVN commit 1123749 by cullmann:

dhaumann: add inline bool MovingRange::onSingleLine()


 M  +11 -0     movingrange.h  


--- trunk/KDE/kdelibs/interfaces/ktexteditor/movingrange.h #1123748:1123749
@@ -376,6 +376,17 @@
       return start().column() <= column && end().column() > column;
     }
 
+    /**
+     * Check whether the start() and end() cursors of this range
+     * are on the same line.
+     *
+     * \return \e true if both the start and end positions are on the same
+     *         line, otherwise \e false
+     */
+    inline bool onSingleLine() const {
+      return start().line() == end().line();
+    }
+
     //END comparison functions
 };
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic