From b3ed9f56f0adc7bd7de776150ac34b23284dd552 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Mon, 22 Apr 2002 19:38:59 +0000 Subject: [PATCH] smaller changes --- ChangeLog | 5 +++++ bs/ui/roidseditview.ui | 25 ++++++++++++++----------- bs/ui/roidseditview.ui.h | 6 ++++-- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 776325c..f423180 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Changes since hbs 0.2 + * Fixed a bug with the emp code. + * Added the ability to show the score loss and capping on the planet + * Prolly something more that I've forgotten (need to get better at this ;) + Changes since hbs 0.1.1 * Implemented scorechange for the planet. All fleets with "Home" in their name is counted. (so the capping changes between ticks) * Slightly changed the interface (moved the tick changing to the toolbar) diff --git a/bs/ui/roidseditview.ui b/bs/ui/roidseditview.ui index 6d6b6c2..f77d5b5 100644 --- a/bs/ui/roidseditview.ui +++ b/bs/ui/roidseditview.ui @@ -192,6 +192,9 @@ ScoreLostEdit + + NoFocus + true @@ -204,33 +207,33 @@ MetalEdit - textChanged(const QString&) + returnPressed() RoidsEditView - slotValueChanged(const QString&) + slotValueChanged() CrystalEdit - textChanged(const QString&) + returnPressed() RoidsEditView - slotValueChanged(const QString&) + slotValueChanged() EoniumEdit - textChanged(const QString&) + returnPressed() RoidsEditView - slotValueChanged(const QString&) + slotValueChanged() UninitEdit - textChanged(const QString&) + returnPressed() RoidsEditView - slotValueChanged(const QString&) + slotValueChanged() ScoreEdit - textChanged(const QString&) + returnPressed() RoidsEditView - slotValueChanged(const QString&) + slotValueChanged() @@ -251,7 +254,7 @@ init() setValue( const QString & type, unsigned value ) - slotValueChanged( const QString & s ) + slotValueChanged() slotSetLost( QString type, float i ) 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()); } -- 2.39.2