Add public set methods to QMenuItem

pull/2/head
Timothy Pearson 12 years ago
parent a5ced706e9
commit 289363b959

@ -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

Loading…
Cancel
Save