KFile
#include <knameandurlinputdialog.h>
Public Member Functions | |
KNameAndUrlInputDialog (const QString &nameLabel, const QString &urlLabel, const KUrl &startDir, QWidget *parent) | |
virtual | ~KNameAndUrlInputDialog () |
QString | name () const |
void | setSuggestedName (const QString &name) |
void | setSuggestedUrl (const KUrl &url) |
KUrl | url () const |
Detailed Description
Dialog to ask for a name (e.g.
filename) and a URL Basically a merge of KLineEditDlg and KUrlRequesterDlg ;)
- Since
- 4.5
Definition at line 36 of file knameandurlinputdialog.h.
Constructor & Destructor Documentation
KNameAndUrlInputDialog::KNameAndUrlInputDialog | ( | const QString & | nameLabel, |
const QString & | urlLabel, | ||
const KUrl & | startDir, | ||
QWidget * | parent | ||
) |
- Parameters
-
nameLabel label for the name field urlLabel label for the URL requester startDir start directory for the URL requester (optional) parent parent widget
Definition at line 52 of file knameandurlinputdialog.cpp.
|
virtual |
Destructor.
Definition at line 86 of file knameandurlinputdialog.cpp.
Member Function Documentation
QString KNameAndUrlInputDialog::name | ( | ) | const |
- Returns
- the name the user entered Empty if the dialog was cancelled.
Definition at line 100 of file knameandurlinputdialog.cpp.
void KNameAndUrlInputDialog::setSuggestedName | ( | const QString & | name | ) |
Pre-fill the name lineedit.
Definition at line 130 of file knameandurlinputdialog.cpp.
void KNameAndUrlInputDialog::setSuggestedUrl | ( | const KUrl & | url | ) |
Pre-fill the URL requester.
Definition at line 136 of file knameandurlinputdialog.cpp.
KUrl KNameAndUrlInputDialog::url | ( | ) | const |
- Returns
- the URL the user entered Empty if the dialog was cancelled.
Definition at line 91 of file knameandurlinputdialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.