Qt widget item allowing to store link informations.
More...
|
|
static constexpr int | TypeId = QTableWidgetItem::UserType + 1 |
| |
Qt widget item allowing to store link informations.
Note that this class inherit from QTableWidgetItem.
Events management required usage of TableWidgetLinkHelper
- See also
- TableWidgetLinkHelper
◆ TableWidgetItemLink() [1/3]
| tbq::TableWidgetItemLink::TableWidgetItemLink |
( |
| ) |
|
Construct a table item link.
- See also
- setLink()
◆ TableWidgetItemLink() [2/3]
| tbq::TableWidgetItemLink::TableWidgetItemLink |
( |
const RichLink & | link | ) |
|
Construct a table item link with the given link.
- Parameters
-
| [in] | link | Rich link to use for the item. |
- See also
- setLink()
◆ TableWidgetItemLink() [3/3]
| tbq::TableWidgetItemLink::TableWidgetItemLink |
( |
const QIcon & | icon, |
|
|
const RichLink & | link ) |
Construct a table item link with the given icon and link.
- Parameters
-
| [in] | icon | Icon to use for the item. |
| [in] | link | Rich link to use for the item. |
- See also
- setLink()
◆ openLink()
| bool tbq::TableWidgetItemLink::openLink |
( |
| ) |
const |
Allow to open item link URL.
- Returns
- Returns
true if opening the URL has been accepted. This doesn't mean that the URL opening succeed, only that the request is accepted.
◆ setLink()
| void tbq::TableWidgetItemLink::setLink |
( |
const RichLink & | link | ) |
|
Use to set link of the item.
- Parameters
-
| [in] | link | Rich link to use for the item. |
◆ isTypeId()
| bool tbq::TableWidgetItemLink::isTypeId |
( |
const QTableWidgetItem * | item | ) |
|
|
static |
Use to verify if a QTableWidgetItem is a TableWidgetItemLink.
Can be useful is the type must be cast:
- Parameters
-
| [in] | item | Table widget item to verify.
if NULL, false will be returned. |
- Returns
- Returns
true if item is a TableWidgetItemLink object.
The documentation for this class was generated from the following files: