Add uppercase and lowercase selection actions to the text editor.

Merge-request: 256
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Steffen Imhof
2011-02-25 11:10:42 +01:00
committed by Thorbjørn Lindeijer
parent ed8dd0b031
commit b316970101
5 changed files with 76 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ namespace Internal {
class BaseTextEditorPrivate;
class TextEditorOverlay;
typedef QList<RefactorMarker> RefactorMarkers;
typedef QString (QString::*TransformationMethod)() const;
}
class ITextMarkable;
@@ -292,6 +293,9 @@ public slots:
void insertLineAbove();
void insertLineBelow();
void uppercaseSelection();
void lowercaseSelection();
void cleanWhitespace();
signals:
@@ -523,6 +527,7 @@ private:
bool camelCaseRight(QTextCursor &cursor, QTextCursor::MoveMode mode);
bool camelCaseLeft(QTextCursor &cursor, QTextCursor::MoveMode mode);
void transformSelection(Internal::TransformationMethod method);
private slots:
// auto completion