KDEUI
Go to the documentation of this file.
25#include <QtCore/QString>
45 explicit KGuiItem(
const QString &text,
46 const QString &iconName = QString(),
47 const QString &toolTip = QString(),
48 const QString &whatsThis = QString() );
51 const QString &toolTip = QString(),
52 const QString &whatsThis = QString() );
60 QString plainText()
const;
63#ifndef KDE_NO_DEPRECATED
69 QString iconName()
const;
70 QString toolTip()
const;
71 QString whatsThis()
const;
72 bool isEnabled()
const;
74#if !defined(KDE_NO_COMPAT) && !defined(KDE_NO_DEPRECATED)
75 KDE_DEPRECATED
bool hasIconSet()
const {
return hasIcon(); }
78 void setText(
const QString &text );
79 void setIcon(
const KIcon &iconset );
80 void setIconName(
const QString &iconName );
81 void setToolTip(
const QString &tooltip );
82 void setWhatsThis(
const QString &whatsThis );
83 void setEnabled(
bool enable );
86 class KGuiItemPrivate;
An abstract class for GUI data such as ToolTip and Icon.
Group
The group of the icon.
@ Small
Small icons, e.g. for buttons.
A wrapper around QIcon that provides KDE icon features.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.