Changeset View
Changeset View
Standalone View
Standalone View
tests/kfontchooserdialogtest.cpp
Show All 31 Lines | 27 | { | |||
---|---|---|---|---|---|
32 | app.setFont(QFont(QStringLiteral("DejaVu Sans"), 11)); | 32 | app.setFont(QFont(QStringLiteral("DejaVu Sans"), 11)); | ||
33 | 33 | | |||
34 | // QFont font = QFont("Times",18,QFont::Bold); | 34 | // QFont font = QFont("Times",18,QFont::Bold); | ||
35 | 35 | | |||
36 | QFont font; | 36 | QFont font; | ||
37 | int nRet = KFontChooserDialog::getFont(font); | 37 | int nRet = KFontChooserDialog::getFont(font); | ||
38 | qDebug() << font.toString(); | 38 | qDebug() << font.toString(); | ||
39 | 39 | | |||
40 | nRet = KFontChooserDialog::getFont(font, KFontChooser::FixedFontsOnly); | ||||
41 | qDebug() << font.toString(); | ||||
42 | | ||||
40 | KFontChooser::FontDiffFlags diffFlags; | 43 | KFontChooser::FontDiffFlags diffFlags; | ||
41 | nRet = KFontChooserDialog::getFontDiff(font, diffFlags); | 44 | nRet = KFontChooserDialog::getFontDiff(font, diffFlags); | ||
42 | qDebug() << font.toString(); | 45 | qDebug() << font.toString(); | ||
43 | 46 | | |||
44 | return nRet; | 47 | return nRet; | ||
45 | } | 48 | } |