forked from qt-creator/qt-creator
TextEditor: use cursor to comment selection
preparation for multi cursor support Change-Id: I57d318ee325e3667a6377a972a0eda66e43d0349 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "utils_global.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QTextCursor>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QPlainTextEdit;
|
||||
@@ -57,8 +58,8 @@ public:
|
||||
};
|
||||
|
||||
QTCREATOR_UTILS_EXPORT
|
||||
void unCommentSelection(QPlainTextEdit *edit,
|
||||
const CommentDefinition &definiton = CommentDefinition(),
|
||||
bool preferSingleLine = false);
|
||||
QTextCursor unCommentSelection(const QTextCursor &cursor,
|
||||
const CommentDefinition &definiton = CommentDefinition(),
|
||||
bool preferSingleLine = false);
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user