Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxMenu::Title Class Reference

Popup menu title item. More...

Inheritance diagram for QtxMenu::Title:
Inheritance graph

Public Member Functions

 Title (QWidget *=0)
 Constructor. More...
 
virtual ~Title ()
 Destructor. More...
 
QIcon icon () const
 Get title icon. More...
 
void setIcon (const QIcon &)
 Set title icon. More...
 
QString text () const
 Get title menu text. More...
 
void setText (const QString &)
 Set title menu text. More...
 
Qt::Alignment alignment () const
 Get title alignment flags. More...
 
void setAlignment (const Qt::Alignment)
 Set title alignment flags. More...
 
virtual QSize sizeHint () const
 Get recommended size for the title item widget. More...
 
virtual QSize minimumSizeHint () const
 Get recommended minimum size for the title item widget. More...
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
 Paint the title item widget. More...
 

Private Attributes

QIcon myIcon
 
QString myText
 
Qt::Alignment myAlignment
 

Detailed Description

Constructor & Destructor Documentation

QtxMenu::Title::Title ( QWidget parent = 0)
Parameters
parentparent widget
QtxMenu::Title::~Title ( )
virtual

Member Function Documentation

Qt::Alignment QtxMenu::Title::alignment ( ) const
Returns
title alignment flags
QIcon QtxMenu::Title::icon ( ) const
Returns
title item icon
QSize QtxMenu::Title::minimumSizeHint ( ) const
virtual
Returns
title item widget minimum size
void QtxMenu::Title::paintEvent ( QPaintEvent *  )
protectedvirtual
Parameters
epaint event (not used)

References OCCViewer::color(), doc, and Window.

void QtxMenu::Title::setAlignment ( const Qt::Alignment  a)
Parameters
atitle alignment flags
void QtxMenu::Title::setIcon ( const QIcon &  ico)
Parameters
icotitle item icon
void QtxMenu::Title::setText ( const QString &  txt)
Parameters
txtmenu text to be used for the title item
QSize QtxMenu::Title::sizeHint ( ) const
virtual
Returns
title item widget size

References doc.

QString QtxMenu::Title::text ( ) const
Returns
menu text for the title item

Member Data Documentation

Qt::Alignment QtxMenu::Title::myAlignment
private
QIcon QtxMenu::Title::myIcon
private
QString QtxMenu::Title::myText
private

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