KXmlGui
ktoolbar.h
83 * @param isMainToolBar True for the "main toolbar", false for other toolbars. Different settings apply.
87 // KDE5: remove. The one below is preferred so that all debug output from init() shows the right objectName already,
100 * @param objectName The QObject name of this toolbar, required so that QMainWindow can save and load the toolbar position,
112 * @param objectName The QObject name of this toolbar, required so that QMainWindow can save and load the toolbar position
116 * @param isMainToolBar True for the "main toolbar", false for other toolbars. Different settings apply.
146 int iconSizeDefault() const; // KDE5: hide from public API. Doesn't make sense to export this, and it isn't used.
static void emitToolbarStyleChanged()
Emits a D-Bus signal to tell all toolbars in all applications, that the user settings have changed.
Definition ktoolbar.cpp:1472
void addXMLGUIClient(KXMLGUIClient *client)
Adds an XML gui client that uses this toolbar.
Definition ktoolbar.cpp:942
static bool toolBarsEditable()
Returns whether the toolbars are currently editable (drag & drop of actions).
Definition ktoolbar.cpp:1440
static bool toolBarsLocked()
Returns whether the toolbars are locked (i.e., moving of the toobars disallowed).
Definition ktoolbar.cpp:1467
static void setToolBarsEditable(bool editable)
Enable or disable toolbar editing via drag & drop of actions.
Definition ktoolbar.cpp:1445
void applySettings(const KConfigGroup &cg)
Read the toolbar settings from group cg and apply them.
Definition ktoolbar.cpp:1097
KMainWindow * mainWindow() const
Returns the main window that this toolbar is docked with.
Definition ktoolbar.cpp:1111
static void setToolBarsLocked(bool locked)
Allows you to lock and unlock all toolbars (i.e., disallow/allow moving of the toobars).
Definition ktoolbar.cpp:1452
KToolBar(QWidget *parent, bool isMainToolBar=false, bool readConfig=true)
Constructor.
Definition ktoolbar.cpp:868
void removeXMLGUIClient(KXMLGUIClient *client)
Removes an XML gui client that uses this toolbar.
Definition ktoolbar.cpp:947
void saveSettings(KConfigGroup &cg)
Save the toolbar settings to group cg.
Definition ktoolbar.cpp:918
int iconSizeDefault() const
Returns the default size for this type of toolbar.
Definition ktoolbar.cpp:1122
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition kxmlguiclient.h:40
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
virtual bool eventFilter(QObject *watched, QEvent *event)
objectName
QObject * parent() const const
ToolBarArea
QToolBar(QWidget *parent)
virtual void actionEvent(QActionEvent *event) override
virtual bool event(QEvent *event) override
movable
QWidget(QWidget *parent, Qt::WindowFlags f)
virtual void contextMenuEvent(QContextMenuEvent *event)
virtual void dragEnterEvent(QDragEnterEvent *event)
virtual void dragLeaveEvent(QDragLeaveEvent *event)
virtual void dragMoveEvent(QDragMoveEvent *event)
virtual void dropEvent(QDropEvent *event)
virtual void mouseMoveEvent(QMouseEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
virtual void mouseReleaseEvent(QMouseEvent *event)
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:16 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:54:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.