void QPolygonOffset::setFactor(float factor) { Q_D(QPolygonOffset); if (d->m_factor != factor) { d->m_factor = factor; emit factorChanged(d->m_factor); } }
void BarlowsDataMapper::teardownConnections() { disconnect(widget->addBarlowButton, SIGNAL(clicked()), this, SLOT(insertNewBarlow())); disconnect(widget->deleteBarlowButton, SIGNAL(clicked()), this, SLOT(deleteSelectedBarlow())); disconnect(widget->barlowsListView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(barlowSelected(const QModelIndex &))); disconnect(widget->barlowsListView->selectionModel() , SIGNAL(currentRowChanged(QModelIndex, QModelIndex)), this, SLOT(barlowSelected(QModelIndex))); disconnect(widget->modelLineEdit, SIGNAL(editingFinished()), this, SLOT(modelChanged())); disconnect(widget->vendorLineEdit, SIGNAL(editingFinished()), this, SLOT(vendorChanged())); disconnect(widget->factorLineEdit, SIGNAL(editingFinished()), this, SLOT(factorChanged())); }