• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaComponents

  • sources
  • kde-4.14
  • kde-runtime
  • plasma
  • declarativeimports
  • plasmacomponents
qmenuitem.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2011 Viranch Mehta <viranch.mehta@gmail.com> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18  ***************************************************************************/
19 
20 #ifndef QMENUITEM_H
21 #define QMENUITEM_H
22 
23 #include <QAction>
24 #include <QObject>
25 
26 class QMenuItem : public QAction
27 {
28  Q_OBJECT
29 
33  Q_PROPERTY(QObject *parent READ parent WRITE setParent)
34 
35 
38  Q_PROPERTY(bool separator READ isSeparator WRITE setSeparator)
39 
40 public:
41  QMenuItem(QObject *parent = 0);
42 
43 Q_SIGNALS:
44  void clicked();
45 };
46 
47 #endif // QMENUITEM_H
48 
QAction::setSeparator
void setSeparator(bool b)
QMenuItem
Definition: qmenuitem.h:26
QMenuItem::QMenuItem
QMenuItem()
QAction::isSeparator
bool isSeparator() const
QObject
QObject::setParent
void setParent(QObject *parent)
QAction
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaComponents

Skip menu "PlasmaComponents"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal