Author: sh-sh-sh Date: Wed Dec 19 15:02:16 2007 New Revision: 43187 URL: http://svn.opensuse.org/viewcvs/yast?rev=43187&view=rev Log: fixed implicit conversion warning: convert explicitly to int Modified: trunk/qt/src/YQMultiProgressMeter.cc Modified: trunk/qt/src/YQMultiProgressMeter.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMultiProgressMeter.cc?re... ============================================================================== --- trunk/qt/src/YQMultiProgressMeter.cc (original) +++ trunk/qt/src/YQMultiProgressMeter.cc Wed Dec 19 15:02:16 2007 @@ -244,9 +244,9 @@ { QStyleOptionProgressBarV2 opts; opts.initFrom(this); - opts.progress = currentValue( segment); + opts.progress = (int) currentValue( segment); opts.minimum = 0; - opts.maximum = maxValue( segment); + opts.maximum = (int) maxValue( segment); opts.invertedAppearance = true; opts.rect = QRect( offset, border, length, thickness ); style()->drawControl(QStyle::CE_ProgressBarGroove, &opts, &painter, this); @@ -258,9 +258,9 @@ { QStyleOptionProgressBarV2 opts; opts.initFrom(this); - opts.progress = maxValue( segment) - currentValue( segment); + opts.progress = (int) ( maxValue( segment) - currentValue( segment) ); opts.minimum = 0; - opts.maximum = maxValue( segment); + opts.maximum = (int) maxValue( segment); opts.rect = QRect( offset, border, length, thickness ); style()->drawControl(QStyle::CE_ProgressBarGroove, &opts, &painter, this); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org