mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-17 19:20:46 +00:00
Hide unused SummaryChart legends #2
This commit is contained in:
parent
0fcce2ebd5
commit
f8704bb8f6
@ -297,11 +297,10 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height)
|
|||||||
// Draw Ledgend
|
// Draw Ledgend
|
||||||
px=left+width-10;
|
px=left+width-10;
|
||||||
py=top+10;
|
py=top+10;
|
||||||
int wid=120;
|
|
||||||
QString a;
|
QString a;
|
||||||
int x,y;
|
int x,y;
|
||||||
for (int j=0;j<m_colors.size();j++) {
|
for (int j=0;j<m_codes.size();j++) {
|
||||||
if (totalcounts[j]==0) continue;
|
if (totalvalues[j]==0) continue;
|
||||||
a=channel[m_codes[j]].label();
|
a=channel[m_codes[j]].label();
|
||||||
a+=" ";
|
a+=" ";
|
||||||
switch(m_type[j]) {
|
switch(m_type[j]) {
|
||||||
@ -311,7 +310,8 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height)
|
|||||||
case ST_MIN: a+="Min"; break;
|
case ST_MIN: a+="Min"; break;
|
||||||
case ST_MAX: a+="Max"; break;
|
case ST_MAX: a+="Max"; break;
|
||||||
case ST_HOURS: a+="Hours"; break;
|
case ST_HOURS: a+="Hours"; break;
|
||||||
default:break;
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
GetTextExtent(a,x,y);
|
GetTextExtent(a,x,y);
|
||||||
px-=30+x;
|
px-=30+x;
|
||||||
|
Loading…
Reference in New Issue
Block a user