summaryrefslogtreecommitdiffstats
path: root/doc/html/fileiconview-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/fileiconview-example.html')
-rw-r--r--doc/html/fileiconview-example.html60
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html
index 2116877b9..efb5f37b9 100644
--- a/doc/html/fileiconview-example.html
+++ b/doc/html/fileiconview-example.html
@@ -80,7 +80,7 @@ public:
const char* format( int i ) const;
<a href="qbytearray.html">TQByteArray</a> encodedData( const char* mime ) const;
- static bool canDecode( <a href="qmimesource.html">TQMimeSource</a>* e );
+ static bool canDecode( <a href="tqmimesource.html">TQMimeSource</a>* e );
void append( const <a href="tqicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="ntqrect.html">TQRect</a> &amp;pr, const <a href="ntqrect.html">TQRect</a> &amp;tr, const <a href="tqstring.html">TQString</a> &amp;url );
private:
@@ -127,7 +127,7 @@ signals:
protected slots:
void itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> *i );
- void slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
+ void slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
void viewLarge();
void viewSmall();
@@ -186,7 +186,7 @@ public:
{ return itemType; }
<a href="tqstring.html">TQString</a> filename() const { return itemFileName; }
- virtual bool acceptDrop( const <a href="qmimesource.html">TQMimeSource</a> *e ) const;
+ virtual bool acceptDrop( const <a href="tqmimesource.html">TQMimeSource</a> *e ) const;
virtual void setText( const <a href="tqstring.html">TQString</a> &amp;text );
virtual TQPixmap *pixmap() const;
@@ -198,7 +198,7 @@ public:
void paintItem( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg );
protected:
- virtual void dropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
+ virtual void dropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
<a href="tqstring.html">TQString</a> itemFileName;
<a href="ntqfileinfo.html">TQFileInfo</a> *itemFileInfo;
@@ -229,9 +229,9 @@ protected:
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-#include &lt;<a href="qmime-h.html">ntqmime.h</a>&gt;
+#include &lt;<a href="tqmime-h.html">tqmime.h</a>&gt;
#include &lt;<a href="tqstrlist-h.html">tqstrlist.h</a>&gt;
-#include &lt;<a href="qdragobject-h.html">ntqdragobject.h</a>&gt;
+#include &lt;<a href="tqdragobject-h.html">tqdragobject.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qevent-h.html">ntqevent.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
@@ -474,7 +474,7 @@ static void cleanup()
{
}
-<a name="x832"></a>const char* TQtFileIconDrag::<a href="qmimesource.html#format">format</a>( int i ) const
+<a name="x832"></a>const char* TQtFileIconDrag::<a href="tqmimesource.html#format">format</a>( int i ) const
{
if ( i == 0 )
return "application/x-qiconlist";
@@ -497,10 +497,10 @@ static void cleanup()
return a;
}
-<a name="x830"></a>bool TQtFileIconDrag::<a href="tqicondrag.html#canDecode">canDecode</a>( <a href="qmimesource.html">TQMimeSource</a>* e )
+<a name="x830"></a>bool TQtFileIconDrag::<a href="tqicondrag.html#canDecode">canDecode</a>( <a href="tqmimesource.html">TQMimeSource</a>* e )
{
-<a name="x819"></a> return e-&gt;<a href="qdropevent.html#provides">provides</a>( "application/x-qiconlist" ) ||
- e-&gt;<a href="qdropevent.html#provides">provides</a>( "text/uri-list" );
+<a name="x819"></a> return e-&gt;<a href="tqdropevent.html#provides">provides</a>( "application/x-qiconlist" ) ||
+ e-&gt;<a href="tqdropevent.html#provides">provides</a>( "text/uri-list" );
}
<a name="x829"></a>void TQtFileIconDrag::<a href="tqicondrag.html#append">append</a>( const <a href="tqicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="ntqrect.html">TQRect</a> &amp;pr,
@@ -514,7 +514,7 @@ static void cleanup()
<a name="x810"></a> ourUrl = dir.<a href="ntqdir.html#absPath">absPath</a>();
}
#endif
- urls &lt;&lt; TQUriDrag::<a href="quridrag.html#localFileToUri">localFileToUri</a>(ourUrl);
+ urls &lt;&lt; TQUriDrag::<a href="tquridrag.html#localFileToUri">localFileToUri</a>(ourUrl);
}
/*****************************************************************************
@@ -622,29 +622,29 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
}
}
-<a name="x836"></a>bool TQtFileIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="qmimesource.html">TQMimeSource</a> *e ) const
+<a name="x836"></a>bool TQtFileIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="tqmimesource.html">TQMimeSource</a> *e ) const
{
- if ( type() == Dir &amp;&amp; e-&gt;<a href="qdropevent.html#provides">provides</a>( "text/uri-list" ) &amp;&amp;
+ if ( type() == Dir &amp;&amp; e-&gt;<a href="tqdropevent.html#provides">provides</a>( "text/uri-list" ) &amp;&amp;
dropEnabled() )
return TRUE;
return FALSE;
}
-<a name="x839"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
+<a name="x839"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dropped">dropped</a>( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
{
timer.stop();
if ( !TQUriDrag::canDecode( e ) ) {
-<a name="x818"></a> e-&gt;<a href="qdropevent.html#ignore">ignore</a>();
+<a name="x818"></a> e-&gt;<a href="tqdropevent.html#ignore">ignore</a>();
return;
}
<a href="tqstringlist.html">TQStringList</a> lst;
-<a name="x873"></a> TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
+<a name="x873"></a> TQUriDrag::<a href="tquridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
<a href="tqstring.html">TQString</a> str;
-<a name="x817"></a> if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy )
+<a name="x817"></a> if ( e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy )
str = "Copy\n\n";
else
str = "Move\n\n";
@@ -654,10 +654,10 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
"To\n\n"
" %1" ).arg( filename() );
-<a name="x859"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
- if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Move )
+<a name="x859"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
+ if ( e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Move )
TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), "Remove" , str, "Not Implemented" );
-<a name="x816"></a> e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+<a name="x816"></a> e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
}
<a name="x837"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dragEntered">dragEntered</a>()
@@ -720,8 +720,8 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
this, TQ_SLOT( itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) );
<a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#returnPressed">returnPressed</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ),
this, TQ_SLOT( itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) );
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ),
- this, TQ_SLOT( slotDropped( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ) );
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#dropped">dropped</a>( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ),
+ this, TQ_SLOT( slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ) );
<a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a> &amp; ) ),
this, TQ_SLOT( slotRightPressed( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) );
@@ -879,7 +879,7 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi
<a name="x809"></a> <a href="ntqpoint.html">TQPoint</a> orig = <a href="ntqscrollview.html#viewportToContents">viewportToContents</a>( <a href="ntqscrollview.html#viewport">viewport</a>()-&gt;mapFromGlobal( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ) );
TQtFileIconDrag *drag = new TQtFileIconDrag( <a href="ntqscrollview.html#viewport">viewport</a>() );
-<a name="x815"></a> drag-&gt;<a href="ntqdragobject.html#setPixmap">setPixmap</a>( *currentItem()-&gt;pixmap(),
+<a name="x815"></a> drag-&gt;<a href="tqdragobject.html#setPixmap">setPixmap</a>( *currentItem()-&gt;pixmap(),
TQPoint( <a href="tqiconview.html#currentItem">currentItem</a>()-&gt;pixmapRect().width() / 2, currentItem()-&gt;pixmapRect().height() / 2 ) );
for ( TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="tqiconview.html#firstItem">firstItem</a>(); item;
<a name="x841"></a> item = (TQtFileIconViewItem*)item-&gt;<a href="tqiconviewitem.html#nextItem">nextItem</a>() ) {
@@ -909,20 +909,20 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi
TQIconView::<a href="tqwidget.html#keyPressEvent">keyPressEvent</a>( e );
}
-void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
+void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
{
if ( openItem )
openItem-&gt;timer.stop();
if ( !TQUriDrag::canDecode( e ) ) {
- e-&gt;<a href="qdropevent.html#ignore">ignore</a>();
+ e-&gt;<a href="tqdropevent.html#ignore">ignore</a>();
return;
}
<a href="tqstringlist.html">TQStringList</a> lst;
- TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
+ TQUriDrag::<a href="tquridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
<a href="tqstring.html">TQString</a> str;
- if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy )
+ if ( e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy )
str = "Copy\n\n";
else
str = "Move\n\n";
@@ -932,10 +932,10 @@ void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">
"To\n\n"
" %1" ).arg( viewDir.absPath() );
- TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
- if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Move )
+ TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
+ if ( e-&gt;<a href="tqdropevent.html#action">action</a>() == TQDropEvent::Move )
<a name="x872"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Remove" , TQDir::convertSeparators(lst.<a href="tqstringlist.html#join">join</a>("\n")), "Not Implemented" );
- e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+ e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
openItem = 0;
}