@@ -14,21 +14,21 @@ class Form : public QMainWindow {
14
14
this ->connect (&this ->button , &QPushButton::clicked, [&]() {
15
15
QFontDialog fontDialog;
16
16
fontDialog.setFont (this ->label .font ());
17
- QDialog::DialogCode dialogCode = ( QDialog::DialogCode) fontDialog.exec ();
17
+ QDialog::DialogCode dialogCode = static_cast < QDialog::DialogCode>( fontDialog.exec () );
18
18
if (dialogCode == QDialog::Accepted) {
19
19
this ->label .setFont (fontDialog.currentFont ());
20
20
}
21
21
});
22
22
23
- this ->label .setText (" The quick brown fox jumps over the lazy dog.\n "
24
- " THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.\n "
25
- " 0123456789+-*/%~^&|=<>≤≥±÷≠{{[()]}},;:.?¿!¡\n "
26
- " àçéèêëïî@@°_#§$ù£€æœø𵩮∞\\\" '\n "
27
- " \u0400 {u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\u040d\u040e\u040f\n "
28
- " \u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\n "
29
- " \u4ea0\u4ea1\u4ea2\u4ea3\u4ea4\u4ea5\u4ea6\u4ea7\u4ea8\u4ea9\u4eaa\u4eab\u4eac\u4ead\u4eae\u4eaf\n "
30
- " \u4eb0\u4eb1\u4eb2\u4eb3\u4eb4\u4eb5\u4eb6\u4eb7\u4eb8\u4eb9\u4eba\u4ebb\u4ebc\u4ebd\u4ebe\u4ebf\n "
31
- " \U0001F428 " );
23
+ this ->label .setText (u8 " The quick brown fox jumps over the lazy dog.\n "
24
+ u8 " THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.\n "
25
+ u8 " 0123456789+-*/%~^&|=<>≤≥±÷≠{{[()]}},;:.?¿!¡\n "
26
+ u8 " àçéèêëïî@@°_#§$ù£€æœø𵩮∞\\\" '\n "
27
+ u8 "\u0400 {u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\u040d\u040e\u040f\n "
28
+ u8 "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\n "
29
+ u8 "\u4ea0\u4ea1\u4ea2\u4ea3\u4ea4\u4ea5\u4ea6\u4ea7\u4ea8\u4ea9\u4eaa\u4eab\u4eac\u4ead\u4eae\u4eaf\n "
30
+ u8 "\u4eb0\u4eb1\u4eb2\u4eb3\u4eb4\u4eb5\u4eb6\u4eb7\u4eb8\u4eb9\u4eba\u4ebb\u4ebc\u4ebd\u4ebe\u4ebf\n "
31
+ u8 "\U0001F428 " );
32
32
this ->label .move (10 , 50 );
33
33
this ->label .resize (380 , 340 );
34
34
this ->label .setAlignment (Qt::AlignTop);
0 commit comments