fontSize.activated.connect(this, "fontSizeChanged(String)");
fontListAction = buttonLayout.addWidget(fontList);
buttonLayout.toggleFontVisible.triggered.connect(this, "toggleFontListVisible(Boolean)");
fontSizeAction = buttonLayout.addWidget(fontSize);
buttonLayout.toggleFontSizeVisible.triggered.connect(this, "toggleFontSizeVisible(Boolean)");
QFontDatabase fonts = new QFontDatabase();
List<String> fontFamilies = fonts.families();
for (int i = 0; i < fontFamilies.size(); i++) {
fontList.addItem(fontFamilies.get(i));
if (i == 0) {
loadFontSize(fontFamilies.get(i));
}