summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextView.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:42:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:42:08 +0900
commit20e4a19b0d7cc800d57be50c56d69023adae4046 (patch)
tree522b0ae95b8f7e9ee59a3b405de24b2dd8180bc4 /lib/kotext/KoTextView.cpp
parentc2fdb394e63c0df50f1a38eace1077a9151374ce (diff)
downloadkoffice-20e4a19b0d7cc800d57be50c56d69023adae4046.tar.gz
koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kotext/KoTextView.cpp')
-rw-r--r--lib/kotext/KoTextView.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp
index f6cdf4c46..b7608827d 100644
--- a/lib/kotext/KoTextView.cpp
+++ b/lib/kotext/KoTextView.cpp
@@ -1122,13 +1122,13 @@ TQPtrList<TDEAction> KoTextView::dataToolActionList(TDEInstance * instance, cons
// Any tool that works on plain text is relevant
TQValueList<KDataToolInfo> tools;
- tools +=KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "text/plain", instance );
+ tools +=KDataToolInfo::query( "TQString", "text/plain", instance );
// Add tools that work on a single word if that is the case
if ( m_singleWord )
{
_singleWord = true;
- tools += KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "application/x-singleword", instance );
+ tools += KDataToolInfo::query( "TQString", "application/x-singleword", instance );
}
// Maybe one day we'll have tools that use libkotext (or qt3's qrt), to act on formatted text
tools += KDataToolInfo::query( "KoTextString", "application/x-qrichtext", instance );
@@ -1169,7 +1169,7 @@ void KoTextView::slotToolActivated( const KDataToolInfo & info, const TQString &
if ( !info.mimeTypes().contains( mimetype ) )
{
mimetype = "text/plain";
- datatype = TQSTRING_OBJECT_NAME_STRING;
+ datatype = "TQString";
}
// If unsupported (and if we have a single word indeed), try application/x-singleword
if ( !info.mimeTypes().contains( mimetype ) && m_singleWord )