Class sh::paneldetails::PanelDetailRowValueElement

class sh::paneldetails::PanelDetailRowValueElement

One element of a detail row’s value.

This can be something like a string, an icon or a link button.

Public Functions

PanelDetailRowValueElement()

A placeholder for a value which is not yet arrived. It could be visualized with a loading animation or ‘…’. Is intended to be directly constructed from everywhere.

PanelDetailRowValueElement(QString text)

A piece of text. Is intended to be directly constructed from everywhere.

PanelDetailRowValueElement(QIcon icon)

An icon. Is intended to be directly constructed from everywhere.

PanelDetailRowValueElement(QString text, QString linktarget, bool autohide)

A link button. Is intended to be directly constructed from everywhere.

QString text()

Returns the text.

QIcon icon()

Returns the icon.

QString linktarget()

Returns the link target.

bool linkautohide()

Returns if this link shall automatically hide (e.g. when the mouse disappears).

bool isWaiting()

Returns if it is currently waiting for an update.

Private Members

QString _text
QIcon _icon
QString _linktarget
bool _linkautohide = false
bool _iswaiting = false