diff options
Diffstat (limited to 'src/widgets/qiconview.cpp')
-rw-r--r-- | src/widgets/qiconview.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/widgets/qiconview.cpp b/src/widgets/qiconview.cpp index b7305d038..6e801ccb0 100644 --- a/src/widgets/qiconview.cpp +++ b/src/widgets/qiconview.cpp @@ -46,7 +46,7 @@ #include "ntqiconview.h" -#ifndef QT_NO_ICONVIEW +#ifndef TQT_NO_ICONVIEW #include "ntqfontmetrics.h" #include "ntqpainter.h" @@ -164,7 +164,7 @@ static TQPixmap *get_qiv_buffer_pixmap( const TQSize &s ) return qiv_buffer_pixmap; } -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP class Q_EXPORT TQIconDragData { @@ -223,7 +223,7 @@ public: TQIconView::Arrangement arrangement; TQIconView::ResizeMode resizeMode; TQSize oldSize; -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP TQValueList<TQIconDragDataItem> iconDragData; #endif int numDragItems, cachedW, cachedH; @@ -231,7 +231,7 @@ public: TQPoint dragStart; TQString currInputString; TQIconView::ItemTextPos itemTextPos; -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR TQCursor oldCursor; #endif int cachedContentsX, cachedContentsY; @@ -313,7 +313,7 @@ static int cmpIconViewItems( const void *n1, const void *n2 ) #endif -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP class TQIconViewToolTip : public TQToolTip { public: @@ -366,7 +366,7 @@ public: TQIconViewPrivate::ItemContainer *container1, *container2; }; -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT class TQIconViewItemLineEdit : public TQTextEdit { @@ -437,7 +437,7 @@ void TQIconViewItemLineEdit::focusOutEvent( TQFocusEvent *e ) } #endif -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP /*! @@ -897,7 +897,7 @@ TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after, parent using \a text as the text and \a picture as the icon. */ -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE TQIconViewItem::TQIconViewItem( TQIconView *parent, const TQString &text, const TQPicture &picture ) : view( parent ), itemText( text ), itemIcon( 0 ) @@ -925,7 +925,7 @@ TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after, */ void TQIconViewItem::init( TQIconViewItem *after -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE , TQPicture *pic #endif ) @@ -940,10 +940,10 @@ void TQIconViewItem::init( TQIconViewItem *after visible = TRUE; selected = FALSE; selectable = TRUE; -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT renameBox = 0; #endif -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE itemPic = pic; #endif if ( view ) { @@ -963,7 +963,7 @@ void TQIconViewItem::init( TQIconViewItem *after TQIconViewItem::~TQIconViewItem() { -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT removeRenameBox(); #endif if ( view && !view->d->clearing ) @@ -971,7 +971,7 @@ TQIconViewItem::~TQIconViewItem() view = 0; if ( itemIcon && itemIcon->serialNumber() != unknown_icon->serialNumber() ) delete itemIcon; -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE delete itemPic; #endif delete d; @@ -1109,7 +1109,7 @@ void TQIconViewItem::setPixmap( const TQPixmap &icon ) \sa picture() */ -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE void TQIconViewItem::setPicture( const TQPicture &icon ) { // clear assigned pixmap if any @@ -1304,7 +1304,7 @@ TQPixmap *TQIconViewItem::pixmap() const \sa setPicture() */ -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE TQPicture *TQIconViewItem::picture() const { return itemPic; @@ -1723,7 +1723,7 @@ bool TQIconViewItem::acceptDrop( const TQMimeSource * ) const return FALSE; } -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT /*! Starts in-place renaming of an icon, if allowed. @@ -1780,7 +1780,7 @@ int TQIconViewItem::compare( TQIconViewItem *i ) const return key().localeAwareCompare( i->key() ); } -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT /*! This private function is called when the user pressed Return during in-place renaming. @@ -1864,7 +1864,7 @@ void TQIconViewItem::calcRect( const TQString &text_ ) int pw = 0; int ph = 0; -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE if ( picture() ) { TQRect br = picture()->boundingRect(); pw = br.width() + 2; @@ -1970,7 +1970,7 @@ void TQIconViewItem::paintItem( TQPainter *p, const TQColorGroup &cg ) calcTmpText(); -#ifndef QT_NO_PICTURE +#ifndef TQT_NO_PICTURE if ( picture() ) { TQPicture *pic = picture(); if ( isSelected() ) { @@ -2104,7 +2104,7 @@ void TQIconViewItem::paintFocus( TQPainter *, const TQColorGroup & ) reimplement this function. */ -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void TQIconViewItem::dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) { } @@ -2752,7 +2752,7 @@ TQIconView::TQIconView( TQWidget *parent, const char *name, WFlags f ) d->adjustTimer = new TQTimer( this, "iconview adjust timer" ); d->isIconDrag = FALSE; d->inMenuMode = FALSE; -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP d->iconDragData.clear(); #endif d->numDragItems = 0; @@ -2766,7 +2766,7 @@ TQIconView::TQIconView( TQWidget *parent, const char *name, WFlags f ) d->rearrangeEnabled = TRUE; d->itemTextPos = Bottom; d->reorderItemsWhenInsert = TRUE; -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR d->oldCursor = arrowCursor; #endif d->resortItemsWhenInsert = FALSE; @@ -2809,7 +2809,7 @@ TQIconView::TQIconView( TQWidget *parent, const char *name, WFlags f ) viewport()->setFocusProxy( this ); viewport()->setFocusPolicy( TQWidget::WheelFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP d->toolTip = new TQIconViewToolTip( viewport(), this ); #endif d->showTips = TRUE; @@ -2897,7 +2897,7 @@ TQIconView::~TQIconView() d->backBuffer = 0; delete d->fm; d->fm = 0; -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP delete d->toolTip; d->toolTip = 0; #endif @@ -4487,7 +4487,7 @@ void TQIconView::contentsMousePressEventEx( TQMouseEvent *e ) if ( item ) d->selectAnchor = item; -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT if ( d->renamingItem ) d->renamingItem->renameItem(); #endif @@ -4508,7 +4508,7 @@ void TQIconView::contentsMousePressEventEx( TQMouseEvent *e ) if ( !item->renameEnabled() ) { d->mousePressed = TRUE; -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT } else { ensureItemVisible( item ); setCurrentItem( item ); @@ -4724,7 +4724,7 @@ void TQIconView::contentsMouseMoveEvent( TQMouseEvent *e ) if ( ( d->dragStartPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) { d->mousePressed = FALSE; d->cleared = FALSE; -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP startDrag(); #endif if ( d->tmpCurrentItem ) @@ -4768,7 +4768,7 @@ void TQIconView::contentsMouseDoubleClickEvent( TQMouseEvent *e ) \reimp */ -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void TQIconView::contentsDragEnterEvent( TQDragEnterEvent *e ) { d->dragging = TRUE; @@ -5039,7 +5039,7 @@ void TQIconView::keyPressEvent( TQKeyEvent *e ) case Key_Escape: e->ignore(); break; -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT case Key_F2: { if ( d->currentItem->renameEnabled() ) { d->currentItem->renameItem(); @@ -5575,7 +5575,7 @@ void TQIconView::drawRubber( TQPainter *p ) \sa TQIconDrag */ -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP TQDragObject *TQIconView::dragObject() { if ( !d->currentItem ) @@ -5750,7 +5750,7 @@ void TQIconView::emitRenamed( TQIconViewItem *item ) void TQIconView::drawDragShapes( const TQPoint &pos ) { -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP if ( pos == TQPoint( -1, -1 ) ) return; @@ -5802,7 +5802,7 @@ void TQIconView::drawDragShapes( const TQPoint &pos ) drag data (e.g. shapes of icons which are dragged), etc. */ -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void TQIconView::initDragEnter( TQDropEvent *e ) { if ( TQIconDrag::canDecode( e ) ) { @@ -6641,7 +6641,7 @@ void TQIconView::windowActivationChange( bool oldActive ) bool TQIconView::isRenaming() const { -#ifndef QT_NO_TEXTEDIT +#ifndef TQT_NO_TEXTEDIT return d->renamingItem && d->renamingItem->renameBox; #else return FALSE; @@ -6668,4 +6668,4 @@ int TQIconView::visibleHeightSB() const return TQMAX( 0, visibleHeight() - offset ); } -#endif // QT_NO_ICONVIEW +#endif // TQT_NO_ICONVIEW |