Loading...
Searching...
No Matches
score::QGraphicsWaveformButton Class Referencefinal
Inheritance diagram for score::QGraphicsWaveformButton:
Public Member Functions | |
| QGraphicsWaveformButton (QGraphicsItem *parent) | |
| void | pressed () |
| void | dropped (QString filename) |
| void | bang () |
| const QString & | text () const noexcept |
| bool | hasWaveform () const noexcept |
| void | setFile (const QString &s, const QString &absolute) |
| QRectF | boundingRect () const override |
Member Function Documentation
◆ hasWaveform()
|
inlinenoexcept |
Whether there is a waveform to draw, as opposed to the "drop a file here" placeholder.
◆ setFile()
| void score::QGraphicsWaveformButton::setFile | ( | const QString & | s, |
| const QString & | absolute | ||
| ) |
s is what the document stores and what text() returns – it may be a "<PROJECT>:" or document-relative path. absolute is the same file resolved against the document, which is the only form the audio file manager can open: its two-argument get() takes the path as it stands.
The documentation for this class was generated from the following files:
- AudioFileChooserWidget.hpp
- AudioFileChooserWidget.cpp