KIO
KUrlRequesterDialog Class Reference
#include <kurlrequesterdialog.h>
Inheritance diagram for KUrlRequesterDialog:

Detailed Description
Dialog in which a user can enter a filename or url.It is a dialog encapsulating KUrlRequester. The API is derived from KFileDialog.
Simple dialog to enter a filename/url.
Definition at line 39 of file kurlrequesterdialog.h.
Public Member Functions | |
KFileDialog * | fileDialog () |
KUrlRequesterDialog (const QString &url, const QString &text, QWidget *parent) | |
KUrlRequesterDialog (const QString &url, QWidget *parent=0) | |
KUrl | selectedUrl () const |
KUrlRequester * | urlRequester () |
~KUrlRequesterDialog () | |
Static Public Member Functions | |
static KUrl | getUrl (const QString &url=QString(), QWidget *parent=0, const QString &caption=QString()) |
Constructor & Destructor Documentation
Constructs a KUrlRequesterDialog.
- Parameters:
-
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected. parent The parent object of this widget.
Definition at line 53 of file kurlrequesterdialog.cpp.
KUrlRequesterDialog::KUrlRequesterDialog | ( | const QString & | url, | |
const QString & | text, | |||
QWidget * | parent | |||
) |
Constructs a KUrlRequesterDialog.
- Parameters:
-
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected. text Text of the label parent The parent object of this widget.
Definition at line 62 of file kurlrequesterdialog.cpp.
KUrlRequesterDialog::~KUrlRequesterDialog | ( | ) |
Member Function Documentation
KFileDialog * KUrlRequesterDialog::fileDialog | ( | ) |
Returns a pointer to the file dialog used by the KUrlRequester.
Definition at line 142 of file kurlrequesterdialog.cpp.
KUrl KUrlRequesterDialog::getUrl | ( | const QString & | url = QString() , |
|
QWidget * | parent = 0 , |
|||
const QString & | caption = QString() | |||
) | [static] |
Creates a modal dialog, executes it and returns the selected URL.
- Parameters:
-
url This specifies the initial path of the input line. parent The widget the dialog will be centered on initially. caption The caption to use for the dialog.
Definition at line 126 of file kurlrequesterdialog.cpp.
KUrl KUrlRequesterDialog::selectedUrl | ( | ) | const |
KUrlRequester * KUrlRequesterDialog::urlRequester | ( | ) |
The documentation for this class was generated from the following files: