LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RenderedLabel Class Reference

#include <renderedlabel.h>

Inheritance diagram for RenderedLabel:
[legend]
Collaboration diagram for RenderedLabel:
[legend]

Protected Member Functions

 RenderedLabel ()
 
 RenderedLabel (const QString &text)
 
 RenderedLabel (const QString &text, const QFont &font)
 
 RenderedLabel (const QString &text, const QFont &font, const QSize &maxBoundBox)
 
 RenderedLabel (const QString &text, const QFont &font, const QPen &pen)
 
 RenderedLabel (const QString &text, const QFont &font, const QPen &pen, const QSize &maxBoundBox)
 

Static Protected Member Functions

static QString createElidedLabel (const QString &srcText, const QFont &font, const QSize &bounds)
 
static void textLabelElementsByLineBreaks (const QString &str, QList< QString > &elements, int offsetIntoString=0)
 
static void customBreakString (const QString &text, const int textBoundWidth, const int textBoundHeight, const QFontMetrics &fm, QList< QString > &elements, int *pLastIndexUsed=0)
 

Protected Attributes

bool m_valid
 
bool m_rendered
 
QString m_text
 
QFont m_font
 
bool m_usePen
 
QPen m_pen
 
QSize m_maxBoundBox
 

Constructor & Destructor Documentation

RenderedLabel::RenderedLabel ( )
protected
RenderedLabel::RenderedLabel ( const QString &  text)
protected
RenderedLabel::RenderedLabel ( const QString &  text,
const QFont &  font 
)
protected
RenderedLabel::RenderedLabel ( const QString &  text,
const QFont &  font,
const QSize &  maxBoundBox 
)
protected
RenderedLabel::RenderedLabel ( const QString &  text,
const QFont &  font,
const QPen &  pen 
)
protected
RenderedLabel::RenderedLabel ( const QString &  text,
const QFont &  font,
const QPen &  pen,
const QSize &  maxBoundBox 
)
protected

Member Function Documentation

QString RenderedLabel::createElidedLabel ( const QString &  srcText,
const QFont &  font,
const QSize &  bounds 
)
staticprotected
void RenderedLabel::customBreakString ( const QString &  text,
const int  textBoundWidth,
const int  textBoundHeight,
const QFontMetrics &  fm,
QList< QString > &  elements,
int pLastIndexUsed = 0 
)
staticprotected
void RenderedLabel::textLabelElementsByLineBreaks ( const QString &  str,
QList< QString > &  elements,
int  offsetIntoString = 0 
)
staticprotected

Member Data Documentation

QFont RenderedLabel::m_font
protected
QSize RenderedLabel::m_maxBoundBox
protected
QPen RenderedLabel::m_pen
protected
bool RenderedLabel::m_rendered
protected
QString RenderedLabel::m_text
protected
bool RenderedLabel::m_usePen
protected
bool RenderedLabel::m_valid
protected

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