[TD]change misleading prop name - Shape

This commit is contained in:
wandererfan
2020-06-11 09:25:31 -04:00
committed by WandererFan
parent 0e4d893651
commit c92d725aed
4 changed files with 22 additions and 22 deletions

View File

@@ -440,7 +440,7 @@ void QGIViewBalloon::updateBalloon(bool obtuse)
balloonLabel->verticalSep = false;
balloonLabel->seps.clear();
if (strcmp(balloon->Shape.getValueAsString(), "Rectangle") == 0) {
if (strcmp(balloon->BubbleShape.getValueAsString(), "Rectangle") == 0) {
while (labelText.contains(QString::fromUtf8("|"))) {
int pos = labelText.indexOf(QString::fromUtf8("|"));
labelText.replace(pos, 1, QString::fromUtf8(" "));
@@ -614,7 +614,7 @@ void QGIViewBalloon::draw()
Base::Vector3d kinkPoint;
double kinkLength = Rez::guiX(balloon->KinkLength.getValue());
const char *balloonType = balloon->Shape.getValueAsString();
const char *balloonType = balloon->BubbleShape.getValueAsString();
float scale = balloon->ShapeScale.getValue();
double offsetLR = 0;

View File

@@ -83,7 +83,7 @@ TaskBalloon::TaskBalloon(QGIViewBalloon *parent, ViewProviderBalloon *balloonVP)
ui->comboEndType->setCurrentIndex(i);
connect(ui->comboEndType, SIGNAL(currentIndexChanged(int)), this, SLOT(onEndTypeChanged()));
i = parent->dvBalloon->Shape.getValue();
i = parent->dvBalloon->BubbleShape.getValue();
ui->comboSymbol->setCurrentIndex(i);
connect(ui->comboSymbol, SIGNAL(currentIndexChanged(int)), this, SLOT(onShapeChanged()));
@@ -122,7 +122,7 @@ bool TaskBalloon::accept()
m_balloonVP->Fontsize.setValue(ui->qsbFontSize->value().getValue());
m_parent->dvBalloon->ShapeScale.setValue(ui->inputScale->value().getValue());
m_parent->dvBalloon->EndType.setValue(ui->comboEndType->currentIndex());
m_parent->dvBalloon->Shape.setValue(ui->comboSymbol->currentIndex());
m_parent->dvBalloon->BubbleShape.setValue(ui->comboSymbol->currentIndex());
m_balloonVP->LineWidth.setValue(ui->qsbLineWidth->value().getValue());
m_parent->dvBalloon->KinkLength.setValue(ui->qsbBalloonKink->value().getValue());
m_parent->updateView(true);
@@ -164,7 +164,7 @@ void TaskBalloon::onFontsizeChanged()
void TaskBalloon::onShapeChanged()
{
m_parent->dvBalloon->Shape.setValue(ui->comboSymbol->currentIndex());
m_parent->dvBalloon->BubbleShape.setValue(ui->comboSymbol->currentIndex());
recomputeFeature();
}