Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void MainWindow::handleFontChange (  ) [private, slot]

[17]

[18]

Definition at line 276 of file mainwindow.cpp.

References QFontComboBox::currentFont, QComboBox::currentText, QWidget::font, QGraphicsView::scene(), QFont::setItalic(), QFont::setPointSize(), QFont::setUnderline(), QFont::setWeight(), and QString::toInt().

Referenced by currentFontChanged(), and fontSizeChanged().

{
    QFont font = fontCombo->currentFont();
    font.setPointSize(fontSizeCombo->currentText().toInt());
    font.setWeight(boldAction->isChecked() ? QFont::Bold : QFont::Normal);
    font.setItalic(italicAction->isChecked());
    font.setUnderline(underlineAction->isChecked());

    scene->setFont(font);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index