summaryrefslogtreecommitdiff
path: root/muse2/awl
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-24 13:39:39 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-24 13:39:39 +0000
commit50e54c9b95c39badcd1f30443f30a74a7eb69ea3 (patch)
tree80c9cfa61cb4b9b76dc22f2774551258024d8224 /muse2/awl
parentef0aa8834d71587f7c417bb36d865ed1c8919a0b (diff)
improved step recording and minor fixes
Diffstat (limited to 'muse2/awl')
-rw-r--r--muse2/awl/pitchedit.cpp4
-rw-r--r--muse2/awl/pitchedit.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/muse2/awl/pitchedit.cpp b/muse2/awl/pitchedit.cpp
index 93f4b310..71486be8 100644
--- a/muse2/awl/pitchedit.cpp
+++ b/muse2/awl/pitchedit.cpp
@@ -54,7 +54,7 @@ void PitchEdit::keyPressEvent(QKeyEvent* ev)
// mapValueToText
//---------------------------------------------------------
-QString PitchEdit::mapValueToText(int v)
+QString PitchEdit::textFromValue(int v) const
{
if (deltaMode) {
QString s;
@@ -69,7 +69,7 @@ QString PitchEdit::mapValueToText(int v)
// mapTextToValue
//---------------------------------------------------------
-int PitchEdit::mapTextToValue(bool* ok)
+int PitchEdit::valueFromText(bool* ok) const
{
printf("AwlPitchEdit: mapTextToValue: not impl.\n");
if (ok)
diff --git a/muse2/awl/pitchedit.h b/muse2/awl/pitchedit.h
index bdcfc4c4..f9b5b24e 100644
--- a/muse2/awl/pitchedit.h
+++ b/muse2/awl/pitchedit.h
@@ -37,8 +37,8 @@ class PitchEdit : public QSpinBox {
bool deltaMode;
protected:
- virtual QString mapValueToText(int v);
- virtual int mapTextToValue(bool* ok);
+ virtual QString textFromValue(int v) const;
+ virtual int valueFromText(bool* ok) const;
virtual void keyPressEvent(QKeyEvent*);
signals: