KXmlGui

ktoggletoolbaraction.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1999 Reginald Stadlbauer <[email protected]>
4  SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
5  SPDX-FileCopyrightText: 2000 Nicolas Hadacek <[email protected]>
6  SPDX-FileCopyrightText: 2000 Kurt Granroth <[email protected]>
7  SPDX-FileCopyrightText: 2000 Michael Koch <[email protected]>
8  SPDX-FileCopyrightText: 2001 Holger Freyther <[email protected]>
9  SPDX-FileCopyrightText: 2002 Ellis Whitehead <[email protected]>
10  SPDX-FileCopyrightText: 2003 Andras Mantia <[email protected]>
11  SPDX-FileCopyrightText: 2005-2006 Hamish Rodda <[email protected]>
12 
13  SPDX-License-Identifier: LGPL-2.0-only
14 */
15 
16 #ifndef KTOGGLETOOLBARACTION_H
17 #define KTOGGLETOOLBARACTION_H
18 
19 #include <ktoggleaction.h>
20 #include <kxmlgui_export.h>
21 
22 class KToolBar;
23 
38 class KXMLGUI_EXPORT KToggleToolBarAction : public KToggleAction
39 {
40  Q_OBJECT
41 
42 public:
51  KToggleToolBarAction(const char *toolBarName, const QString &text, QObject *parent);
52 
59  KToggleToolBarAction(KToolBar *toolBar, const QString &text, QObject *parent);
60 
64  ~KToggleToolBarAction() override;
65 
69  KToolBar *toolBar();
70 
74  bool eventFilter(QObject *watched, QEvent *event) override;
75 
76 private Q_SLOTS:
77  void slotToggled(bool checked) override;
78 
79 private:
80  class Private;
81  Private *const d;
82 };
83 
84 #endif
An action that takes care of everything associated with showing or hiding a toolbar by a menu action...
virtual bool eventFilter(QObject *watched, QEvent *event)
Floatable toolbar with auto resize.
Definition: ktoolbar.h:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Dec 4 2020 22:51:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.