diff options
author | Tim E. Real <termtech@rogers.com> | 2011-02-09 22:37:27 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-02-09 22:37:27 +0000 |
commit | d7f4820023196bfc7d40ef5fa134bc46a6e55849 (patch) | |
tree | fa00ee04c060c2ece1122f9d3fee382b0d5f043c /muse2/awl/posedit.cpp | |
parent | e11f572d97bb761d848fad41991d0ed747bad111 (diff) |
Mini MIDI overhaul. Please see ChangeLog.
Diffstat (limited to 'muse2/awl/posedit.cpp')
-rw-r--r-- | muse2/awl/posedit.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp index 3d4abaab..e9cddd44 100644 --- a/muse2/awl/posedit.cpp +++ b/muse2/awl/posedit.cpp @@ -93,7 +93,7 @@ bool PosEdit::event(QEvent* event) QKeyEvent* ke = static_cast<QKeyEvent*>(event); if (ke->key() == Qt::Key_Return) { - //printf("key press event Return\n"); // REMOVE Tim. + //printf("key press event Return\n"); //enterPressed(); finishEdit(); emit returnPressed(); @@ -103,7 +103,7 @@ bool PosEdit::event(QEvent* event) if (ke->key() == Qt::Key_Escape) { - //printf("key press event Escape\n"); // REMOVE Tim. + //printf("key press event Escape\n"); if(lineEdit()) lineEdit()->undo(); // "By default, isAccepted() is set to true, but don't rely on this as subclasses may @@ -363,8 +363,8 @@ void PosEdit::fixup(QString& input) const QValidator::State PosEdit::validate(QString& s,int& /*i*/) const { - //printf("validate string:%s int:%d\n", s.toLatin1().data(), i); // REMOVE Tim. - //printf("validate string:%s\n", s.toLatin1().data()); // REMOVE Tim. + //printf("validate string:%s int:%d\n", s.toLatin1().data(), i); + //printf("validate string:%s\n", s.toLatin1().data()); QStringList sl = s.split(_smpte ? ':' : '.'); QValidator::State state; @@ -436,7 +436,7 @@ QValidator::State PosEdit::validate(QString& s,int& /*i*/) const int bm = tm / tb; validator->setRange(1, 9999); - //printf("validate substring 0:%s\n", sl[0].toLatin1().data()); // REMOVE Tim. + //printf("validate substring 0:%s\n", sl[0].toLatin1().data()); // Special hack because validator says 0000 is intermediate. if(sl[0] == "0000") return QValidator::Invalid; @@ -447,7 +447,7 @@ QValidator::State PosEdit::validate(QString& s,int& /*i*/) const rv = state; validator->setRange(1, bm); - //printf("validate substring 1:%s\n", sl[1].toLatin1().data()); // REMOVE Tim. + //printf("validate substring 1:%s\n", sl[1].toLatin1().data()); // Special hack because validator says 00 is intermediate. if(sl[1] == "00") return QValidator::Invalid; @@ -458,7 +458,7 @@ QValidator::State PosEdit::validate(QString& s,int& /*i*/) const rv = state; validator->setRange(0, tb-1); - //printf("validate substring 2:%s\n", sl[2].toLatin1().data()); // REMOVE Tim. + //printf("validate substring 2:%s\n", sl[2].toLatin1().data()); state = validator->validate(sl[2], dpos); if(state == QValidator::Invalid) return state; |