Font dialog test

This commit is contained in:
Mark Watkins 2011-10-06 09:20:56 +10:00
parent 916d60acf2
commit 651046698a
3 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,7 @@ EventDataType gLineChart::Miny()
int m=Layer::Miny();
if (subtract_offset>0) {
m-=subtract_offset;
if (m<0) m=0;
// if (m<0) m=0;
}
return m;
}

View File

@ -88,7 +88,7 @@ void SummaryChart::SetDay(Day * nullday)
}
if (suboffset>0) {
tmp-=suboffset;
if (tmp<0) tmp=0;
//if (tmp<0) tmp=0;
}
//if (tmp>0) {
fnd=true;

View File

@ -42,21 +42,25 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
ui->IgnoreSlider->setValue(val);
ui->applicationFont->setCurrentFont(QApplication::font());
ui->applicationFont->setFont(QApplication::font());
ui->applicationFontSize->setValue(QApplication::font().pointSize());
ui->applicationFontBold->setChecked(QApplication::font().weight()==QFont::Bold);
ui->applicationFontItalic->setChecked(QApplication::font().italic());
ui->graphFont->setCurrentFont(*defaultfont);
ui->graphFont->setFont(*defaultfont);
ui->graphFontSize->setValue(defaultfont->pointSize());
ui->graphFontBold->setChecked(defaultfont->weight()==QFont::Bold);
ui->graphFontItalic->setChecked(defaultfont->italic());
ui->titleFont->setCurrentFont(*mediumfont);
ui->titleFont->setFont(*mediumfont);
ui->titleFontSize->setValue(mediumfont->pointSize());
ui->titleFontBold->setChecked(mediumfont->weight()==QFont::Bold);
ui->titleFontItalic->setChecked(mediumfont->italic());
ui->bigFont->setCurrentFont(*bigfont);
ui->bigFont->setFont(*bigfont);
ui->bigFontSize->setValue(bigfont->pointSize());
ui->bigFontBold->setChecked(bigfont->weight()==QFont::Bold);
ui->bigFontItalic->setChecked(bigfont->italic());