#include <playlistheadermodel.h>
Inherits QObject.
Helper class that provides access to playlist column configuration.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ PlayListHeaderModel()
Constructs a playlist model.
- Parameters
-
◆ ~PlayListHeaderModel()
◆ columnAdded
void columnAdded |
( |
int | index | ) |
|
|
signal |
Emitted when a new column is added.
- Parameters
-
index | Index of the column. |
◆ columnChanged
void columnChanged |
( |
int | index | ) |
|
|
signal |
Emitted when a column is changed.
- Parameters
-
index | Index of the column. |
◆ columnMoved
void columnMoved |
( |
int | from, |
|
|
int | to ) |
|
signal |
Emitted when the column at index position from is moved to index position to.
◆ columnRemoved
void columnRemoved |
( |
int | index | ) |
|
|
signal |
Emitted when a column is removed.
- Parameters
-
index | Index of the column. |
◆ count()
Returns number of the columns.
◆ data()
const QVariant data |
( |
int | index, |
|
|
int | key ) const |
Returns extra data of the column.
- Parameters
-
index | Index of the column. |
key | Key of the extra field. |
◆ execEdit()
void execEdit |
( |
int | index, |
|
|
QWidget * | parent = nullptr ) |
Opens internal column editor.
- Parameters
-
index | Index of the column. |
parent | Parent widget, |
◆ execInsert()
void execInsert |
( |
int | index, |
|
|
QWidget * | parent = nullptr ) |
Opens internal column editor and inserts new column if user press "ok".
- Parameters
-
index | Required index of the column. |
parent | Parent widget. |
◆ headerChanged
Emitted when columns have changed.
◆ insert()
void insert |
( |
int | index, |
|
|
const QString & | name, |
|
|
const QString & | pattern ) |
Inserts the new column.
- Parameters
-
index | Index of the column. |
name | Name of the column. |
pattern | Column template. See MetaDataFormatter for details. |
◆ isSettingsLoaded()
bool isSettingsLoaded |
( |
| ) |
const |
Indicates that the settings is loaded.
◆ move()
void move |
( |
int | from, |
|
|
int | to ) |
Moves the column at index position from to index position to.
◆ name()
const QString name |
( |
int | index | ) |
const |
Returns name of the column with index index.
◆ pattern()
const QString pattern |
( |
int | index | ) |
const |
Returns template of the column with index index.
◆ remove()
Removes column.
- Parameters
-
index | Index of the column. |
◆ restoreSettings() [1/2]
void restoreSettings |
( |
const QString & | groupName | ) |
|
Restores column settings using internal configuration file.
- Parameters
-
groupName | Name of the settings group (should be different for each UI plugin) |
◆ restoreSettings() [2/2]
void restoreSettings |
( |
QSettings * | settings | ) |
|
Restores column settings using provided QSettings object.
- Parameters
-
settings | Pointer to QSettings object. |
◆ saveSettings() [1/2]
void saveSettings |
( |
const QString & | groupName | ) |
|
Saves column settings using internal configuration file.
- Parameters
-
groupName | Name of the settings group (should be different for each UI plugin) |
◆ saveSettings() [2/2]
void saveSettings |
( |
QSettings * | settings | ) |
|
Saves column settings using provided QSettings object.
- Parameters
-
settings | Pointer to QSettings object. |
◆ setData()
void setData |
( |
int | index, |
|
|
int | key, |
|
|
const QVariant & | data ) |
Adds extra data to column (size, geometry, etc).
- Parameters
-
index | Index of the column. |
key | Key of the extra field. |
data | Extra data value. |
The documentation for this class was generated from the following file: