KDEUI
ktoolbar.h
Go to the documentation of this file.
73 // KDE5: remove. The one below is preferred so that all debug output from init() shows the right objectName already,
105 KToolBar(const QString& objectName, QMainWindow* parentWindow, Qt::ToolBarArea area, bool newLine = false,
106 bool isMainToolBar = false, bool readConfig = true); // KDE5: remove, I don't think anyone is using this.
128 int iconSizeDefault() const; // KDE5: hide from public API. Doesn't make sense to export this, and it isn't used.
203 static Qt::ToolButtonStyle toolButtonStyleSetting(); // KDE5: make private and file-static, nobody is calling this
void applySettings(const KConfigGroup &cg, bool forceGlobal=false)
Read the toolbar settings from group configGroup in config and apply them.
Definition ktoolbar.cpp:1041
void setContextMenuEnabled(bool enable=true)
This allows you to enable or disable the context menu.
Definition ktoolbar.cpp:815
virtual void contextMenuEvent(QContextMenuEvent *)
Definition ktoolbar.cpp:874
void addXMLGUIClient(KXMLGUIClient *client)
Adds an XML gui client that uses this toolbar.
Definition ktoolbar.cpp:864
static bool toolBarsEditable()
Returns whether the toolbars are currently editable (drag & drop of actions).
Definition ktoolbar.cpp:1405
static bool toolBarsLocked()
Returns whether the toolbars are locked (i.e., moving of the toobars disallowed).
Definition ktoolbar.cpp:1430
static void setToolBarsEditable(bool editable)
Enable or disable toolbar editing via drag & drop of actions.
Definition ktoolbar.cpp:1410
KMainWindow * mainWindow() const
Returns the main window that this toolbar is docked with.
Definition ktoolbar.cpp:1068
virtual void slotMovableChanged(bool movable)
Definition ktoolbar.cpp:1084
bool eventFilter(QObject *watched, QEvent *event)
Reimplemented to support context menu activation on disabled tool buttons.
Definition ktoolbar.cpp:1272
static void setToolBarsLocked(bool locked)
Allows you to lock and unlock all toolbars (i.e., disallow/allow moving of the toobars).
Definition ktoolbar.cpp:1417
KToolBar(QWidget *parent, bool isMainToolBar=false, bool readConfig=true)
Constructor.
Definition ktoolbar.cpp:766
virtual void mouseReleaseEvent(QMouseEvent *)
Definition ktoolbar.cpp:1260
void removeXMLGUIClient(KXMLGUIClient *client)
Removes an XML gui client that uses this toolbar.
Definition ktoolbar.cpp:869
void saveSettings(KConfigGroup &cg)
Save the toolbar settings to group configGroup in config.
Definition ktoolbar.cpp:828
int iconSizeDefault() const
Returns the default size for this type of toolbar.
Definition ktoolbar.cpp:1079
static Qt::ToolButtonStyle toolButtonStyleSetting()
Returns the global setting for "Icon Text" for the main toolbar.
Definition ktoolbar.cpp:893
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition kxmlguiclient.h:47
TsConfig readConfig(const QString &fname)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.