summaryrefslogtreecommitdiffstats
path: root/kviewshell/selection.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kviewshell/selection.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/selection.cpp')
-rw-r--r--kviewshell/selection.cpp20
1 files changed, 10 insertions, 10 deletions
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 <config.h>
-#include <qapplication.h>
-#include <qclipboard.h>
+#include <tqapplication.h>
+#include <tqclipboard.h>
#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);
}