KIO
kurlrequester.cpp
Go to the documentation of this file.
virtual void setCompletionObject(KCompletion *compObj, bool hsig=true)
KCompletion * completionObject(bool hsig=true)
virtual void setCaption(const QString &caption)
void setLineEdit(KLineEdit *edit)
void setRepresentationWidget(QWidget *repWidget)
Provides a user (and developer) friendly way to select files and directories.
Definition kfiledialog.h:69
static QString getExistingDirectory(const KUrl &startDir=KUrl(), QWidget *parent=0, const QString &caption=QString())
Creates a modal directory-selection dialog and returns the selected directory (local only) or an empt...
Definition kfiledialog.cpp:630
void setFilter(const QString &filter)
Sets the filter to be used to filter.
Definition kfiledialog.cpp:332
static KUrl getExistingDirectoryUrl(const KUrl &startDir=KUrl(), QWidget *parent=0, const QString &caption=QString())
Creates a modal directory-selection dialog and returns the selected directory or an empty string if n...
Definition kfiledialog.cpp:617
void setUrl(const KUrl &url, bool clearforward=true)
Sets the directory to view.
Definition kfiledialog.cpp:444
void setSelection(const QString &name)
Sets the file name to preselect to name.
Definition kfiledialog.cpp:454
KFile is a class which provides a namespace for some enumerated values associated with the kfile libr...
Definition kfile.h:32
void setMargin(int margin)
void setSpacing(int space)
QString clickMessage
virtual void setText(const QString &)
void setClearButtonShown(bool show)
void setClickMessage(const QString &msg)
virtual void setCompletionObject(KCompletion *, bool hsig=true)
static bool supportsListing(const KUrl &url)
Returns whether the protocol can list files/objects.
Definition kprotocolmanager.cpp:1033
void setIcon(const KIcon &icon)
void setDragEnabled(bool enable)
virtual QSize sizeHint() const
KUrlComboRequester(QWidget *parent=0)
Constructs a KUrlRequester widget with a combobox.
Definition kurlrequester.cpp:554
This class does completion of URLs including user directories (~user) and environment variables.
Definition kurlcompletion.h:42
virtual void setMode(Mode mode)
Changes the completion mode: exe or file completion.
Definition kurlcompletion.cpp:559
virtual void setDir(const QString &dir)
Sets the current directory (used as base for completion).
Definition kurlcompletion.cpp:544
QString replacedPath(const QString &text) const
Replaces username and/or environment variables, depending on the current settings and returns the fil...
Definition kurlcompletion.cpp:1372
This class is a widget showing a lineedit and a button, which invokes a filedialog.
Definition kurlrequester.h:61
void setFileDialogModality(Qt::WindowModality modality)
Set the window modality for the file dialog to modality Directory selection dialogs are always modal.
Definition kurlrequester.cpp:525
void setFilter(const QString &filter)
Sets the filter for the file dialog.
Definition kurlrequester.cpp:437
const KEditListBox::CustomEditor & customEditor()
Definition kurlrequester.cpp:531
KUrlCompletion * completionObject() const
Definition kurlrequester.cpp:501
void setText(const QString &text)
Sets the current text in the lineedit or combobox.
Definition kurlrequester.cpp:299
bool eventFilter(QObject *obj, QEvent *ev)
Definition kurlrequester.cpp:485
void textChanged(const QString &)
Emitted when the text in the lineedit changes.
void setPath(const QString &path)
Sets the url in the lineedit to KUrl::fromPath(path).
Definition kurlrequester.cpp:293
void returnPressed()
Emitted when return or enter was pressed in the lineedit.
void populateMimeData(const KUrl::List &mostLocalUrls, QMimeData *mimeData, const KUrl::MetaDataMap &metaData=MetaDataMap(), MimeDataFlags flags=DefaultMimeDataFlags) const
QString pathOrUrl() const
static KUrl fromPath(const QString &text)
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
void setPath(const QString &path)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
#define kWarning
QString i18n(const char *text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.