tools/shared/fontpanel/fontpanel.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    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);