From 289363b959ac4720ee604f1dfba54c624f0098c0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 31 Oct 2012 15:33:40 -0500 Subject: [PATCH] Add public set methods to QMenuItem --- src/widgets/qmenudata.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/widgets/qmenudata.h b/src/widgets/qmenudata.h index 13f26c3..ee6f9f9 100644 --- a/src/widgets/qmenudata.h +++ b/src/widgets/qmenudata.h @@ -90,6 +90,20 @@ public: void setVisible( bool visible ) { is_visible = visible; } void setWhatsThis( const QString &text ) { whatsthis_data = text; } + // Do not use these methods unless you know exactly what you are doing! + void setSeparator( bool separator ) { is_separator = separator; } + void setEnabled( bool enabled ) { is_enabled = enabled; } + void setChecked( bool checked ) { is_checked = checked; } + void setIdent( int identifier ) { ident = identifier; } + void setIconSet( QIconSet* iconset ) { iconset_data = iconset; } + void setPixmap( QPixmap* pixmap ) { pixmap_data = pixmap; } + void setPopup( QPopupMenu* popup ) { popup_menu = popup; } + void setWidget( QWidget* widget ) { widget_item = widget; } +#ifndef QT_NO_ACCEL + void setKey( QKeySequence key ) { accel_key = key; } +#endif + void setSignal( QSignal* signal ) { signal_data = signal; } + private: int ident; // item identifier QIconSet *iconset_data; // icons