AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | List of all members

The SessionListWidget class provides a widget for displaying a list of TestingSession objects. More...

#include <SessionListWidget.h>

Inheritance diagram for SessionListWidget:
Inheritance graph
[legend]
Collaboration diagram for SessionListWidget:
Collaboration graph
[legend]

Public Slots

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.
 

Signals

void didSelectTestingSession (int sessionId)
 This signal is emitted when a testing session is selected.
 

Public Member Functions

 SessionListWidget (QWidget *parent=nullptr)
 Constructs a SessionListWidget with the given parent.
 
 ~SessionListWidget ()
 Destroys the SessionListWidget.
 
QWidget * createWidget ()
 Creates and returns a QWidget to be used as the main widget.
 
int getSelectedSessionId () const
 Returns the session ID of the currently selected session.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SessionListWidget()

SessionListWidget::SessionListWidget ( QWidget *  parent = nullptr)
explicit

Constructs a SessionListWidget with the given parent.

Parameters
parentThe parent widget. It defaults to nullptr.

Member Function Documentation

◆ 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
sessionIdThe 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
objThe object being watched.
eventThe 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
sessionsThe sessions to populate the list with.

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