KParts
readwritepart.h
ReadOnlyPart(QObject *parent=nullptr, const KPluginMetaData &data={})
Constructor.
Definition readonlypart.cpp:29
virtual void setReadWrite(bool readwrite=true)
Changes the behavior of this part to readonly or readwrite.
Definition readwritepart.cpp:49
virtual bool queryClose()
If the document has been modified, ask the user to save changes.
Definition readwritepart.cpp:74
virtual bool saveAs(const QUrl &url)
Save the file to a new location.
Definition readwritepart.cpp:161
virtual void setModified(bool modified)
Sets the modified flag of the part.
Definition readwritepart.cpp:57
bool waitSaveComplete()
Waits for any pending upload job to finish and returns whether the last save() action was successful.
Definition readwritepart.cpp:312
virtual bool save()
Save the file in the location from which it was opened.
Definition readwritepart.cpp:145
void sigQueryClose(bool *handled, bool *abortClosing)
set handled to true, if you don't want the default handling set abortClosing to true,...
ReadWritePart(QObject *parent=nullptr, const KPluginMetaData &data={})
Constructor See parent constructor for instructions.
Definition readwritepart.cpp:36
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:58:23 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:58:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.