Session Usage summarychart range fix

This commit is contained in:
Mark Watkins 2011-11-30 19:26:15 +10:00
parent e53eae6278
commit 8aefb817b4
2 changed files with 23 additions and 4 deletions

View File

@ -80,10 +80,13 @@ void SummaryChart::SetDay(Day * nullday)
zt %= 86400; zt %= 86400;
tmp2=zt/3600.0; tmp2=zt/3600.0;
if (tmp2+tmp<16) { if (tmp2+tmp<16) {
m_times[dn][s]=(tmp2+12); tmp2+=12;
//m_times[dn][s]=(tmp2+12);
} else { } else {
m_times[dn][s]=(tmp2)-12; tmp2-=12;
//m_times[dn][s]=(tmp2)-12;
} }
m_times[dn][s]=tmp2;
if (tmp2 < m_miny) m_miny=tmp2; if (tmp2 < m_miny) m_miny=tmp2;
if (tmp2+tmp > m_maxy) m_maxy=tmp2+tmp; if (tmp2+tmp > m_maxy) m_maxy=tmp2+tmp;

View File

@ -38,7 +38,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>6</number> <number>3</number>
</property> </property>
<widget class="QWidget" name="importTab"> <widget class="QWidget" name="importTab">
<attribute name="title"> <attribute name="title">
@ -548,10 +548,26 @@ p, li { white-space: pre-wrap; }
<string/> <string/>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_6"> <layout class="QVBoxLayout" name="verticalLayout_6">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="label_32"> <widget class="QLabel" name="label_32">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="text"> <property name="text">
<string>Hmmm... Empty Space</string> <string>Hmmm... Empty Space
Mask History could go here one day</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>