AngleSpinBox.cpp   AngleSpinBox.cpp 
skipping to change at line 20 skipping to change at line 20
* 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 * * along with this program; if not, write to the *
* Free Software Foundation, Inc., * * Free Software Foundation, Inc., *
* 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * * 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. *
************************************************************************** */ ************************************************************************** */
#include "config.h"
#include "AngleSpinBox.hpp" #include "AngleSpinBox.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include <QDebug> #include <QDebug>
#include <QString> #include <QString>
#include <QLineEdit> #include <QLineEdit>
#include <QWidget> #include <QWidget>
#include <QLocale> #include <QLocale>
#include <cmath> #include <cmath>
AngleSpinBox::AngleSpinBox(QWidget* parent, DisplayFormat format, PrefixTyp e prefix) AngleSpinBox::AngleSpinBox(QWidget* parent, DisplayFormat format, PrefixTyp e prefix)
skipping to change at line 44 skipping to change at line 45
radAngle(0.0) radAngle(0.0)
{ {
connect(this, SIGNAL(editingFinished()), this, SLOT(updateValue())); connect(this, SIGNAL(editingFinished()), this, SLOT(updateValue()));
formatText(); formatText();
} }
const QString AngleSpinBox::positivePrefix(PrefixType prefix) const QString AngleSpinBox::positivePrefix(PrefixType prefix)
{ {
switch(prefix) switch(prefix)
{ {
case NormalPlus: case NormalPlus:
return("+"); return("+");
break; break;
case Longitude: case Longitude:
return(q_("E ")); return(q_("E "));
break; break;
case Latitude: case Latitude:
return(q_("N ")); return(q_("N "));
break; break;
case Normal: case Normal:
default: default:
return(""); return("");
break; break;
} }
} }
const QString AngleSpinBox::negativePrefix(PrefixType prefix) const QString AngleSpinBox::negativePrefix(PrefixType prefix)
{ {
switch(prefix) switch(prefix)
{ {
case NormalPlus: case NormalPlus:
return(QLocale().negativeSign()); return(QLocale().negativeSign());
break; break;
case Longitude: case Longitude:
return(q_("W ")); return(q_("W "));
break; break;
case Latitude: case Latitude:
return(q_("S ")); return(q_("S "));
break; break;
case Normal: case Normal:
default: default:
return(QLocale().negativeSign()); return(QLocale().negativeSign());
break; break;
} }
} }
AngleSpinBox::~AngleSpinBox() AngleSpinBox::~AngleSpinBox()
{ {
} }
AngleSpinBox::AngleSpinboxSection AngleSpinBox::getCurrentSection() const AngleSpinBox::AngleSpinboxSection AngleSpinBox::getCurrentSection() const
{ {
int cusorPos = lineEdit()->cursorPosition(); int cusorPos = lineEdit()->cursorPosition();
 End of changes. 3 change blocks. 
26 lines changed or deleted 27 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/