Provides for drag-and-drop of a list of URI references. More...
#include <qdragobject.h>
Inherits QStoredDrag.
URIs are a useful way to refer to files that may be distributed across multiple machines. Much of the time a URI will refer to a file on a machine local to both the drag source and the drop target, and so the URI will be equivalent to passing a filename, but more extensible.
While presenting URIs to the user, use them in Unicode form so that the user can comfortably edit and view them. For use in HTTP or other protocols, use the correctly escaped ASCII form (see.
Constructs an object to drag the list of URIs in uris. The dragSource and name arguments are passed on to QStoredDrag. Note that URIs are always in escaped UTF8 encoding, as defined by the W3C.
Constructs a object to drag. You will need to call setUris() before you start the drag().
Destructs the object.
[static]
Returns TRUE if decode() would be able to decode e.
[static]
Decodes URIs from e, placing the result in l (which is first cleared).
Returns TRUE if the event contained a valid list of URIs.
[static]
Decodes URIs from e, converts them to local files if they refer to local files, and places them in l (which is first cleared).
Returns TRUE if the event contained a valid list of URIs. The list will be empty if no URIs were local files.
[static]
Decodes URIs from e, converts them to Unicode URIs (only useful for displaying to humans), placing them in l (which is first cleared).
Returns TRUE if the event contained a valid list of URIs.
[static]
Returns the URI equivalent to the absolute local file filename.
See also uriToLocalFile().
Sets the URIs to be the local-file URIs equivalent to fnames.
See also localFileToUri() and setUris().
Sets the URIs to be the Unicode URIs (only useful for displaying to humans) uuris.
See also localFileToUri() and setUris().
[virtual]
Changes the list of uris to be dragged.
[static]
Returns the URI equivalent to the Unicode URI (only useful for displaying to humans). uuri.
See also uriToLocalFile().
[static]
Returns the name of a local file equivalent to uri, or a null string if uri is not a local file.
See also localFileToUri().
[static]
Returns the Unicode URI (only useful for displaying to humans) equivalent to uri.
See also localFileToUri().
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright İ 2000 Trolltech | Trademarks | Qt version 2.2.1
|