summaryrefslogtreecommitdiff
path: root/muse2/awl/sigedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/awl/sigedit.cpp')
-rw-r--r--muse2/awl/sigedit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/muse2/awl/sigedit.cpp b/muse2/awl/sigedit.cpp
index 6493ad6c..193a9bd7 100644
--- a/muse2/awl/sigedit.cpp
+++ b/muse2/awl/sigedit.cpp
@@ -22,6 +22,7 @@
#include "awl.h"
#include "sigedit.h"
#include "al/sig.h"
+//#include "sig.h"
namespace Awl {
@@ -99,6 +100,14 @@ void SigEdit::setValue(const AL::TimeSignature& s)
updateValue();
}
+void SigEdit::setValue(const QString& s)
+ {
+ int z = 4, n = 4;
+ sscanf(s.latin1(), "%d/%d", &z, &n);
+ AL::TimeSignature sig(z, n);
+ setValue(sig);
+ }
+
//---------------------------------------------------------
// updateValue
//---------------------------------------------------------