summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtextedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/widgets/qtextedit.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/qtextedit.cpp')
-rw-r--r--src/widgets/qtextedit.cpp136
1 files changed, 68 insertions, 68 deletions
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp
index 67703f34..598093fb 100644
--- a/src/widgets/qtextedit.cpp
+++ b/src/widgets/qtextedit.cpp
@@ -40,10 +40,10 @@
#include "ntqtextedit.h"
-#ifndef QT_NO_TEXTEDIT
+#ifndef TQT_NO_TEXTEDIT
// Keep this position to avoid patch rejection
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
#include "ntqinputcontext.h"
#endif
@@ -78,7 +78,7 @@
#include "private/qsyntaxhighlighter_p.h"
#include <ntqguardedptr.h>
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
#include <ntqkeysequence.h>
#define ACCEL_KEY(k) "\t" + TQString(TQKeySequence( TQt::CTRL | TQt::Key_ ## k ))
#else
@@ -100,7 +100,7 @@ public:
TQTextEditPrivate()
:preeditStart(-1),preeditLength(-1),ensureCursorVisibleInShowEvent(FALSE),
tabChangesFocus(FALSE),
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
clipboard_mode( TQClipboard::Clipboard ),
#endif
#ifdef QT_TEXTEDIT_OPTIMIZATION
@@ -123,7 +123,7 @@ public:
TQString scrollToAnchor; // used to deferr scrollToAnchor() until the show event when we are resized
TQString pressedName;
TQString onName;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
TQClipboard::Mode clipboard_mode;
#endif
TQTimer *trippleClickTimer;
@@ -137,7 +137,7 @@ public:
uint autoFormatting;
};
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
class TQRichTextDrag : public TQTextDrag
{
public:
@@ -983,7 +983,7 @@ void TQTextEdit::init()
setKeyCompression( TRUE );
viewport()->setMouseTracking( TRUE );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
cursor = new TQTextCursor( doc );
@@ -1007,7 +1007,7 @@ void TQTextEdit::init()
connect( blinkTimer, SIGNAL( timeout() ),
this, SLOT( blinkCursor() ) );
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
dragStartTimer = new TQTimer( this );
connect( dragStartTimer, SIGNAL( timeout() ),
this, SLOT( startDrag() ) );
@@ -1287,7 +1287,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e )
// Ctrl-Enter inserts a line break in rich text mode
insert( TQString( TQChar( 0x2028) ), TRUE, FALSE );
} else {
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
clearUndoRedoInfo = FALSE;
@@ -1573,7 +1573,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e )
*/
bool TQTextEdit::sendMouseEventToInputContext( TQMouseEvent *e )
{
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
if ( d->composeMode() ) {
TQTextCursor c( doc );
if ( c.place( e->pos(), doc->firstParagraph(), FALSE, FALSE, FALSE ) ) {
@@ -1843,7 +1843,7 @@ void TQTextEdit::doKeyboardAction( KeyboardAction action )
void TQTextEdit::readFormats( TQTextCursor &c1, TQTextCursor &c2, TQTextString &text, bool fillStyles )
{
-#ifndef QT_NO_DATASTREAM
+#ifndef TQT_NO_DATASTREAM
TQDataStream styleStream( undoRedoInfo.styleInformation, IO_WriteOnly );
#endif
c2.restoreState();
@@ -1852,7 +1852,7 @@ void TQTextEdit::readFormats( TQTextCursor &c1, TQTextCursor &c2, TQTextString &
if ( c1.paragraph() == c2.paragraph() ) {
for ( int i = c1.index(); i < c2.index(); ++i )
text.insert( lastIndex + i - c1.index(), c1.paragraph()->at( i ), TRUE );
-#ifndef QT_NO_DATASTREAM
+#ifndef TQT_NO_DATASTREAM
if ( fillStyles ) {
styleStream << (int) 1;
c1.paragraph()->writeStyleInformation( styleStream );
@@ -1872,7 +1872,7 @@ void TQTextEdit::readFormats( TQTextCursor &c1, TQTextCursor &c2, TQTextString &
for ( i = 0; i < c2.index(); ++i )
text.insert( i + lastIndex, c2.paragraph()->at( i ), TRUE );
-#ifndef QT_NO_DATASTREAM
+#ifndef TQT_NO_DATASTREAM
if ( fillStyles ) {
styleStream << num;
for ( TQTextParagraph *p = c1.paragraph(); --num >= 0; p = p->next() )
@@ -1948,7 +1948,7 @@ void TQTextEdit::removeSelectedText( int selNum )
if ( contentsHeight() < visibleHeight() )
viewport()->repaint( 0, contentsHeight(), visibleWidth(), visibleHeight() - contentsHeight(), TRUE );
#endif
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
updateMicroFocusHint();
@@ -2036,7 +2036,7 @@ void TQTextEdit::moveCursor( CursorAction action, bool select )
repaintChanged();
ensureCursorVisible();
drawCursor( TRUE );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -2232,7 +2232,7 @@ enum {
/*!
\reimp
*/
-#ifndef QT_NO_WHEELEVENT
+#ifndef TQT_NO_WHEELEVENT
void TQTextEdit::contentsWheelEvent( TQWheelEvent *e )
{
if ( isReadOnly() ) {
@@ -2303,7 +2303,7 @@ void TQTextEdit::contentsMousePressEvent( TQMouseEvent *e )
}
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( doc->inSelection( TQTextDocument::Standard, e->pos() ) ) {
mightStartDrag = TRUE;
drawCursor( TRUE );
@@ -2337,7 +2337,7 @@ void TQTextEdit::contentsMousePressEvent( TQMouseEvent *e )
drawCursor( TRUE );
} else {
repaintChanged();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -2347,7 +2347,7 @@ void TQTextEdit::contentsMousePressEvent( TQMouseEvent *e )
drawCursor( TRUE );
} else {
repaintChanged();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -2372,7 +2372,7 @@ void TQTextEdit::contentsMouseMoveEvent( TQMouseEvent *e )
if ( sendMouseEventToInputContext( e ) ) {
// don't return from here to avoid cursor vanishing
} else if ( mousePressed ) {
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( mightStartDrag ) {
dragStartTimer->stop();
if ( ( e->pos() - dragStartPos ).manhattanLength() > TQApplication::startDragDistance() ) {
@@ -2381,7 +2381,7 @@ void TQTextEdit::contentsMouseMoveEvent( TQMouseEvent *e )
if (guard.isNull()) // we got deleted during the dnd
return;
}
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
if ( !isReadOnly() )
viewport()->setCursor( ibeamCursor );
#endif
@@ -2393,7 +2393,7 @@ void TQTextEdit::contentsMouseMoveEvent( TQMouseEvent *e )
oldMousePos = mousePos;
}
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
if ( !isReadOnly() && !mousePressed ) {
if ( doc->hasSelection( TQTextDocument::Standard ) && doc->inSelection( TQTextDocument::Standard, e->pos() ) )
viewport()->setCursor( arrowCursor );
@@ -2406,7 +2406,7 @@ void TQTextEdit::contentsMouseMoveEvent( TQMouseEvent *e )
void TQTextEdit::copyToClipboard()
{
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
if (TQApplication::clipboard()->supportsSelection()) {
d->clipboard_mode = TQClipboard::Selection;
@@ -2444,7 +2444,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
TQTextCursor oldCursor = *cursor;
if ( scrollTimer->isActive() )
scrollTimer->stop();
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( dragStartTimer->isActive() )
dragStartTimer->stop();
if ( mightStartDrag ) {
@@ -2457,7 +2457,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
mousePressed = FALSE;
copyToClipboard();
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
else if ( e->button() == MidButton && !isReadOnly() ) {
// only do middle-click pasting on systems that have selections (ie. X11)
if (TQApplication::clipboard()->supportsSelection()) {
@@ -2479,7 +2479,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
drawCursor( TRUE );
} else {
repaintChanged();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( ibeamCursor );
#endif
}
@@ -2495,7 +2495,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
updateCurrentFormat();
inDoubleClick = FALSE;
-#ifndef QT_NO_NETWORKPROTOCOL
+#ifndef TQT_NO_NETWORKPROTOCOL
if ( ( (!onLink.isEmpty() && onLink == pressedLink)
|| (!d->onName.isEmpty() && d->onName == d->pressedName))
&& linksEnabled() && mouseWasPressed ) {
@@ -2612,7 +2612,7 @@ void TQTextEdit::contentsMouseDoubleClickEvent( TQMouseEvent * e )
emit doubleClicked( para, index );
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
/*!
\reimp
@@ -2707,7 +2707,7 @@ void TQTextEdit::contentsDropEvent( TQDropEvent *e )
doc->removeSelection( TQTextDocument::Standard );
} else {
doc->removeSelection( TQTextDocument::Standard );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -2721,7 +2721,7 @@ void TQTextEdit::contentsDropEvent( TQDropEvent *e )
if ( e->provides( "application/x-qrichtext" ) )
subType = "x-qrichtext";
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
pasteSubType( subType.latin1(), e );
#endif
// emit appropriate signals.
@@ -2744,7 +2744,7 @@ void TQTextEdit::contentsDropEvent( TQDropEvent *e )
void TQTextEdit::contentsContextMenuEvent( TQContextMenuEvent *e )
{
e->accept();
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
if ( d->composeMode() )
return;
#endif
@@ -2752,7 +2752,7 @@ void TQTextEdit::contentsContextMenuEvent( TQContextMenuEvent *e )
clearUndoRedo();
mousePressed = FALSE;
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
TQGuardedPtr<TQTextEdit> that = this;
TQGuardedPtr<TQPopupMenu> popup = createPopupMenu( e->pos() );
if ( !popup )
@@ -2769,7 +2769,7 @@ void TQTextEdit::contentsContextMenuEvent( TQContextMenuEvent *e )
clear();
else if ( r == d->id[ IdSelectAll ] ) {
selectAll();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
// if the clipboard support selections, put the newly selected text into
// the clipboard
if (TQApplication::clipboard()->supportsSelection()) {
@@ -2789,7 +2789,7 @@ void TQTextEdit::contentsContextMenuEvent( TQContextMenuEvent *e )
undo();
else if ( r == d->id[ IdRedo ] )
redo();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
else if ( r == d->id[ IdCut ] )
cut();
else if ( r == d->id[ IdCopy ] )
@@ -3287,7 +3287,7 @@ void TQTextEdit::undo()
for ( int i = 0; i < (int)doc->numSelections(); ++i )
doc->removeSelection( i );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
@@ -3338,7 +3338,7 @@ void TQTextEdit::redo()
for ( int i = 0; i < (int)doc->numSelections(); ++i )
doc->removeSelection( i );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
@@ -3372,7 +3372,7 @@ void TQTextEdit::redo()
void TQTextEdit::paste()
{
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
if ( isReadOnly() )
return;
TQString subType = "plain";
@@ -3420,7 +3420,7 @@ void TQTextEdit::repaintChanged()
paintDocument( FALSE, &p, contentsX(), contentsY(), visibleWidth(), visibleHeight() );
}
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQTextDrag *TQTextEdit::dragObject( TQWidget *parent ) const
{
if ( !doc->hasSelection( TQTextDocument::Standard ) ||
@@ -3456,14 +3456,14 @@ void TQTextEdit::cut()
void TQTextEdit::normalCopy()
{
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQTextDrag *drag = dragObject();
if ( !drag )
return;
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
TQApplication::clipboard()->setData( drag, d->clipboard_mode );
-#endif // QT_NO_MIMECLIPBOARD
-#endif // QT_NO_MIME
+#endif // TQT_NO_MIMECLIPBOARD
+#endif // TQT_NO_MIME
}
/*!
@@ -3474,7 +3474,7 @@ void TQTextEdit::normalCopy()
void TQTextEdit::copy()
{
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
# ifdef QT_TEXTEDIT_OPTIMIZATION
if ( d->optimMode && optimHasSelection() )
TQApplication::clipboard()->setText( optimSelectedText(), d->clipboard_mode );
@@ -4051,7 +4051,7 @@ bool TQTextEdit::find( const TQString &expr, bool cs, bool wo, bool forward,
return optimFind( expr, cs, wo, forward, para, index );
#endif
drawCursor( FALSE );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
TQTextCursor findcur = *cursor;
@@ -4524,7 +4524,7 @@ int TQTextEdit::alignment() const
void TQTextEdit::startDrag()
{
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
mousePressed = FALSE;
inDoubleClick = FALSE;
TQDragObject *drag = dragObject( viewport() );
@@ -4565,7 +4565,7 @@ void TQTextEdit::selectAll( bool select )
repaintChanged();
emit copyAvailable( doc->hasSelection( TQTextDocument::Standard ) );
emit selectionChanged();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -4730,7 +4730,7 @@ bool TQTextEdit::linkUnderline() const
\sa mimeSourceFactory()
*/
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
void TQTextEdit::setMimeSourceFactory( TQMimeSourceFactory* factory )
{
doc->setMimeSourceFactory( factory );
@@ -4896,7 +4896,7 @@ bool TQTextEdit::handleReadOnlyKeyEvent( TQKeyEvent *e )
case Key_F16: // Copy key on Sun keyboards
copy();
break;
-#ifndef QT_NO_NETWORKPROTOCOL
+#ifndef TQT_NO_NETWORKPROTOCOL
case Key_Return:
case Key_Enter:
case Key_Space: {
@@ -4920,7 +4920,7 @@ bool TQTextEdit::handleReadOnlyKeyEvent( TQKeyEvent *e )
}
}
}
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
}
@@ -5083,7 +5083,7 @@ void TQTextEdit::setDocument( TQTextDocument *dc )
lastFormatted = 0;
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
/*!
Pastes the text with format \a subtype from the clipboard into the
@@ -5098,7 +5098,7 @@ void TQTextEdit::setDocument( TQTextDocument *dc )
void TQTextEdit::pasteSubType( const TQCString &subtype )
{
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
TQMimeSource *m = TQApplication::clipboard()->data( d->clipboard_mode );
pasteSubType( subtype, m );
#endif
@@ -5108,7 +5108,7 @@ void TQTextEdit::pasteSubType( const TQCString &subtype )
void TQTextEdit::pasteSubType( const TQCString& subtype, TQMimeSource *m )
{
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQCString st = subtype;
if ( subtype != "x-qrichtext" )
st.prepend( "text/" );
@@ -5213,10 +5213,10 @@ void TQTextEdit::pasteSubType( const TQCString& subtype, TQMimeSource *m )
if ( !t.isEmpty() )
insert( t, FALSE, TRUE );
}
-#endif //QT_NO_MIME
+#endif //TQT_NO_MIME
}
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
/*!
Prompts the user to choose a type from a list of text types
available, then copies text from the clipboard (if there is any)
@@ -5231,11 +5231,11 @@ void TQTextEdit::pasteSpecial( const TQPoint& pt )
pasteSubType( st );
}
#endif
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQCString TQTextEdit::pickSpecial( TQMimeSource* ms, bool always_ask, const TQPoint& pt )
{
if ( ms ) {
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
TQPopupMenu popup( this, "qt_pickspecial_menu" );
TQString fmt;
int n = 0;
@@ -5273,8 +5273,8 @@ TQCString TQTextEdit::pickSpecial( TQMimeSource* ms, bool always_ask, const TQPo
}
return TQCString();
}
-#endif // QT_NO_MIME
-#endif // QT_NO_CLIPBOARD
+#endif // TQT_NO_MIME
+#endif // TQT_NO_CLIPBOARD
/*!
\enum TQTextEdit::WordWrap
@@ -5641,14 +5641,14 @@ bool TQTextEdit::getParagraphFormat( int para, TQFont *font, TQColor *color,
TQPopupMenu *TQTextEdit::createPopupMenu( const TQPoint& pos )
{
Q_UNUSED( pos )
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
TQPopupMenu *popup = new TQPopupMenu( this, "qt_edit_menu" );
if ( !isReadOnly() ) {
d->id[ IdUndo ] = popup->insertItem( tr( "&Undo" ) + ACCEL_KEY( Z ) );
d->id[ IdRedo ] = popup->insertItem( tr( "&Redo" ) + ACCEL_KEY( Y ) );
popup->insertSeparator();
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
if ( !isReadOnly() )
d->id[ IdCut ] = popup->insertItem( tr( "Cu&t" ) + ACCEL_KEY( X ) );
d->id[ IdCopy ] = popup->insertItem( tr( "&Copy" ) + ACCEL_KEY( C ) );
@@ -5665,7 +5665,7 @@ TQPopupMenu *TQTextEdit::createPopupMenu( const TQPoint& pos )
d->id[ IdSelectAll ] = popup->insertItem( tr( "Select All" ) + ACCEL_KEY( A ) );
#endif
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
TQInputContext *qic = getInputContext();
if ( qic )
qic->addMenusTo( popup );
@@ -5673,7 +5673,7 @@ TQPopupMenu *TQTextEdit::createPopupMenu( const TQPoint& pos )
popup->setItemEnabled( d->id[ IdUndo ], !isReadOnly() && doc->commands()->isUndoAvailable() );
popup->setItemEnabled( d->id[ IdRedo ], !isReadOnly() && doc->commands()->isRedoAvailable() );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
popup->setItemEnabled( d->id[ IdCut ], !isReadOnly() && doc->hasSelection( TQTextDocument::Standard, TRUE ) );
#ifdef QT_TEXTEDIT_OPTIMIZATION
popup->setItemEnabled( d->id[ IdCopy ], d->optimMode ? optimHasSelection() : doc->hasSelection( TQTextDocument::Standard, TRUE ) );
@@ -5897,7 +5897,7 @@ void TQTextEdit::setReadOnly( bool b )
if ( (bool) readonly == b )
return;
readonly = b;
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
if ( readonly )
viewport()->setCursor( arrowCursor );
else
@@ -6085,7 +6085,7 @@ void TQTextEdit::updateCursor( const TQPoint & pos )
TQTextCursor c = *cursor;
placeCursor( pos, &c, TRUE );
-#ifndef QT_NO_NETWORKPROTOCOL
+#ifndef TQT_NO_NETWORKPROTOCOL
bool insideParagRect = TRUE;
if (c.paragraph() == doc->lastParagraph()
&& c.paragraph()->rect().y() + c.paragraph()->rect().height() < pos.y())
@@ -6105,14 +6105,14 @@ void TQTextEdit::updateCursor( const TQPoint & pos )
d->onName = TQString::null;
if (!c.paragraph()->at( c.index() )->anchorHref().isEmpty() ) {
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( onLink.isEmpty() ? arrowCursor : pointingHandCursor );
#endif
TQUrl u( doc->context(), onLink, TRUE );
emitHighlighted( u.toString( FALSE, FALSE ) );
}
} else {
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
#endif
onLink = TQString::null;
@@ -6137,7 +6137,7 @@ void TQTextEdit::placeCursor( const TQPoint &pos, TQTextCursor *c )
/*! \internal */
void TQTextEdit::clipboardChanged()
{
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
// don't listen to selection changes
disconnect( TQApplication::clipboard(), SIGNAL(selectionChanged()), this, 0);
#endif
@@ -7474,4 +7474,4 @@ TQSyntaxHighlighter * TQTextEdit::syntaxHighlighter() const
return 0;
}
-#endif //QT_NO_TEXTEDIT
+#endif //TQT_NO_TEXTEDIT