From 8e9886770af1022d88e6f92ff4fcceb3e50d0e55 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Tue, 7 Dec 2010 03:27:48 +0000 Subject: Built Awl::posedit and Awl::sigedit, and replaced /widget versions and all usages. Reverted class SpinBox to previous revision. --- muse2/awl/sigedit.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'muse2/awl/sigedit.cpp') 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 //--------------------------------------------------------- -- cgit v1.2.3