|
|
@ -107,12 +107,12 @@ UBGraphicsItemDelegate::UBGraphicsItemDelegate(QGraphicsItem* pDelegated, QObjec |
|
|
|
, mFrame(0) |
|
|
|
, mFrame(0) |
|
|
|
, mFrameWidth(UBSettings::settings()->objectFrameWidth) |
|
|
|
, mFrameWidth(UBSettings::settings()->objectFrameWidth) |
|
|
|
, mAntiScaleRatio(1.0) |
|
|
|
, mAntiScaleRatio(1.0) |
|
|
|
|
|
|
|
, mToolBarItem(NULL) |
|
|
|
, mCanRotate(canRotate) |
|
|
|
, mCanRotate(canRotate) |
|
|
|
, mCanDuplicate(true) |
|
|
|
, mCanDuplicate(true) |
|
|
|
, mRespectRatio(respectRatio) |
|
|
|
, mRespectRatio(respectRatio) |
|
|
|
, mMimeData(NULL) |
|
|
|
, mMimeData(NULL) |
|
|
|
, mFlippable(false) |
|
|
|
, mFlippable(false) |
|
|
|
, mToolBarItem(NULL) |
|
|
|
|
|
|
|
, mToolBarUsed(useToolBar) |
|
|
|
, mToolBarUsed(useToolBar) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// NOOP
|
|
|
|
// NOOP
|
|
|
@ -1075,11 +1075,11 @@ void MediaTimer::display(const QString &s) |
|
|
|
void MediaTimer::setNumDigits(int numDigits) |
|
|
|
void MediaTimer::setNumDigits(int numDigits) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (numDigits > 99) { |
|
|
|
if (numDigits > 99) { |
|
|
|
qWarning("QLCDNumber::setNumDigits: (%s) Max 99 digits allowed"); |
|
|
|
qWarning("QLCDNumber::setNumDigits: Max 99 digits allowed"); |
|
|
|
numDigits = 99; |
|
|
|
numDigits = 99; |
|
|
|
} |
|
|
|
} |
|
|
|
if (numDigits < 0) { |
|
|
|
if (numDigits < 0) { |
|
|
|
qWarning("QLCDNumber::setNumDigits: (%s) Min 0 digits allowed"); |
|
|
|
qWarning("QLCDNumber::setNumDigits: Min 0 digits allowed"); |
|
|
|
numDigits = 0; |
|
|
|
numDigits = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
if (digitStr.isNull()) { // from constructor
|
|
|
|
if (digitStr.isNull()) { // from constructor
|
|
|
|