summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-10-31 15:33:40 -0500
committerTimothy Pearson <[email protected]>2012-10-31 15:33:40 -0500
commit289363b959ac4720ee604f1dfba54c624f0098c0 (patch)
treecd4faa13aeb5f07ae258aa18beae6a82f8ff651d /src
parenta5ced706e9295f4f3c1e95c829750dff0d808935 (diff)
downloadqt3-289363b959ac4720ee604f1dfba54c624f0098c0.tar.gz
qt3-289363b959ac4720ee604f1dfba54c624f0098c0.zip
Add public set methods to QMenuItem
Diffstat (limited to 'src')
-rw-r--r--src/widgets/qmenudata.h14
1 files changed, 14 insertions, 0 deletions
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