71 foreach (QFontDatabase::WritingSystem ws, writingSystems) |
71 foreach (QFontDatabase::WritingSystem ws, writingSystems) |
72 m_writingSystemComboBox->addItem(QFontDatabase::writingSystemName(ws), QVariant(ws)); |
72 m_writingSystemComboBox->addItem(QFontDatabase::writingSystemName(ws), QVariant(ws)); |
73 connect(m_writingSystemComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotWritingSystemChanged(int))); |
73 connect(m_writingSystemComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotWritingSystemChanged(int))); |
74 formLayout->addRow(tr("&Writing system"), m_writingSystemComboBox); |
74 formLayout->addRow(tr("&Writing system"), m_writingSystemComboBox); |
75 |
75 |
76 connect(m_familyComboBox, SIGNAL( currentFontChanged(QFont)), this, SLOT(slotFamilyChanged(QFont))); |
76 connect(m_familyComboBox, SIGNAL(currentFontChanged(QFont)), this, SLOT(slotFamilyChanged(QFont))); |
77 formLayout->addRow(tr("&Family"), m_familyComboBox); |
77 formLayout->addRow(tr("&Family"), m_familyComboBox); |
78 |
78 |
79 m_styleComboBox->setEditable(false); |
79 m_styleComboBox->setEditable(false); |
80 connect(m_styleComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotStyleChanged(int))); |
80 connect(m_styleComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotStyleChanged(int))); |
81 formLayout->addRow(tr("&Style"), m_styleComboBox); |
81 formLayout->addRow(tr("&Style"), m_styleComboBox); |