diff options
Diffstat (limited to 'doc/html/simple_dd-example.html')
-rw-r--r-- | doc/html/simple_dd-example.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 56cfd3a02..63e2a8c8f 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -52,7 +52,7 @@ functionality. #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="qsplitter-h.html">ntqsplitter.h</a>> #include <<a href="qlistbox-h.html">ntqlistbox.h</a>> -#include <<a href="qiconview-h.html">ntqiconview.h</a>> +#include <<a href="tqiconview-h.html">tqiconview.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> class TQDragEnterEvent; @@ -74,25 +74,25 @@ private: }; -class DDIconViewItem : public <a href="qiconviewitem.html">TQIconViewItem</a> +class DDIconViewItem : public <a href="tqiconviewitem.html">TQIconViewItem</a> { public: - DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="tqstring.html">TQString</a>& text, const <a href="ntqpixmap.html">TQPixmap</a>& icon ) : - <a href="qiconviewitem.html">TQIconViewItem</a>( parent, text, icon ) {} - DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="tqstring.html">TQString</a> &text ) : - <a href="qiconviewitem.html">TQIconViewItem</a>( parent, text ) {} + DDIconViewItem( <a href="tqiconview.html">TQIconView</a> *parent, const <a href="tqstring.html">TQString</a>& text, const <a href="ntqpixmap.html">TQPixmap</a>& icon ) : + <a href="tqiconviewitem.html">TQIconViewItem</a>( parent, text, icon ) {} + DDIconViewItem( <a href="tqiconview.html">TQIconView</a> *parent, const <a href="tqstring.html">TQString</a> &text ) : + <a href="tqiconviewitem.html">TQIconViewItem</a>( parent, text ) {} // High-level drag and drop bool acceptDrop( const <a href="qmimesource.html">TQMimeSource</a> *mime ) const; void dropped( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>& ); }; -class DDIconView : public <a href="ntqiconview.html">TQIconView</a> +class DDIconView : public <a href="tqiconview.html">TQIconView</a> { TQ_OBJECT public: DDIconView( <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) : - <a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {} + <a href="tqiconview.html">TQIconView</a>( parent, name, f ) {} // High-level drag and drop <a href="ntqdragobject.html">TQDragObject</a> *dragObject(); public slots: @@ -225,7 +225,7 @@ const char* green_icon[]={ // IconViewIcon -- high level drag and drop -<a name="x2822"></a>bool DDIconViewItem::<a href="qiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="qmimesource.html">TQMimeSource</a> *mime ) const +<a name="x2822"></a>bool DDIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="qmimesource.html">TQMimeSource</a> *mime ) const { <a name="x2825"></a> if ( mime-><a href="qmimesource.html#provides">provides</a>( "text/plain" ) ) return TRUE; @@ -233,7 +233,7 @@ const char* green_icon[]={ } -<a name="x2823"></a>void DDIconViewItem::<a href="qiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>& ) +<a name="x2823"></a>void DDIconViewItem::<a href="tqiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>& ) { <a href="tqstring.html">TQString</a> label; @@ -244,9 +244,9 @@ const char* green_icon[]={ // IconView -- high level drag and drop -<a name="x2820"></a>TQDragObject *DDIconView::<a href="ntqiconview.html#dragObject">dragObject</a>() +<a name="x2820"></a>TQDragObject *DDIconView::<a href="tqiconview.html#dragObject">dragObject</a>() { - return new <a href="tqtextdrag.html">TQTextDrag</a>( <a href="ntqiconview.html#currentItem">currentItem</a>()->text(), this ); + return new <a href="tqtextdrag.html">TQTextDrag</a>( <a href="tqiconview.html#currentItem">currentItem</a>()->text(), this ); } void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>& ) @@ -255,7 +255,7 @@ void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDro if ( TQTextDrag::<a href="tqtextdrag.html#decode">decode</a>( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); -<a name="x2824"></a> item-><a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); +<a name="x2824"></a> item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( 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::<a href="tqobject.html#connect">connect</a>( -<a name="x2821"></a> iv, TQ_SIGNAL(<a href="ntqiconview.html#dropped">dropped</a>(TQDropEvent*, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>&)), +<a name="x2821"></a> iv, TQ_SIGNAL(<a href="tqiconview.html#dropped">dropped</a>(TQDropEvent*, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>&)), iv, TQ_SLOT(slotNewItem(TQDropEvent*, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem>&))); // Populate the TQIconView with icons DDIconViewItem *item; item = new DDIconViewItem( iv, "Red", TQPixmap( red_icon ) ); - item-><a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); item = new DDIconViewItem( iv, "Green", TQPixmap( green_icon ) ); - item-><a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) ); - item-><a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); return app.<a href="ntqapplication.html#exec">exec</a>(); } |