diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/simple_dd-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/simple_dd-example.html')
-rw-r--r-- | doc/html/simple_dd-example.html | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index c64ea32d4..95103a10d 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -48,22 +48,22 @@ functionality. ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qcursor-h.html">qcursor.h</a>> -#include <<a href="qsplitter-h.html">qsplitter.h</a>> -#include <<a href="qlistbox-h.html">qlistbox.h</a>> -#include <<a href="qiconview-h.html">qiconview.h</a>> -#include <<a href="qpixmap-h.html">qpixmap.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#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="qpixmap-h.html">ntqpixmap.h</a>> class TQDragEnterEvent; class TQDragDropEvent; -class DDListBox : public <a href="qlistbox.html">TQListBox</a> +class DDListBox : public <a href="ntqlistbox.html">TQListBox</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - DDListBox( <a href="qwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ); + DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ); // Low-level drag and drop void dragEnterEvent( <a href="qdragenterevent.html">TQDragEnterEvent</a> *evt ); void dropEvent( <a href="qdropevent.html">TQDropEvent</a> *evt ); @@ -77,26 +77,26 @@ private: class DDIconViewItem : public <a href="qiconviewitem.html">TQIconViewItem</a> { public: - DDIconViewItem( <a href="qiconview.html">TQIconView</a> *parent, const <a href="qstring.html">TQString</a>& text, const <a href="qpixmap.html">TQPixmap</a>& icon ) : + DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="ntqstring.html">TQString</a>& text, const <a href="ntqpixmap.html">TQPixmap</a>& icon ) : <a href="qiconviewitem.html">TQIconViewItem</a>( parent, text, icon ) {} - DDIconViewItem( <a href="qiconview.html">TQIconView</a> *parent, const <a href="qstring.html">TQString</a> &text ) : + DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="ntqstring.html">TQString</a> &text ) : <a href="qiconviewitem.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="qvaluelist.html">TQValueList</a><TQIconDragItem>& ); + void dropped( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>& ); }; -class DDIconView : public <a href="qiconview.html">TQIconView</a> +class DDIconView : public <a href="ntqiconview.html">TQIconView</a> { Q_OBJECT public: - DDIconView( <a href="qwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) : - <a href="qiconview.html">TQIconView</a>( parent, name, f ) {} + DDIconView( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) : + <a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {} // High-level drag and drop - <a href="qdragobject.html">TQDragObject</a> *dragObject(); + <a href="ntqdragobject.html">TQDragObject</a> *dragObject(); public slots: - void slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="qvaluelist.html">TQValueList</a><TQIconDragItem>& list ); + void slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>& list ); }; </pre> @@ -181,42 +181,42 @@ const char* green_icon[]={ // ListBox -- low level drag and drop -<a name="f589"></a>DDListBox::DDListBox( <a href="qwidget.html">TQWidget</a> * parent, const char * name, WFlags f ) : - <a href="qlistbox.html">TQListBox</a>( parent, name, f ) +<a name="f589"></a>DDListBox::DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent, const char * name, WFlags f ) : + <a href="ntqlistbox.html">TQListBox</a>( parent, name, f ) { - <a href="qwidget.html#setAcceptDrops">setAcceptDrops</a>( TRUE ); + <a href="ntqwidget.html#setAcceptDrops">setAcceptDrops</a>( TRUE ); dragging = FALSE; } -<a name="x2829"></a>void DDListBox::<a href="qwidget.html#dragEnterEvent">dragEnterEvent</a>( <a href="qdragenterevent.html">TQDragEnterEvent</a> *evt ) +<a name="x2829"></a>void DDListBox::<a href="ntqwidget.html#dragEnterEvent">dragEnterEvent</a>( <a href="qdragenterevent.html">TQDragEnterEvent</a> *evt ) { <a name="x2827"></a> if ( TQTextDrag::<a href="qtextdrag.html#canDecode">canDecode</a>( evt ) ) <a name="x2819"></a> evt-><a href="qdragmoveevent.html#accept">accept</a>(); } -<a name="x2830"></a>void DDListBox::<a href="qwidget.html#dropEvent">dropEvent</a>( <a href="qdropevent.html">TQDropEvent</a> *evt ) +<a name="x2830"></a>void DDListBox::<a href="ntqwidget.html#dropEvent">dropEvent</a>( <a href="qdropevent.html">TQDropEvent</a> *evt ) { - <a href="qstring.html">TQString</a> text; + <a href="ntqstring.html">TQString</a> text; <a name="x2828"></a> if ( TQTextDrag::<a href="qtextdrag.html#decode">decode</a>( evt, text ) ) - <a href="qlistbox.html#insertItem">insertItem</a>( text ); + <a href="ntqlistbox.html#insertItem">insertItem</a>( text ); } -<a name="x2832"></a>void DDListBox::<a href="qwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *evt ) +<a name="x2832"></a>void DDListBox::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *evt ) { - TQListBox::<a href="qwidget.html#mousePressEvent">mousePressEvent</a>( evt ); + TQListBox::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( evt ); dragging = TRUE; } -<a name="x2831"></a>void DDListBox::<a href="qwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) +<a name="x2831"></a>void DDListBox::<a href="ntqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) { if ( dragging ) { - <a href="qdragobject.html">TQDragObject</a> *d = new <a href="qtextdrag.html">TQTextDrag</a>( currentText(), this ); -<a name="x2818"></a> d-><a href="qdragobject.html#dragCopy">dragCopy</a>(); // do NOT delete d. + <a href="ntqdragobject.html">TQDragObject</a> *d = new <a href="qtextdrag.html">TQTextDrag</a>( currentText(), this ); +<a name="x2818"></a> d-><a href="ntqdragobject.html#dragCopy">dragCopy</a>(); // do NOT delete d. dragging = FALSE; } } @@ -233,9 +233,9 @@ 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="qvaluelist.html">TQValueList</a><TQIconDragItem>& ) +<a name="x2823"></a>void DDIconViewItem::<a href="qiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>& ) { - <a href="qstring.html">TQString</a> label; + <a href="ntqstring.html">TQString</a> label; if ( TQTextDrag::<a href="qtextdrag.html#decode">decode</a>( evt, label ) ) setText( label ); @@ -244,14 +244,14 @@ const char* green_icon[]={ // IconView -- high level drag and drop -<a name="x2820"></a>TQDragObject *DDIconView::<a href="qiconview.html#dragObject">dragObject</a>() +<a name="x2820"></a>TQDragObject *DDIconView::<a href="ntqiconview.html#dragObject">dragObject</a>() { - return new <a href="qtextdrag.html">TQTextDrag</a>( <a href="qiconview.html#currentItem">currentItem</a>()->text(), this ); + return new <a href="qtextdrag.html">TQTextDrag</a>( <a href="ntqiconview.html#currentItem">currentItem</a>()->text(), this ); } -void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="qvaluelist.html">TQValueList</a><TQIconDragItem>& ) +void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>& ) { - <a href="qstring.html">TQString</a> label; + <a href="ntqstring.html">TQString</a> label; if ( TQTextDrag::<a href="qtextdrag.html#decode">decode</a>( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); @@ -263,20 +263,20 @@ void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDro int main( int argc, char *argv[] ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); // Create and show the widgets - <a href="qsplitter.html">TQSplitter</a> *split = new <a href="qsplitter.html">TQSplitter</a>(); + <a href="ntqsplitter.html">TQSplitter</a> *split = new <a href="ntqsplitter.html">TQSplitter</a>(); DDIconView *iv = new DDIconView( split ); (void) new DDListBox( split ); - app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( split ); - split-><a href="qwidget.html#resize">resize</a>( 600, 400 ); - split-><a href="qwidget.html#show">show</a>(); + app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( split ); + split-><a href="ntqwidget.html#resize">resize</a>( 600, 400 ); + split-><a href="ntqwidget.html#show">show</a>(); // Set up the connection so that we can drop items into the icon view - TQObject::<a href="qobject.html#connect">connect</a>( -<a name="x2821"></a> iv, SIGNAL(<a href="qiconview.html#dropped">dropped</a>(TQDropEvent*, const <a href="qvaluelist.html">TQValueList</a><TQIconDragItem>&)), - iv, SLOT(slotNewItem(TQDropEvent*, const <a href="qvaluelist.html">TQValueList</a><TQIconDragItem>&))); + TQObject::<a href="ntqobject.html#connect">connect</a>( +<a name="x2821"></a> iv, SIGNAL(<a href="ntqiconview.html#dropped">dropped</a>(TQDropEvent*, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>&)), + iv, SLOT(slotNewItem(TQDropEvent*, const <a href="ntqvaluelist.html">TQValueList</a><TQIconDragItem>&))); // Populate the TQIconView with icons DDIconViewItem *item; @@ -287,7 +287,7 @@ int main( int argc, char *argv[] ) item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) ); item-><a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); - return app.<a href="qapplication.html#exec">exec</a>(); + return app.<a href="ntqapplication.html#exec">exec</a>(); } |