KIO
kpropertiesdialog.h
127 KPropertiesDialog(const QUrl &_tempUrl, const QUrl &_currentDir, const QString &_defaultName, QWidget *parent = nullptr);
174 static bool showDialog(const KFileItemList &_items, QWidget *parent = nullptr, bool modal = true);
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition kfileitem.h:632
QDialogButtonBox * buttonBox()
KPageDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
void applied()
This signal is emitted when the properties changes are applied (for example, with the OK button)
void updateUrl(const QUrl &newUrl)
Updates the item URL (either called by rename or because a global apps/mimelnk desktop file is being ...
Definition kpropertiesdialog.cpp:563
static bool showDialog(const KFileItem &item, QWidget *parent=nullptr, bool modal=true)
Immediately displays a Properties dialog using constructor with the same parameters.
Definition kpropertiesdialog.cpp:263
void saveAs(const QUrl &oldUrl, QUrl &newUrl)
Emitted before changes to oldUrl are saved as newUrl.
static bool canDisplay(const KFileItemList &_items)
Determine whether there are any property pages available for the given file items.
Definition kpropertiesdialog.cpp:393
void setFileNameReadOnly(bool ro)
Call this to make the filename lineedit readonly, to prevent the user from renaming the file.
Definition kpropertiesdialog.cpp:353
void showFileSharingPage()
Shows the page that was previously set by setFileSharingPage(), or does nothing if no page was set ye...
Definition kpropertiesdialog.cpp:341
void setFileSharingPage(QWidget *page)
Sets the file sharing page.
Definition kpropertiesdialog.cpp:348
void propertiesClosed()
This signal is emitted when the Properties Dialog is closed (for example, with OK or Cancel buttons)
QUrl url() const
The URL of the file that has its properties being displayed.
Definition kpropertiesdialog.cpp:368
QString defaultName() const
If the dialog is being built from a template, this method returns the default name.
Definition kpropertiesdialog.cpp:388
QUrl currentDir() const
If the dialog is being built from a template, this method returns the current directory.
Definition kpropertiesdialog.cpp:383
KPropertiesDialog(const KFileItem &item, QWidget *parent=nullptr)
Brings up a Properties dialog, as shown above.
Definition kpropertiesdialog.cpp:141
void rename(const QString &_name)
Renames the item to the specified name.
Definition kpropertiesdialog.cpp:583
void canceled()
This signal is emitted when the properties changes are aborted (for example, with the Cancel button)
virtual void accept()
modal
virtual void reject()
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.