Qt Virtual Chart Table (QVCT)
COverlayUrl Class Reference

[UI] Overlay-specific URL label More...

#include <overlays/COverlayUrl.hpp>

Inheritance diagram for COverlayUrl:
COverlayText

Public Member Functions

 COverlayUrl (QWidget *_pqParent=0)
 
 COverlayUrl (const QString &_rqsText, QWidget *_pqParent=0)
 
 COverlayUrl (const QString &_rqsText, const QString &_rqsLink, QWidget *_pqParent=0)
 
virtual ~COverlayUrl ()
 
void setText (const QString &_rqsText)
 
virtual void setText (const QString &_rqsText, bool _bInvalid)
 Sets the underlying QLabel's text. More...
 
virtual void setText (const QString &_rqsText, const QString &_rqsLink, bool _bInvalid)
 Sets the underlying QLabel's text. More...
 
- Public Member Functions inherited from COverlayText
 COverlayText (QWidget *_pqParent=0)
 
 COverlayText (const QString &_rqsText, QWidget *_pqParent=0)
 
virtual ~COverlayText ()
 
void setText (const QString &_rqsText)
 [override] QLabel::setText( const QString& ) More...
 
void resetText ()
 Resets (clears) the underlying QLabel's text. More...
 
const QString & emptyString ()
 Returns the string corresponding to undefined (empty) content ("n/a" in English) More...
 
QString formatString (const QString &_rqsString)
 Returns the string properly formatted if it is undefined (empty) More...
 

Detailed Description

[UI] Overlay-specific URL label

This class provides the widget that allows the display an URL and make it clickable if it is valid.

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 35 of file COverlayUrl.hpp.

Constructor & Destructor Documentation

◆ COverlayUrl() [1/3]

COverlayUrl::COverlayUrl ( QWidget *  _pqParent = 0)

Definition at line 32 of file COverlayUrl.cpp.

◆ COverlayUrl() [2/3]

COverlayUrl::COverlayUrl ( const QString &  _rqsText,
QWidget *  _pqParent = 0 
)

Definition at line 36 of file COverlayUrl.cpp.

◆ COverlayUrl() [3/3]

COverlayUrl::COverlayUrl ( const QString &  _rqsText,
const QString &  _rqsLink,
QWidget *  _pqParent = 0 
)

Definition at line 40 of file COverlayUrl.cpp.

◆ ~COverlayUrl()

virtual COverlayUrl::~COverlayUrl ( )
inlinevirtual

Definition at line 46 of file COverlayUrl.hpp.

Member Function Documentation

◆ setText() [1/3]

void COverlayUrl::setText ( const QString &  _rqsText)

Definition at line 51 of file COverlayUrl.cpp.

◆ setText() [2/3]

void COverlayUrl::setText ( const QString &  _rqsText,
bool  _bInvalid 
)
virtual

Sets the underlying QLabel's text.

This methods sets the underlying QLabel's text. If the text is undefined (empty), it displays a graceful equivalent content instead ("n/a" in English). If the content is deemed invalid by the user, it is displayed using italic font.

Reimplemented from COverlayText.

Definition at line 65 of file COverlayUrl.cpp.

◆ setText() [3/3]

void COverlayUrl::setText ( const QString &  _rqsText,
const QString &  _rqsLink,
bool  _bInvalid 
)
virtual

Sets the underlying QLabel's text.

This methods sets the underlying QLabel's text and makes it clickable if the provided corresponding link is valid.

Definition at line 70 of file COverlayUrl.cpp.


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