summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextView.cpp')
-rw-r--r--lib/kotext/KoTextView.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp
index 6211e1d8..9733e123 100644
--- a/lib/kotext/KoTextView.cpp
+++ b/lib/kotext/KoTextView.cpp
@@ -291,7 +291,7 @@ void KoTextView::handleKeyPressEvent( TQKeyEvent * e, TQWidget *widget, const TQ
break;
}
default: {
- //kdDebug(32500) << "KoTextView::keyPressEvent ascii=" << e->ascii() << " text=" << e->text()[0].tqunicode() << " state=" << e->state() << endl;
+ //kdDebug(32500) << "KoTextView::keyPressEvent ascii=" << e->ascii() << " text=" << e->text()[0].unicode() << " state=" << e->state() << endl;
if (e->key() == TQt::Key_Tab)
{
if (doToolTipCompletion(m_cursor, m_cursor->parag(), m_cursor->index() - 1, e->key()) )
@@ -331,7 +331,7 @@ void KoTextView::handleKeyPressEvent( TQKeyEvent * e, TQWidget *widget, const TQ
// Bidi support: need to reverse mirrored chars (e.g. parenthesis)
KoTextParag *p = m_cursor->parag();
if ( p && p->string() && p->string()->isRightToLeft() ) {
- TQChar *c = (TQChar *)text.tqunicode();
+ TQChar *c = (TQChar *)text.unicode();
int l = text.length();
while( l-- ) {
if ( c->mirrored() )
@@ -643,9 +643,9 @@ KoTextCursor KoTextView::selectParagUnderCursor( const KoTextCursor& cursor, int
{
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::tqclipboard()->setSelectionMode( true );
+ TQApplication::clipboard()->setSelectionMode( true );
emit copy();
- TQApplication::tqclipboard()->setSelectionMode( false );
+ TQApplication::clipboard()->setSelectionMode( false );
}
return c2;
}
@@ -808,9 +808,9 @@ void KoTextView::handleMouseReleaseEvent()
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::tqclipboard()->setSelectionMode( true );
+ TQApplication::clipboard()->setSelectionMode( true );
emit copy();
- TQApplication::tqclipboard()->setSelectionMode( false );
+ TQApplication::clipboard()->setSelectionMode( false );
}
inDoubleClick = FALSE;
@@ -831,9 +831,9 @@ void KoTextView::handleMouseDoubleClickEvent( TQMouseEvent*ev, const TQPoint& i
*m_cursor = selectWordUnderCursor( *m_cursor );
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::tqclipboard()->setSelectionMode( true );
+ TQApplication::clipboard()->setSelectionMode( true );
emit copy();
- TQApplication::tqclipboard()->setSelectionMode( false );
+ TQApplication::clipboard()->setSelectionMode( false );
possibleTripleClick=true;
@@ -1450,10 +1450,10 @@ void KoTextView::copyTextOfComment()
{
KURL::List lst;
lst.append( var->note() );
- TQApplication::tqclipboard()->setSelectionMode(true);
- TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
- TQApplication::tqclipboard()->setSelectionMode(false);
- TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::clipboard()->setSelectionMode(true);
+ TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::clipboard()->setSelectionMode(false);
+ TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
}
}
@@ -1476,13 +1476,13 @@ KoParagStyle * KoTextView::createStyleFromSelection(const TQString & name)
if ( textDocument()->hasSelection( KoTextDocument::Standard ) )
cursor = textDocument()->selectionStartCursor( KoTextDocument::Standard );
KoParagStyle * style = new KoParagStyle (name);
- KoParagLayout tqlayout(cursor.parag()->paragLayout());
- tqlayout.style = style;
+ KoParagLayout layout(cursor.parag()->paragLayout());
+ layout.style = style;
style->setFollowingStyle( style );
style->format() = *(cursor.parag()->at(cursor.index())->format());
- style->paragLayout() = tqlayout;
- // Select this new style - hmm only the parag tqlayout, we don't want to erase any text-formatting
+ style->paragLayout() = layout;
+ // Select this new style - hmm only the parag layout, we don't want to erase any text-formatting
cursor.parag()->setParagLayout( style->paragLayout() );
return style;
}
@@ -1515,10 +1515,10 @@ void KoTextView::copyLink()
{
KURL::List lst;
lst.append( var->url() );
- TQApplication::tqclipboard()->setSelectionMode(true);
- TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
- TQApplication::tqclipboard()->setSelectionMode(false);
- TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::clipboard()->setSelectionMode(true);
+ TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::clipboard()->setSelectionMode(false);
+ TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
}
}