diff options
Diffstat (limited to 'tqtinterface/qt4/src/iconview/tqiconview.cpp')
-rw-r--r-- | tqtinterface/qt4/src/iconview/tqiconview.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/tqtinterface/qt4/src/iconview/tqiconview.cpp b/tqtinterface/qt4/src/iconview/tqiconview.cpp index d1e1e14..586e5ff 100644 --- a/tqtinterface/qt4/src/iconview/tqiconview.cpp +++ b/tqtinterface/qt4/src/iconview/tqiconview.cpp @@ -380,7 +380,7 @@ static int cmpIconViewItems( const void *n1, const void *n2 ) class TQIconViewToolTip : public TQToolTip { public: - TQIconViewToolTip( TQWidget *tqparent, TQIconView *iv ); + TQIconViewToolTip( TQWidget *parent, TQIconView *iv ); void maybeTip( const TQPoint &pos ); @@ -388,8 +388,8 @@ private: TQIconView *view; }; -TQIconViewToolTip::TQIconViewToolTip( TQWidget *tqparent, TQIconView *iv ) - : TQToolTip( tqparent ), view( iv ) +TQIconViewToolTip::TQIconViewToolTip( TQWidget *parent, TQIconView *iv ) + : TQToolTip( parent ), view( iv ) { } @@ -431,7 +431,7 @@ class TQIconViewItemLineEdit : public TQTextEdit friend class TQIconViewItem; public: - TQIconViewItemLineEdit( const TQString &text, TQWidget *tqparent, TQIconViewItem *theItem, const char* name=0 ); + TQIconViewItemLineEdit( const TQString &text, TQWidget *parent, TQIconViewItem *theItem, const char* name=0 ); protected: void keyPressEvent( TQKeyEvent *e ); @@ -448,9 +448,9 @@ private: }; -TQIconViewItemLineEdit::TQIconViewItemLineEdit( const TQString &text, TQWidget *tqparent, +TQIconViewItemLineEdit::TQIconViewItemLineEdit( const TQString &text, TQWidget *parent, TQIconViewItem *theItem, const char *name ) - : TQTextEdit( tqparent, name ), item( theItem ), startText( text ) + : TQTextEdit( parent, name ), item( theItem ), startText( text ) { setFrameStyle( TQFrame::Plain | TQFrame::Box ); setLineWidth( 1 ); @@ -874,24 +874,24 @@ void TQIconDragData::setTextRect( const TQRect &r ) */ /*! - Constructs a TQIconViewItem and inserts it into icon view \a tqparent + Constructs a TQIconViewItem and inserts it into icon view \a parent with no text and a default icon. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent ) - : view( tqparent ), itemText(), itemIcon( unknown_icon ) +TQIconViewItem::TQIconViewItem( TQIconView *parent ) + : view( parent ), itemText(), itemIcon( unknown_icon ) { init(); } /*! Constructs a TQIconViewItem and inserts it into the icon view \a - tqparent with no text and a default icon, after the icon view item + parent with no text and a default icon, after the icon view item \a after. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, TQIconViewItem *after ) - : view( tqparent ), itemText(), itemIcon( unknown_icon ), +TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after ) + : view( parent ), itemText(), itemIcon( unknown_icon ), prev( 0 ), next( 0 ) { init( after ); @@ -899,36 +899,36 @@ TQIconViewItem::TQIconViewItem( TQIconView *tqparent, TQIconViewItem *after ) /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and a default icon. + parent using \a text as the text and a default icon. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, const TQString &text ) - : view( tqparent ), itemText( text ), itemIcon( unknown_icon ) +TQIconViewItem::TQIconViewItem( TQIconView *parent, const TQString &text ) + : view( parent ), itemText( text ), itemIcon( unknown_icon ) { init( 0 ); } /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and a default icon, after the + parent using \a text as the text and a default icon, after the icon view item \a after. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, TQIconViewItem *after, +TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after, const TQString &text ) - : view( tqparent ), itemText( text ), itemIcon( unknown_icon ) + : view( parent ), itemText( text ), itemIcon( unknown_icon ) { init( after ); } /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and \a icon as the icon. + parent using \a text as the text and \a icon as the icon. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, const TQString &text, +TQIconViewItem::TQIconViewItem( TQIconView *parent, const TQString &text, const TQPixmap &icon ) - : view( tqparent ), + : view( parent ), itemText( text ), itemIcon( new TQPixmap( icon ) ) { init( 0 ); @@ -937,41 +937,41 @@ TQIconViewItem::TQIconViewItem( TQIconView *tqparent, const TQString &text, /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and \a icon as the icon, after + parent using \a text as the text and \a icon as the icon, after the icon view item \a after. \sa setPixmap() */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, TQIconViewItem *after, +TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after, const TQString &text, const TQPixmap &icon ) - : view( tqparent ), itemText( text ), itemIcon( new TQPixmap( icon ) ) + : view( parent ), itemText( text ), itemIcon( new TQPixmap( icon ) ) { init( after ); } /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and \a picture as the icon. + parent using \a text as the text and \a picture as the icon. */ #ifndef TQT_NO_PICTURE -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, const TQString &text, +TQIconViewItem::TQIconViewItem( TQIconView *parent, const TQString &text, const TQPicture &picture ) - : view( tqparent ), itemText( text ), itemIcon( 0 ) + : view( parent ), itemText( text ), itemIcon( 0 ) { init( 0, new TQPicture( picture ) ); } /*! Constructs an icon view item and inserts it into the icon view \a - tqparent using \a text as the text and \a picture as the icon, after + parent using \a text as the text and \a picture as the icon, after the icon view item \a after. */ -TQIconViewItem::TQIconViewItem( TQIconView *tqparent, TQIconViewItem *after, +TQIconViewItem::TQIconViewItem( TQIconView *parent, TQIconViewItem *after, const TQString &text, const TQPicture &picture ) - : view( tqparent ), itemText( text ), itemIcon( 0 ) + : view( parent ), itemText( text ), itemIcon( 0 ) { init( after, new TQPicture( picture ) ); } @@ -1015,7 +1015,7 @@ void TQIconViewItem::init( TQIconViewItem *after } /*! - Destroys the icon view item and tells the tqparent icon view that + Destroys the icon view item and tells the parent icon view that the item has been destroyed. */ @@ -1400,7 +1400,7 @@ bool TQIconViewItem::dropEnabled() const } /*! - Returns a pointer to this item's icon view tqparent. + Returns a pointer to this item's icon view parent. */ TQIconView *TQIconViewItem::iconView() const @@ -2066,13 +2066,13 @@ void TQIconViewItem::paintItem( TQPainter *p, const TQColorGroup &cg ) TQPixmap *pix = pixmap() ? pixmap() : unknown_icon; if ( pix && !pix->isNull() ) { TQPixmap *buffer = get_qiv_buffer_pixmap( pix->size() ); - TQBitmap tqmask = view->tqmask( pix ); + TQBitmap mask = view->mask( pix ); TQPainter p2( buffer ); p2.fillRect( pix->rect(), white ); p2.drawPixmap( 0, 0, *pix ); p2.end(); - buffer->setMask( tqmask ); + buffer->setMask( mask ); p2.begin( buffer ); #if defined(TQ_WS_X11) p2.fillRect( pix->rect(), TQBrush( cg.highlight(), Qt::Dense4Pattern) ); @@ -2317,7 +2317,7 @@ void TQIconViewItem::checkRect() The simplest way to create a TQIconView is to create a TQIconView object and create some TQIconViewItems with the TQIconView as their - tqparent, set the icon view's tqgeometry and show it. + parent, set the icon view's tqgeometry and show it. For example: \code TQIconView *iv = new TQIconView( this ); @@ -2768,12 +2768,12 @@ void TQIconViewItem::checkRect() */ /*! - Constructs an empty icon view called \a name, with tqparent \a - tqparent and using the widget flags \a f. + Constructs an empty icon view called \a name, with parent \a + parent and using the widget flags \a f. */ -TQIconView::TQIconView( TQWidget *tqparent, const char *name, WFlags f ) - : TQScrollView( tqparent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase | f) ) +TQIconView::TQIconView( TQWidget *parent, const char *name, WFlags f ) + : TQScrollView( parent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase | f) ) { if ( !unknown_icon ) { unknown_icon = new TQPixmap( (const char **)unknown_xpm ); @@ -6439,7 +6439,7 @@ void TQIconView::handleItemChange( TQIconViewItem *old, bool shift, } } -TQBitmap TQIconView::tqmask( TQPixmap *pix ) const +TQBitmap TQIconView::mask( TQPixmap *pix ) const { TQPixmap m; if ( d->maskCache.find( TQT_TQSTRING(TQString::number( pix->serialNumber() )), m ) ) |