From ccbc1c3572fd0e26480c1432fff55d2909545538 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 14:55:59 +0900 Subject: Rename icon nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/simple_dd-example.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'doc/html/simple_dd-example.html') diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 56cfd3a0..63e2a8c8 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -52,7 +52,7 @@ functionality. #include <ntqcursor.h> #include <ntqsplitter.h> #include <ntqlistbox.h> -#include <ntqiconview.h> +#include <tqiconview.h> #include <ntqpixmap.h> class TQDragEnterEvent; @@ -74,25 +74,25 @@ private: }; -class DDIconViewItem : public TQIconViewItem +class DDIconViewItem : public TQIconViewItem { public: - DDIconViewItem( TQIconView *parent, const TQString& text, const TQPixmap& icon ) : - TQIconViewItem( parent, text, icon ) {} - DDIconViewItem( TQIconView *parent, const TQString &text ) : - TQIconViewItem( parent, text ) {} + DDIconViewItem( TQIconView *parent, const TQString& text, const TQPixmap& icon ) : + TQIconViewItem( parent, text, icon ) {} + DDIconViewItem( TQIconView *parent, const TQString &text ) : + TQIconViewItem( parent, text ) {} // High-level drag and drop bool acceptDrop( const TQMimeSource *mime ) const; void dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ); }; -class DDIconView : public TQIconView +class DDIconView : public TQIconView { TQ_OBJECT public: DDIconView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : - TQIconView( parent, name, f ) {} + TQIconView( parent, name, f ) {} // High-level drag and drop TQDragObject *dragObject(); public slots: @@ -225,7 +225,7 @@ const char* green_icon[]={ // IconViewIcon -- high level drag and drop -bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const +bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const { if ( mime->provides( "text/plain" ) ) return TRUE; @@ -233,7 +233,7 @@ const char* green_icon[]={ } -void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) +void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; @@ -244,9 +244,9 @@ const char* green_icon[]={ // IconView -- high level drag and drop -TQDragObject *DDIconView::dragObject() +TQDragObject *DDIconView::dragObject() { - return new TQTextDrag( currentItem()->text(), this ); + return new TQTextDrag( currentItem()->text(), this ); } void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) @@ -255,7 +255,7 @@ void DDIconView::slotNewItem( TQDro if ( TQTextDrag::decode( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( TRUE ); } } @@ -275,17 +275,17 @@ int main( int argc, char *argv[] ) // Set up the connection so that we can drop items into the icon view TQObject::connect( - iv, TQ_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), + iv, TQ_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), iv, TQ_SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); // Populate the TQIconView with icons DDIconViewItem *item; item = new DDIconViewItem( iv, "Red", TQPixmap( red_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( TRUE ); item = new DDIconViewItem( iv, "Green", TQPixmap( green_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( TRUE ); item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( TRUE ); return app.exec(); } -- cgit v1.2.1