summaryrefslogtreecommitdiffstats
path: root/doc/html/simple_dd-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/simple_dd-example.html')
-rw-r--r--doc/html/simple_dd-example.html86
1 files changed, 43 insertions, 43 deletions
diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html
index c64ea32d..95103a10 100644
--- a/doc/html/simple_dd-example.html
+++ b/doc/html/simple_dd-example.html
@@ -48,22 +48,22 @@ functionality.
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qcursor-h.html">qcursor.h</a>&gt;
-#include &lt;<a href="qsplitter-h.html">qsplitter.h</a>&gt;
-#include &lt;<a href="qlistbox-h.html">qlistbox.h</a>&gt;
-#include &lt;<a href="qiconview-h.html">qiconview.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qcursor-h.html">ntqcursor.h</a>&gt;
+#include &lt;<a href="qsplitter-h.html">ntqsplitter.h</a>&gt;
+#include &lt;<a href="qlistbox-h.html">ntqlistbox.h</a>&gt;
+#include &lt;<a href="qiconview-h.html">ntqiconview.h</a>&gt;
+#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
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>&amp; text, const <a href="qpixmap.html">TQPixmap</a>&amp; icon ) :
+ DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="ntqstring.html">TQString</a>&amp; text, const <a href="ntqpixmap.html">TQPixmap</a>&amp; 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> &amp;text ) :
+ DDIconViewItem( <a href="ntqiconview.html">TQIconView</a> *parent, const <a href="ntqstring.html">TQString</a> &amp;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>&lt;TQIconDragItem&gt;&amp; );
+ void dropped( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp; );
};
-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>&lt;TQIconDragItem&gt;&amp; list );
+ void slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp; 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-&gt;<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-&gt;<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-&gt;<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>&lt;TQIconDragItem&gt;&amp; )
+<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>&lt;TQIconDragItem&gt;&amp; )
{
- <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>()-&gt;text(), this );
+ return new <a href="qtextdrag.html">TQTextDrag</a>( <a href="ntqiconview.html#currentItem">currentItem</a>()-&gt;text(), this );
}
-void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp; )
+void <a name="f588"></a>DDIconView::slotNewItem( <a href="qdropevent.html">TQDropEvent</a> *evt, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp; )
{
- <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-&gt;<a href="qwidget.html#resize">resize</a>( 600, 400 );
- split-&gt;<a href="qwidget.html#show">show</a>();
+ app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( split );
+ split-&gt;<a href="ntqwidget.html#resize">resize</a>( 600, 400 );
+ split-&gt;<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>&lt;TQIconDragItem&gt;&amp;)),
- iv, SLOT(slotNewItem(TQDropEvent*, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp;)));
+ 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>&lt;TQIconDragItem&gt;&amp;)),
+ iv, SLOT(slotNewItem(TQDropEvent*, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt;&amp;)));
// 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-&gt;<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>();
}