TuiNodeFloat.cpp   TuiNodeFloat.cpp 
skipping to change at line 16 skipping to change at line 16
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "StelTranslator.hpp"
#include "TuiNodeFloat.hpp" #include "TuiNodeFloat.hpp"
#include <QKeyEvent> #include <QKeyEvent>
TuiNodeFloat::TuiNodeFloat(const QString& text, QObject* receiver, const ch ar* method, float defValue, TuiNodeFloat::TuiNodeFloat(const QString& text, QObject* receiver, const ch ar* method, float defValue,
float min, float max, float inc, TuiNode* pare nt, TuiNode* prev) float min, float max, float inc, TuiNode* pare nt, TuiNode* prev)
: TuiNodeEditable(text, parent, prev), value(defValue), minimum(min) , maximum(max), increment(inc), typing(false), typedDecimal(false) : TuiNodeEditable(text, parent, prev), value(defValue), minimum(min) , maximum(max), increment(inc), typing(false), typedDecimal(false)
{ {
this->connect(this, SIGNAL(setValue(float)), receiver, method); this->connect(this, SIGNAL(setValue(float)), receiver, method);
} }
skipping to change at line 162 skipping to change at line 163
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
return response; return response;
} }
QString TuiNodeFloat::getDisplayText() QString TuiNodeFloat::getDisplayText()
{ {
if (!editing) if (!editing)
{ {
return displayText + QString(": %1").arg(value); return prefixText + q_(displayText) + QString(" %1").arg(va lue);
} }
else else
{ {
if (typedDecimal) if (typedDecimal)
return displayText + QString(": >%1.<").arg(value); return prefixText + q_(displayText) + QString(" >%1. <").arg(value);
else else
return displayText + QString(": >%1<").arg(value); return prefixText + q_(displayText) + QString(" >%1< ").arg(value);
} }
} }
 End of changes. 5 change blocks. 
4 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/