Commit 417228a8 authored by Raphael Cojocaru's avatar Raphael Cojocaru

Solved altitude precision to only two decimals

parent 85cca8b7
This diff is collapsed.
...@@ -111,6 +111,8 @@ public: ...@@ -111,6 +111,8 @@ public:
QString getObjectName(const SkyObject *o, bool translated=true); QString getObjectName(const SkyObject *o, bool translated=true);
void setSunRiseSetTimes( double sunRise, double sunSet ); void setSunRiseSetTimes( double sunRise, double sunSet );
void drawGradient();
public slots: public slots:
/** @short Update the plot to reflec new Date and Location settings. */ /** @short Update the plot to reflec new Date and Location settings. */
void slotUpdateDateLoc(); void slotUpdateDateLoc();
...@@ -139,6 +141,9 @@ public slots: ...@@ -139,6 +141,9 @@ public slots:
/** @short Mark the transit time on the curve. */ /** @short Mark the transit time on the curve. */
void slotMarkTransitTime(); void slotMarkTransitTime();
/** @short Draw the white vertical line on click. */
void mouseOverLine(QMouseEvent *event);
/** @short Clear the edit boxes for specifying a new object. */ /** @short Clear the edit boxes for specifying a new object. */
void slotClearBoxes(); void slotClearBoxes();
...@@ -184,6 +189,8 @@ private: ...@@ -184,6 +189,8 @@ private:
int DayOffset; int DayOffset;
int minAlt; int minAlt;
int maxAlt; int maxAlt;
QCPItemPixmap *background;
QPixmap *gradient;
double sunRise, sunSet; double sunRise, sunSet;
}; };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>508</width> <width>508</width>
<height>564</height> <height>599</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -335,6 +335,9 @@ ...@@ -335,6 +335,9 @@
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="QPushButton" name="riseButton"> <widget class="QPushButton" name="riseButton">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text"> <property name="text">
<string>Rise</string> <string>Rise</string>
</property> </property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment