A widget for displaying a list of audio files.
More...
#include <FileListWidget.h>
|
void | populateList (QList< AudioSample > files) |
| Populate the file list with the given list of AudioSample files.
|
|
void | clearList () |
| Clear the file list.
|
|
QString | getSelectedFilePath () |
| Get the file path of the selected file.
|
|
bool | eventFilter (QObject *obj, QEvent *event) |
| Filters events if this object has been installed as an event filter for the watched object.
|
|
|
void | didSelectAudioFile (QString) |
| Signal emitted when an audio file is selected.
|
|
void | didPushImportFileButton () |
| Signal emitted when the "Import file" button is clicked.
|
|
void | didPushClearFileButton () |
| Signal emitted when the "Clear files" button is clicked.
|
|
A widget for displaying a list of audio files.
FileListWidget provides a scrollable area for displaying a list of audio files, and emits signals when a file is selected, or when the user interacts with the "Import file" or "Clear files" buttons.
◆ FileListWidget()
FileListWidget::FileListWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ createWidget()
QWidget * FileListWidget::createWidget |
( |
| ) |
|
Creates the widget for the FileListWidget.
- Returns
- A pointer to the created widget.
◆ didSelectAudioFile
void FileListWidget::didSelectAudioFile |
( |
QString |
_t1 | ) |
|
|
signal |
Signal emitted when an audio file is selected.
- Parameters
-
filePath | The file path of the selected audio file. |
◆ eventFilter
bool FileListWidget::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 to be filtered. |
- Returns
- true if the event should be filtered out (i.e., stopped); otherwise false.
◆ getSelectedFilePath
QString FileListWidget::getSelectedFilePath |
( |
| ) |
|
|
slot |
Get the file path of the selected file.
- Returns
- The file path of the selected file.
◆ populateList
void FileListWidget::populateList |
( |
QList< AudioSample > |
files | ) |
|
|
slot |
Populate the file list with the given list of AudioSample files.
- Parameters
-
The documentation for this class was generated from the following files:
- include/FileListWidget.h
- release/AudibleT_autogen/6YEA5652QU/moc_FileListWidget.cpp
- release/AudibleTBenchmarks_autogen/6YEA5652QU/moc_FileListWidget.cpp
- release/AudibleTTests_autogen/6YEA5652QU/moc_FileListWidget.cpp
- src/FileListWidget.cpp