mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
- fixed xQuality label bug
This commit is contained in:
parent
8a80554ae8
commit
b09482fd3d
@ -1271,14 +1271,11 @@ void QualityMapperDialog::updateXQualityLabel(float xPos)
|
||||
_currentTfHandleQualityValue.setNum(relative2QualityValf(xPos, ui.minSpinBox->value(), ui.maxSpinBox->value(), exp));
|
||||
if (_currentTfHandleQualityValue.size() < QUALITY_LABEL_DIGITS_NUM)
|
||||
{
|
||||
int pos = 0;
|
||||
QChar paddedZeros[] = {'0','0','0','0','0','0'};
|
||||
if((pos = _currentTfHandleQualityValue.indexOf('.')) == -1)
|
||||
{
|
||||
if(_currentTfHandleQualityValue.indexOf('.') == -1)
|
||||
_currentTfHandleQualityValue.append('.');
|
||||
pos = _currentTfHandleQualityValue.size() - 1;
|
||||
}
|
||||
_currentTfHandleQualityValue.insert(pos, paddedZeros, QUALITY_LABEL_DIGITS_NUM-_currentTfHandleQualityValue.size());
|
||||
if ((QUALITY_LABEL_DIGITS_NUM - _currentTfHandleQualityValue.size()) > 0)
|
||||
_currentTfHandleQualityValue.insert(_currentTfHandleQualityValue.size(), paddedZeros, QUALITY_LABEL_DIGITS_NUM-_currentTfHandleQualityValue.size());
|
||||
}
|
||||
ui.xQualityLabel->setText(_currentTfHandleQualityValue);
|
||||
}
|
||||
|
||||
@ -27,8 +27,8 @@ FIRST RELEASE
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QUALITYMAPPERDIALOG_H
|
||||
#define QUALITYMAPPERDIALOG_H
|
||||
#ifndef _QUALITYMAPPER_DIALOG_H_
|
||||
#define _QUALITYMAPPER_DIALOG_H_
|
||||
|
||||
#include <QDockWidget>
|
||||
#include <QGraphicsItem>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user