![]() |
Songbook-Client
0.7
This application is a manager of customguitar songbooks
|
CCoverDropArea displays the cover of a song. More...
#include <song-header-editor.hh>
Public Slots | |
| void | clear () |
| void | update () |
Signals | |
| void | changed (const QMimeData *mimeData=0) |
| void | coverChanged () |
| void | miniCoverChanged (const QPixmap &thumbnail) |
Public Member Functions | |
| CCoverDropArea (CSongHeaderEditor *parent) | |
| Constructor. | |
| Song & | song () |
| const QImage & | cover () |
| void | setCover (const QImage &cover) |
| void | setCover (const QString &filename) |
| CSongHeaderEditor * | parent () const |
| void | setParent (CSongHeaderEditor *p) |
CCoverDropArea displays the cover of a song.
The cover area displays the cover of a song within a raised box. If there is no cover to display, it displays a generic image-missing icon. Clicking on the area prompts a file picker dialog where an external .jpg cover can be selected. The cover area also accepts drops from local .jpg files.
|
signal |
This signal is emitted whenever new data is dragged within the cover area.
|
slot |
Resets the background of the cover area.
| const QImage & CCoverDropArea::cover | ( | ) |
Returns the cover of the song.
|
signal |
This signal is emitted whenever a new cover image is displayed.
|
signal |
This signal is emitted whenever a new cover image is displayed.
| CSongHeaderEditor * CCoverDropArea::parent | ( | ) | const |
Returns the parent widget.
| void CCoverDropArea::setCover | ( | const QImage & | cover | ) |
Sets cover as the cover of the song.
| void CCoverDropArea::setCover | ( | const QString & | filename | ) |
Sets the file at (absolute) path filename as the cover of the song. A .jpg file is expected.
| void CCoverDropArea::setParent | ( | CSongHeaderEditor * | p | ) |
Sets p as the parent object.
|
slot |
Updates the cover-related fields of the song according to current image.
1.8.1.1