X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fui%2Froidseditview.ui.h;fp=bs%2Fui%2Froidseditview.ui.h;h=55d22b556e3f2c604efcb96f8ba07922ff00a217;hb=b3ed9f56f0adc7bd7de776150ac34b23284dd552;hp=d02b348fb7ad66f72884f4cdc0039c067786b529;hpb=e058e65a4a9f0c47b170413c0a085e90b172a3ec;p=hbs.git diff --git a/bs/ui/roidseditview.ui.h b/bs/ui/roidseditview.ui.h index d02b348..55d22b5 100644 --- a/bs/ui/roidseditview.ui.h +++ b/bs/ui/roidseditview.ui.h @@ -28,7 +28,7 @@ void RoidsEditView::setValue( const QString & type, unsigned value ) } -void RoidsEditView::slotValueChanged( const QString & s ) +void RoidsEditView::slotValueChanged() { QString type = sender()->name(); @@ -43,7 +43,9 @@ void RoidsEditView::slotValueChanged( const QString & s ) else if (type == "ScoreEdit") type = tr("score"); test = type; - emit changed(type, s.toInt()); + const QLineEdit *le = dynamic_cast(sender()); + if (le) + emit changed(type, le->text().toInt()); }