From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kviewshell/selection.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kviewshell/selection.cpp') diff --git a/kviewshell/selection.cpp b/kviewshell/selection.cpp index 83b9b5db..50edb80f 100644 --- a/kviewshell/selection.cpp +++ b/kviewshell/selection.cpp @@ -15,11 +15,11 @@ TextSelection::TextSelection() : page(PageNumber::invalidPage), - selectedText(TQString::null) + selectedText(TQString()) {} -void TextSelection::set(const PageNumber& pageNr, Q_INT32 start, Q_INT32 end, const TQString& text) +void TextSelection::set(const PageNumber& pageNr, TQ_INT32 start, TQ_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 = TQString::null; + selectedText = TQString(); if (page != 0) { - TQApplication::clipboard()->setSelectionMode(true); - TQApplication::clipboard()->setText(selectedText); + TQApplication::tqclipboard()->setSelectionMode(true); + TQApplication::tqclipboard()->setText(selectedText); } } @@ -53,14 +53,14 @@ bool TextSelection::operator!= (const TextSelection& s) const void TextSelection::copyText() const { if (!isEmpty()) { - TQApplication::clipboard()->setSelectionMode(false); - TQApplication::clipboard()->setText(selectedText); + TQApplication::tqclipboard()->setSelectionMode(false); + TQApplication::tqclipboard()->setText(selectedText); } } void TextSelection::clear() { - set(0, -1, -1, TQString::null); + set(0, -1, -1, TQString()); } -- cgit v1.2.1