MagicSmoke  $VERSION$
MFlagWidget Class Reference

simple widget that displays flags and allows to edit them More...

#include <flagedit.h>

Inheritance diagram for MFlagWidget:

Public Slots

void setEditable (bool e=true)
 makes the widget editable (this is the default) More...
 
void setEditorLabel (QString e)
 sets the label for the flag editor when the user changes flags More...
 
void setFlags (QString)
 sets the flags displayed in this widget More...
 
void setFlags (QStringList)
 sets the flags displayed in this widget More...
 
void setReadonly (bool ro=true)
 makes the widget readonly (per default it is editable) More...
 
void setText (QString)
 sets the flags displayed in this widget (alias for compatibility with other widgets) More...
 

Public Member Functions

 MFlagWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 creates a flag widget with no flags set, per default it is editable More...
 
 MFlagWidget (QString flags, QWidget *parent=0, Qt::WindowFlags f=0)
 creates a flag widget with flags set, per default it is editable More...
 
 MFlagWidget (QStringList flags, QWidget *parent=0, Qt::WindowFlags f=0)
 creates a flag widget with flags set, per default it is editable More...
 
QString editorLabel () const
 returns the label that will be used for the flag editor More...
 
QString flags () const
 returns the currently displayed flags as string More...
 
QString text () const
 alias for flags() (for compatibility with other widgets) More...
 

Detailed Description

simple widget that displays flags and allows to edit them

Constructor & Destructor Documentation

MFlagWidget::MFlagWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

creates a flag widget with no flags set, per default it is editable

MFlagWidget::MFlagWidget ( QString  flags,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

creates a flag widget with flags set, per default it is editable

References setFlags().

MFlagWidget::MFlagWidget ( QStringList  flags,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

creates a flag widget with flags set, per default it is editable

References setFlags().

Member Function Documentation

QString MFlagWidget::editorLabel ( ) const
inline

returns the label that will be used for the flag editor

QString MFlagWidget::flags ( ) const
inline

returns the currently displayed flags as string

void MFlagWidget::setEditable ( bool  e = true)
slot

makes the widget editable (this is the default)

Referenced by setReadonly().

void MFlagWidget::setEditorLabel ( QString  e)
slot

sets the label for the flag editor when the user changes flags

Referenced by MEventEditor::MEventEditor().

void MFlagWidget::setFlags ( QString  f)
slot

sets the flags displayed in this widget

Referenced by MFlagWidget(), setFlags(), and setText().

void MFlagWidget::setFlags ( QStringList  fl)
slot

sets the flags displayed in this widget

References setFlags().

void MFlagWidget::setReadonly ( bool  ro = true)
slot

makes the widget readonly (per default it is editable)

References setEditable().

void MFlagWidget::setText ( QString  f)
slot

sets the flags displayed in this widget (alias for compatibility with other widgets)

References setFlags().

QString MFlagWidget::text ( ) const
inline

alias for flags() (for compatibility with other widgets)


The documentation for this class was generated from the following files: