KIO
kurlrequester.cpp
218 return QFileDialog::getExistingDirectoryUrl(m_parent, QString(), openUrl, QFileDialog::ShowDirsOnly);
416 (myFileDialog && (myFileDialog->fileMode() == QFileDialog::Directory && myFileDialog->testOption(QFileDialog::ShowDirsOnly))))) {
417 const QUrl openUrl = (!m_parent->url().isEmpty() && !m_parent->url().isRelative()) ? m_parent->url() : m_startDir;
423 newUrl = QFileDialog::getExistingDirectoryUrl(m_parent, QString(), openUrl, QFileDialog::ShowDirsOnly, QStringList() << QStringLiteral("file"));
435 if (((fileDialogMode & KFile::Directory) && (fileDialogMode & KFile::File)) || m_fileDialogModeWasDirAndFile) {
437 QAction *fileAction = new QAction(QIcon::fromTheme(QStringLiteral("document-new")), i18n("File"));
438 QAction *dirAction = new QAction(QIcon::fromTheme(QStringLiteral("folder-new")), i18n("Directory"));
564 && ((d->myFileDialog->fileMode() == QFileDialog::Directory && !(d->fileDialogMode & KFile::Directory))
565 || (d->myFileDialog->fileMode() != QFileDialog::Directory && (d->fileDialogMode & KFile::Directory)))) {
void returnPressed(const QString &text)
KFile is a class which provides a namespace for some enumerated values associated with the kfile libr...
Definition kfile.h:24
void returnKeyPressed(const QString &text)
static bool supportsListing(const QUrl &url)
Returns whether the protocol can list files/objects.
Definition kprotocolmanager.cpp:189
This class does completion of URLs including user directories (~user) and environment variables.
Definition kurlcompletion.h:41
QString replacedPath(const QString &text) const
Replaces username and/or environment variables, depending on the current settings and returns the fil...
Definition kurlcompletion.cpp:1349
This class is a widget showing a lineedit and a button, which invokes a filedialog.
Definition kurlrequester.h:55
void setFileDialogModality(Qt::WindowModality modality)
Set the window modality for the file dialog to modality Directory selection dialogs are always modal.
Definition kurlrequester.cpp:657
void setNameFilter(const QString &filter)
Sets the filters for the file dialog.
Definition kurlrequester.cpp:529
const KEditListWidget::CustomEditor & customEditor()
Definition kurlrequester.cpp:662
KUrlCompletion * completionObject() const
Definition kurlrequester.cpp:631
void setText(const QString &text)
Sets the current text in the lineedit or combobox.
Definition kurlrequester.cpp:365
void setMimeTypeFilters(const QStringList &mimeTypes)
Sets the MIME type filters for the file dialog.
Definition kurlrequester.cpp:546
void textChanged(const QString &)
Emitted when the text in the lineedit changes.
void returnPressed(const QString &text)
Emitted when return or enter was pressed in the lineedit.
void setAcceptMode(QFileDialog::AcceptMode m)
Sets the open / save mode of the file dialog.
Definition kurlrequester.cpp:501
KUrlRequester(QWidget *parent=nullptr)
Constructs a KUrlRequester widget.
Definition kurlrequester.cpp:287
void textEdited(const QString &)
Emitted when the text in the lineedit was modified by the user.
void setNameFilters(const QStringList &filters)
Sets the filters for the file dialog.
Definition kurlrequester.cpp:520
void setPlaceholderText(const QString &msg)
This makes the KUrlRequester line edit display a grayed-out hinting text as long as the user didn't e...
Definition kurlrequester.cpp:636
QStringList mimeTypeFilters() const
Returns the MIME type filters for the file dialog.
Definition kurlrequester.cpp:556
QString i18n(const char *text, const TYPE &arg...)
QCA_EXPORT void init()
void clicked(bool checked)
void setIcon(const QIcon &icon)
void pressed()
void setShortcut(const QKeySequence &shortcut)
void triggered(bool checked)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
virtual void setSpacing(int spacing) override
void currentTextChanged(const QString &text)
void editTextChanged(const QString &text)
bool sendEvent(QObject *receiver, QEvent *event)
void accepted()
virtual int exec()
QString currentPath()
void setMimeData(QMimeData *data)
WindowTitleChange
Type type() const const
AcceptMode
FileMode
ShowDirsOnly
void setAcceptMode(AcceptMode mode)
void setFileMode(FileMode mode)
QUrl getExistingDirectoryUrl(QWidget *parent, const QString &caption, const QUrl &dir, Options options, const QStringList &supportedSchemes)
void selectUrl(const QUrl &url)
void setDirectoryUrl(const QUrl &directory)
void setOption(Option option, bool on)
QIcon fromTheme(const QString &name)
void setContentsMargins(const QMargins &margins)
void setClearButtonEnabled(bool enable)
void returnPressed()
void textChanged(const QString &text)
void textEdited(const QString &text)
void append(QList< T > &&value)
void clear()
bool isEmpty() const const
void setUrls(const QList< QUrl > &urls)
Q_EMITQ_EMIT
Q_OBJECTQ_OBJECT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool eventFilter(QObject *watched, QEvent *event)
void installEventFilter(QObject *filterObj)
QObject * parent() const const
T qobject_cast(QObject *object)
void removeEventFilter(QObject *obj)
virtual QSize sizeHint() const const override
QSize expandedTo(const QSize &otherSize) const const
int height() const const
Preferred
bool isEmpty() const const
StrongFocus
NonModal
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
PreferLocalFile
QUrl adjusted(FormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
bool isLocalFile() const const
bool isRelative() const const
bool isValid() const const
QUrl resolved(const QUrl &relative) const const
QString toDisplayString(FormattingOptions options) const const
QString url(FormattingOptions options) const const
virtual void changeEvent(QEvent *event)
void setFocusPolicy(Qt::FocusPolicy policy)
void setFixedSize(const QSize &s)
void setFocusProxy(QWidget *w)
void setParent(QWidget *parent)
void show()
sizeHint
void setSizePolicy(QSizePolicy)
void setToolTip(const QString &)
QWidget * window() const const
windowModality
windowTitle
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.