Move vol/pan s_textFloat handling code into separate functions;

this avoids some code duplication & makes the mouseevent/wheelevent functions slightly smaller
This commit is contained in:
Colin Wallace
2015-09-06 13:09:23 -07:00
parent e606e30486
commit ebc606aaf2
2 changed files with 57 additions and 35 deletions

View File

@@ -69,6 +69,11 @@ public:
/*! \brief Resets settings to default when e.g. creating a new project */
void reset();
// functions to display the hover-text labeling a note's volume/panning
void showTextFloat(const QString &text, const QPoint &pos, int timeout=-1);
void showVolTextFloat(volume_t vol, const QPoint &pos, int timeout=-1);
void showPanTextFloat(panning_t pan, const QPoint &pos, int timeout=-1);
void setCurrentPattern( Pattern* newPattern );
inline void stopRecording()