Use AntiAliasing preference fix

This commit is contained in:
Mark Watkins 2011-12-28 13:35:24 +10:00
parent 0ad5175621
commit a73a9fc8ee
4 changed files with 1 additions and 16 deletions

View File

@ -130,9 +130,6 @@ void SummaryChart::SetDay(Day * nullday)
if (day->machine_type()!=m_machinetype) continue;
//m_values[dn][j+1]=0;
if (code==CPAP_PTB) {
int i=5;
}
bool hascode=//day->channelHasData(code) ||
type==ST_HOURS ||
type==ST_SESSIONS ||
@ -140,9 +137,6 @@ void SummaryChart::SetDay(Day * nullday)
day->hasData(code,type);
if (hascode) {
if (code==CPAP_PTB) {
int i=5;
}
m_days[dn]=day;
switch(m_type[j]) {
case ST_AVG: tmp=day->avg(code); break;

View File

@ -306,9 +306,6 @@ EventDataType Day::Min(ChannelID code)
EventDataType tmp;
bool first=true;
for (QVector<Session *>::iterator s=sessions.begin();s!=sessions.end();s++) {
if (code==CPAP_PTB) {
int i=5;
}
if (!(*s)->m_min.contains(code))
continue;
//if ((*s)->eventlist.find(code)==(*s)->eventlist.end()) continue;

View File

@ -601,9 +601,6 @@ void Session::UpdateSummaries()
for (c=eventlist.begin();c!=eventlist.end();c++) {
id=c.key();
if (id==CPAP_PTB) {
int i=5;
}
if (schema::channel[id].type()==schema::DATA) {
//sum(id); // avg calculates this and cnt.
if (c.value().size()>0) {
@ -655,9 +652,6 @@ bool Session::SearchEvent(ChannelID code, qint64 time, qint64 dist)
EventDataType Session::Min(ChannelID id)
{
if (id==CPAP_PTB){
int i=5;
}
QHash<ChannelID,EventDataType>::iterator i=m_min.find(id);
if (i!=m_min.end())
return i.value();

View File

@ -275,7 +275,7 @@ void PreferencesDialog::Save()
{
bool needs_restart=false;
profile->appearance->setAnimations(ui->useAntiAliasing->isChecked());
profile->appearance->setAntiAliasing(ui->useAntiAliasing->isChecked());
if (ui->useSquareWavePlots->isChecked()!=profile->appearance->squareWavePlots()) {
profile->appearance->setSquareWavePlots(ui->useSquareWavePlots->isChecked());
needs_restart=true;