AntiAliasing stuff

This commit is contained in:
Mark Watkins 2014-05-08 21:17:45 +10:00
parent 484d6ae6c7
commit 04b37d0f7c
2 changed files with 3 additions and 1 deletions

View File

@ -249,6 +249,7 @@ void gLineChart::paint(QPainter &painter, gGraph &w, int left, int top, int widt
painter.setClipping(true);
QVector<QLine> lines;
lines.reserve(100000);
painter.setRenderHint(QPainter::Antialiasing, true);
for (int gi = 0; gi < m_codes.size(); gi++) {
ChannelID code = m_codes[gi];
@ -699,6 +700,7 @@ void gLineChart::paint(QPainter &painter, gGraph &w, int left, int top, int widt
}
}
painter.setClipping(false);
painter.setRenderHint(QPainter::Antialiasing, false);
}

View File

@ -832,7 +832,7 @@ bool FPIconLoader::OpenDetail(Machine *mach, QString filename, Profile *profile)
ti = qint64(sessid) * 1000L;
sess->really_set_first(ti);
EventList *LK = sess->AddEventList(CPAP_LeakTotal, EVL_Event, 1);
EventList *PR = sess->AddEventList(CPAP_Pressure, EVL_Event, 0.1);
EventList *PR = sess->AddEventList(CPAP_Pressure, EVL_Event, 0.1F);
EventList *FLG = sess->AddEventList(CPAP_FLG, EVL_Event);
EventList *OA = sess->AddEventList(CPAP_Obstructive, EVL_Event);
EventList *H = sess->AddEventList(CPAP_Hypopnea, EVL_Event);