KParts
mainwindow.cpp
81 disconnect(d->m_activePart.data(), &Part::setWindowCaption, this, static_cast<void (MainWindow::*)(const QString &)>(&MainWindow::setCaption));
82 disconnect(d->m_activePart.data(), &Part::setStatusBarText, this, &MainWindow::slotSetStatusBarText);
93 connect(part, &Part::setWindowCaption, this, static_cast<void (MainWindow::*)(const QString &)>(&MainWindow::setCaption));
static KAboutData applicationData()
menuDonate
virtual void setCaption(const QString &caption)
This event is sent to a Part when its GUI has been activated or deactivated.
Definition guiactivateevent.h:30
A KPart-aware main window, whose user interface is described in XML.
Definition mainwindow.h:51
MainWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor, same signature as KMainWindow.
Definition mainwindow.cpp:49
void saveNewToolbarConfig() override
Rebuilds the GUI after KEditToolBar changed the toolbar layout.
Definition mainwindow.cpp:179
void setWindowTitleHandling(bool enabled)
Enable or disable the automatic setting of window titles by the part's document title.
Definition mainwindow.cpp:174
virtual void slotSetStatusBarText(const QString &)
Called when the active part wants to change the statusbar message Reimplement if your mainwindow has ...
Definition mainwindow.cpp:106
void createGUI(KParts::Part *part)
Create the GUI (by merging the host's and the active part's) You must call this in order to see any G...
Definition mainwindow.cpp:58
void setWindowCaption(const QString &caption)
Emitted by the part, to set the caption of the window(s) hosting this part.
void setStatusBarText(const QString &text)
Emitted by the part, to set a text in the statusbar of the window(s) hosting this part.
virtual QString xmlFile() const
virtual QString componentName() const
static QString standardsXmlFileLocation()
virtual KActionCollection * actionCollection() const
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
KXMLGUIFactory * factory() const
void removeClient(KXMLGUIClient *client)
void addClient(KXMLGUIClient *client)
virtual void configureToolbars()
void checkAmbiguousShortcuts()
bool isHelpMenuEnabled() const
bool sendEvent(QObject *receiver, QEvent *event)
QStatusBar * statusBar() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
virtual const QMetaObject * metaObject() const const
objectName
void showMessage(const QString &message, int timeout)
bool isEmpty() const const
typedef WindowFlags
QList< QAction * > actions() const const
void create(WId window, bool initializeWindow, bool destroyOldWindow)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:20:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:20:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.