summaryrefslogtreecommitdiffstats
path: root/src/attic
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
committerMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/attic
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/attic')
-rw-r--r--src/attic/qtmultilineedit.cpp64
-rw-r--r--src/attic/qtmultilineedit.h14
-rw-r--r--src/attic/qttableview.cpp10
-rw-r--r--src/attic/qttableview.h4
4 files changed, 46 insertions, 46 deletions
diff --git a/src/attic/qtmultilineedit.cpp b/src/attic/qtmultilineedit.cpp
index 27a65e4f5..0f52e6cf6 100644
--- a/src/attic/qtmultilineedit.cpp
+++ b/src/attic/qtmultilineedit.cpp
@@ -12,7 +12,7 @@
**********************************************************************/
#include "qtmultilineedit.h"
-#ifndef QT_NO_QTMULTILINEEDIT
+#ifndef TQT_NO_QTMULTILINEEDIT
#include "ntqpainter.h"
#include "ntqscrollbar.h"
#include "ntqclipboard.h"
@@ -320,7 +320,7 @@ static const char * const arrow_xpm[] = {
enum {
IdUndo,
IdRedo,
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
IdCut,
IdCopy,
IdPaste,
@@ -396,7 +396,7 @@ struct TQtMultiLineData
TQPixmap arrow;
TQPoint dnd_startpos;
TQTimer *blinkTimer, *scrollTimer;
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
TQTimer *dnd_timer;
#endif
};
@@ -584,7 +584,7 @@ TQtMultiLineEdit::TQtMultiLineEdit( TQWidget *parent , const char *name )
setWFlags( WResizeNoErase );
setKeyCompression( TRUE );
setFocusPolicy( WheelFocus );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( ibeamCursor );
verticalScrollBar()->setCursor( arrowCursor );
horizontalScrollBar()->setCursor( arrowCursor );
@@ -607,7 +607,7 @@ TQtMultiLineEdit::TQtMultiLineEdit( TQWidget *parent , const char *name )
d->scrollTimer = new TQTimer( this );
connect( d->scrollTimer, SIGNAL( timeout() ),
this, SLOT( scrollTimerTimeout() ) );
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
d->dnd_timer = new TQTimer( this );
connect( d->dnd_timer, SIGNAL( timeout() ),
this, SLOT( dndTimeout() ) );
@@ -691,7 +691,7 @@ void TQtMultiLineEdit::setReadOnly( bool on )
{
if ( readOnly != on ) {
readOnly = on;
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( on ? arrowCursor : ibeamCursor );
#endif
}
@@ -839,7 +839,7 @@ void TQtMultiLineEdit::paintCell( TQPainter *painter, int row, int )
cXPos + 2, cYPos + fm.height() - 2);
*/
-#ifndef QT_NO_TRANSFORMATIONS
+#ifndef TQT_NO_TRANSFORMATIONS
// TODO: set it other times, eg. when scrollbar moves view
TQWMatrix wm = painter->worldMatrix();
setMicroFocusHint( int(wm.dx()+cXPos),
@@ -933,7 +933,7 @@ void TQtMultiLineEdit::timerEvent( TQTimerEvent * )
// ############ Remove in 3.0!!!!!!!!
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void TQtMultiLineEdit::doDrag()
{
if ( d->dnd_timer ) {
@@ -1243,7 +1243,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_Prior:
setTopCell( TQMAX( topCell() - pageSize, 0 ) );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_C:
if ( echoMode() == Normal && (e->state()&ControlButton) )
copy();
@@ -1287,7 +1287,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_B:
cursorLeft( e->state() & ShiftButton );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_C:
if ( echoMode() == Normal )
copy();
@@ -1333,7 +1333,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_P:
cursorUp( e->state() & ShiftButton );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_V:
paste();
break;
@@ -1411,7 +1411,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_F14: // Undo key on Sun keyboards
undo();
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_F16: // Copy key on Sun keyboards
if ( echoMode() == Normal )
copy();
@@ -2128,11 +2128,11 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
id[ IdUndo ] = popup->insertItem( tr( "Undo" ) );
id[ IdRedo ] = popup->insertItem( tr( "Redo" ) );
popup->insertSeparator();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
id[ IdCut ] = popup->insertItem( tr( "Cut" ) );
id[ IdCopy ] = popup->insertItem( tr( "Copy" ) );
id[ IdPaste ] = popup->insertItem( tr( "Paste" ) );
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
id[ IdPasteSpecial ] = popup->insertItem( tr( "Paste special..." ) );
#endif
#endif
@@ -2143,13 +2143,13 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
!this->d->undoList.isEmpty() );
popup->setItemEnabled( id[ IdRedo ],
!this->d->redoList.isEmpty() );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
popup->setItemEnabled( id[ IdCut ],
!isReadOnly() && hasMarkedText() );
popup->setItemEnabled( id[ IdCopy ], hasMarkedText() );
popup->setItemEnabled( id[ IdPaste ],
!isReadOnly() && (bool)TQApplication::clipboard()->text().length() );
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
// Any non-plain types?
TQMimeSource* ms = TQApplication::clipboard()->data();
bool ps = FALSE;
@@ -2179,14 +2179,14 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
undo();
else if ( r == id[ IdRedo ] )
redo();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
else if ( r == id[ IdCut ] )
cut();
else if ( r == id[ IdCopy ] )
copy();
else if ( r == id[ IdPaste ] )
paste();
-# ifndef QT_NO_MIMECLIPBOARD
+# ifndef TQT_NO_MIMECLIPBOARD
else if ( r == id[ IdPasteSpecial ] )
pasteSpecial(TQCursor::pos());
# endif
@@ -2211,7 +2211,7 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
return;
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if (
inMark(newX, newY) // Click on highlighted text
&& echoMode() == Normal // No DnD of passwords, etc.
@@ -2299,7 +2299,7 @@ void TQtMultiLineEdit::stopAutoScroll()
*/
void TQtMultiLineEdit::mouseMoveEvent( TQMouseEvent *e )
{
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
d->dnd_timer->stop();
if ( d->dnd_primed &&
( d->dnd_startpos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) {
@@ -2360,7 +2360,7 @@ void TQtMultiLineEdit::extendSelectionWord( int &newX, int&newY)
void TQtMultiLineEdit::mouseReleaseEvent( TQMouseEvent *e )
{
stopAutoScroll();
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( d->dnd_timer->isActive() ) {
d->dnd_timer->stop();
d->dnd_primed = FALSE;
@@ -2374,7 +2374,7 @@ void TQtMultiLineEdit::mouseReleaseEvent( TQMouseEvent *e )
if ( markAnchorY == markDragY && markAnchorX == markDragX )
turnMark( FALSE );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
#if defined(_WS_X11_)
else if ( echoMode() == Normal )
copy();
@@ -2419,7 +2419,7 @@ void TQtMultiLineEdit::mouseDoubleClickEvent( TQMouseEvent *m )
}
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
/*
\reimp
@@ -2510,7 +2510,7 @@ void TQtMultiLineEdit::dropEvent( TQDropEvent* event )
}
}
-#endif // QT_NO_DRAGANDDROP
+#endif // TQT_NO_DRAGANDDROP
/*
@@ -2644,7 +2644,7 @@ void TQtMultiLineEdit::setBottomCell( int line )
setYOffset( TQMAX( newYPos, 0 ) );
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
/*
Copies text in MIME subtype \a subtype from the clipboard onto the current
@@ -2692,7 +2692,7 @@ void TQtMultiLineEdit::paste()
pasteSubType("plain");
}
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
/*
Prompts the user for a type from a list of text types available,
Then copies text from the clipboard onto the current cursor position.
@@ -2705,7 +2705,7 @@ void TQtMultiLineEdit::pasteSpecial(const TQPoint& pt)
pasteSubType(st);
}
#endif
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQCString TQtMultiLineEdit::pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint& pt)
{
if ( ms ) {
@@ -2734,8 +2734,8 @@ TQCString TQtMultiLineEdit::pickSpecial(TQMimeSource* ms, bool always_ask, const
}
return TQCString();
}
-#endif // QT_NO_MIME
-#endif // QT_NO_CLIPBOARD
+#endif // TQT_NO_MIME
+#endif // TQT_NO_CLIPBOARD
/*
@@ -2843,7 +2843,7 @@ void TQtMultiLineEdit::markWord( int posx, int posy )
markDragY = posy;
turnMark( markDragX != markAnchorX || markDragY != markAnchorY );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
#if defined(_WS_X11_)
if ( echoMode() == Normal )
copy();
@@ -2865,7 +2865,7 @@ int TQtMultiLineEdit::charClass( TQChar ch )
else return 3;
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
/*
Copies the marked text to the clipboard. Will copy only
if echoMode() is Normal.
@@ -4156,7 +4156,7 @@ void TQtMultiLineEdit::scrollTimerTimeout()
void TQtMultiLineEdit::dndTimeout()
{
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
doDrag();
#endif
}
diff --git a/src/attic/qtmultilineedit.h b/src/attic/qtmultilineedit.h
index da12cb543..10573e3dd 100644
--- a/src/attic/qtmultilineedit.h
+++ b/src/attic/qtmultilineedit.h
@@ -20,7 +20,7 @@
#include "ntqptrlist.h"
#endif // QT_H
-#ifndef QT_NO_QTMULTILINEEDIT
+#ifndef TQT_NO_QTMULTILINEEDIT
struct TQtMultiLineData;
class TQtMultiLineEditCommand;
@@ -149,7 +149,7 @@ public slots:
void append( const TQString &);
void deselect();
void selectAll();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
void paste();
void pasteSubType(const TQCString& subtype);
void copyText() const;
@@ -185,7 +185,7 @@ protected:
bool focusNextPrevChild( bool );
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void dragMoveEvent( TQDragMoveEvent* );
void dragEnterEvent( TQDragEnterEvent * );
void dropEvent( TQDropEvent* );
@@ -232,10 +232,10 @@ private slots:
void dndTimeout();
private:
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQCString pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint&);
#endif
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
void pasteSpecial(const TQPoint&);
#endif
struct TQtMultiLineEditRow {
@@ -291,7 +291,7 @@ private:
bool afterMark( int posx, int posy ) const;
int setNumRowsAndTruncate();
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void doDrag();
#endif
void startAutoScroll();
@@ -358,6 +358,6 @@ inline int TQtMultiLineEdit::numLines() const
return contents->count();
}
-#endif // QT_NO_QTMULTILINEEDIT
+#endif // TQT_NO_QTMULTILINEEDIT
#endif // TQTMULTILINEDIT_H
diff --git a/src/attic/qttableview.cpp b/src/attic/qttableview.cpp
index 9f68ec4b8..ea55a9ff6 100644
--- a/src/attic/qttableview.cpp
+++ b/src/attic/qttableview.cpp
@@ -12,7 +12,7 @@
**********************************************************************/
#include "qttableview.h"
-#ifndef QT_NO_QTTABLEVIEW
+#ifndef TQT_NO_QTTABLEVIEW
#include "ntqscrollbar.h"
#include "ntqpainter.h"
#include "ntqdrawutil.h"
@@ -1313,7 +1313,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
TQRect winR = viewRect();
TQRect cellR;
TQRect cellUR;
-#ifndef QT_NO_TRANSFORMATIONS
+#ifndef TQT_NO_TRANSFORMATIONS
TQWMatrix matrix;
#endif
@@ -1337,7 +1337,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
if ( eraseInPaint )
paint.eraseRect( cellUR );
-#ifndef QT_NO_TRANSFORMATIONS
+#ifndef TQT_NO_TRANSFORMATIONS
matrix.translate( xPos, yPos );
paint.setWorldMatrix( matrix );
if ( testTableFlags(Tbl_clipCellPainting) ||
@@ -1438,7 +1438,7 @@ TQScrollBar *TQtTableView::verticalScrollBar() const
TQtTableView *that = (TQtTableView*)this; // semantic const
if ( !vScrollBar ) {
TQScrollBar *sb = new TQScrollBar( TQScrollBar::Vertical, that );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
sb->resize( sb->sizeHint() ); // height is irrelevant
@@ -1469,7 +1469,7 @@ TQScrollBar *TQtTableView::horizontalScrollBar() const
TQtTableView *that = (TQtTableView*)this; // semantic const
if ( !hScrollBar ) {
TQScrollBar *sb = new TQScrollBar( TQScrollBar::Horizontal, that );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
sb->resize( sb->sizeHint() ); // width is irrelevant
diff --git a/src/attic/qttableview.h b/src/attic/qttableview.h
index 43468c83a..b48f44e1b 100644
--- a/src/attic/qttableview.h
+++ b/src/attic/qttableview.h
@@ -18,7 +18,7 @@
#include "ntqframe.h"
#endif // QT_H
-#ifndef QT_NO_QTTABLEVIEW
+#ifndef TQT_NO_QTTABLEVIEW
class TQScrollBar;
class TQCornerSquare;
@@ -245,6 +245,6 @@ inline void TQtTableView::updateScrollBars()
{ updateScrollBars( 0 ); }
-#endif // QT_NO_QTTABLEVIEW
+#endif // TQT_NO_QTTABLEVIEW
#endif // TQTTABLEVIEW_H