* Cosmetic change. Replace Qt keyword emit with Q_EMIT.

* Whitespace fixes.
This commit is contained in:
Mateusz Skowroński
2017-01-05 22:38:23 +01:00
parent 18738afc1e
commit ce1c021132
7 changed files with 407 additions and 407 deletions

View File

@@ -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();
}
}