From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kviewshell/selection.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kviewshell/selection.cpp') diff --git a/kviewshell/selection.cpp b/kviewshell/selection.cpp index be288fe0..83b9b5db 100644 --- a/kviewshell/selection.cpp +++ b/kviewshell/selection.cpp @@ -8,18 +8,18 @@ #include -#include -#include +#include +#include #include "selection.h" TextSelection::TextSelection() : page(PageNumber::invalidPage), - selectedText(QString::null) + selectedText(TQString::null) {} -void TextSelection::set(const PageNumber& pageNr, Q_INT32 start, Q_INT32 end, const QString& text) +void TextSelection::set(const PageNumber& pageNr, Q_INT32 start, Q_INT32 end, const TQString& text) { page = pageNr; selectedTextStart = start; @@ -27,11 +27,11 @@ void TextSelection::set(const PageNumber& pageNr, Q_INT32 start, Q_INT32 end, co if (page != 0) selectedText = text; else - selectedText = QString::null; + selectedText = TQString::null; if (page != 0) { - QApplication::clipboard()->setSelectionMode(true); - QApplication::clipboard()->setText(selectedText); + TQApplication::clipboard()->setSelectionMode(true); + TQApplication::clipboard()->setText(selectedText); } } @@ -53,14 +53,14 @@ bool TextSelection::operator!= (const TextSelection& s) const void TextSelection::copyText() const { if (!isEmpty()) { - QApplication::clipboard()->setSelectionMode(false); - QApplication::clipboard()->setText(selectedText); + TQApplication::clipboard()->setSelectionMode(false); + TQApplication::clipboard()->setText(selectedText); } } void TextSelection::clear() { - set(0, -1, -1, QString::null); + set(0, -1, -1, TQString::null); } -- cgit v1.2.3