From: werner s. <wsc...@us...> - 2005-10-11 18:32:09
|
Update of /cvsroot/lmuse/muse/awl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8396/awl Modified Files: posedit.cpp posedit.h Log Message: more updates Index: posedit.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/awl/posedit.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** posedit.cpp 10 Oct 2005 19:34:08 -0000 1.12 --- posedit.cpp 11 Oct 2005 18:31:58 -0000 1.13 *************** *** 23,26 **** --- 23,27 ---- : QAbstractSpinBox(parent) { + initialized = false; setReadOnly(false); setMinimumWidth(130); //TD: sizeHint *************** *** 397,400 **** --- 398,408 ---- lineEdit()->setSelection(selPos, selLen); } + + void PosEdit::paintEvent(QPaintEvent* event) { + if (!initialized) + updateValue(); + initialized = true; + QAbstractSpinBox::paintEvent(event); + } } Index: posedit.h =================================================================== RCS file: /cvsroot/lmuse/muse/awl/posedit.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** posedit.h 10 Oct 2005 19:34:08 -0000 1.6 --- posedit.h 11 Oct 2005 18:31:58 -0000 1.7 *************** *** 28,32 **** --- 28,34 ---- bool _smpte; Pos _pos; + bool initialized; + virtual void paintEvent(QPaintEvent* event); virtual void stepBy(int steps); virtual StepEnabled stepEnabled() const; |