summaryrefslogtreecommitdiffstats
path: root/kviewshell/selection.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/selection.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kviewshell/selection.cpp')
-rw-r--r--kviewshell/selection.cpp16
1 files changed, 8 insertions, 8 deletions
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());
}