The SessionListWidget class provides a widget for displaying a list of TestingSession objects.
More...
#include <SessionListWidget.h>
|
void | populateList (QVector< TestingSession > sessions) |
| Populates the list with the given sessions.
|
|
void | clearList () |
| Clears the list of all sessions.
|
|
bool | eventFilter (QObject *obj, QEvent *event) |
| Filters events if this object has been installed as an event filter for the watched object.
|
|
The SessionListWidget class provides a widget for displaying a list of TestingSession objects.
This widget displays a scrollable list of TestingSession objects, with each session being selectable by the user. It emits a signal when a session is selected.
◆ SessionListWidget()
SessionListWidget::SessionListWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructs a SessionListWidget with the given parent.
- Parameters
-
parent | The parent widget. It defaults to nullptr. |
◆ createWidget()
QWidget * SessionListWidget::createWidget |
( |
| ) |
|
Creates and returns a QWidget to be used as the main widget.
- Returns
- A pointer to the QWidget created.
◆ didSelectTestingSession
void SessionListWidget::didSelectTestingSession |
( |
int |
sessionId | ) |
|
|
signal |
This signal is emitted when a testing session is selected.
- Parameters
-
sessionId | The ID of the selected session. |
◆ eventFilter
bool SessionListWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
slot |
Filters events if this object has been installed as an event filter for the watched object.
- Parameters
-
obj | The object being watched. |
event | The event that occurred. |
- Returns
- true if further event processing should be stopped, otherwise returns false to continue event propagation.
◆ getSelectedSessionId()
int SessionListWidget::getSelectedSessionId |
( |
| ) |
const |
Returns the session ID of the currently selected session.
- Returns
- The session ID, or -1 if no session is selected.
◆ populateList
void SessionListWidget::populateList |
( |
QVector< TestingSession > |
sessions | ) |
|
|
slot |
Populates the list with the given sessions.
- Parameters
-
sessions | The sessions to populate the list with. |
The documentation for this class was generated from the following files:
- include/SessionListWidget.h
- release/AudibleT_autogen/6YEA5652QU/moc_SessionListWidget.cpp
- release/AudibleTBenchmarks_autogen/6YEA5652QU/moc_SessionListWidget.cpp
- release/AudibleTTests_autogen/6YEA5652QU/moc_SessionListWidget.cpp
- src/SessionListWidget.cpp