* Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
This commit is contained in:
@@ -182,7 +182,7 @@ void FileChooser::chooseFile()
|
||||
|
||||
if (!fn.isEmpty()) {
|
||||
lineEdit->setText(fn);
|
||||
emit fileNameSelected(fn);
|
||||
Q_EMIT fileNameSelected(fn);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,9 +595,9 @@ QAbstractSpinBox::StepEnabled QuantitySpinBox::stepEnabled() const
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void QuantitySpinBox::stepBy(int steps)
|
||||
{
|
||||
|
||||
void QuantitySpinBox::stepBy(int steps)
|
||||
{
|
||||
double step = StepSize * steps;
|
||||
double val = Value + step;
|
||||
if (val > Maximum)
|
||||
@@ -607,7 +607,7 @@ void QuantitySpinBox::stepBy(int steps)
|
||||
|
||||
lineEdit()->setText(QString::fromUtf8("%L1 %2").arg(val).arg(UnitStr));
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
void QuantitySpinBox::setUnitText(QString str)
|
||||
{
|
||||
@@ -792,9 +792,9 @@ public:
|
||||
UIntSpinBox::UIntSpinBox (QWidget* parent)
|
||||
: QSpinBox (parent)
|
||||
{
|
||||
d = new UIntSpinBoxPrivate;
|
||||
d = new UIntSpinBoxPrivate;
|
||||
d->mValidator = new UnsignedValidator(this->minimum(), this->maximum(), this);
|
||||
connect(this, SIGNAL(valueChanged(int)),
|
||||
connect(this, SIGNAL(valueChanged(int)),
|
||||
this, SLOT(valueChange(int)));
|
||||
setRange(0, 99);
|
||||
setValue(0);
|
||||
@@ -802,7 +802,7 @@ UIntSpinBox::UIntSpinBox (QWidget* parent)
|
||||
}
|
||||
|
||||
UIntSpinBox::~UIntSpinBox()
|
||||
{
|
||||
{
|
||||
delete d->mValidator;
|
||||
delete d; d = 0;
|
||||
}
|
||||
@@ -1032,7 +1032,7 @@ void ColorButton::onChooseColor()
|
||||
if ( c.isValid() )
|
||||
{
|
||||
setColor( c );
|
||||
emit changed();
|
||||
Q_EMIT changed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user