mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Font dialog test
This commit is contained in:
parent
916d60acf2
commit
651046698a
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user