77 //! [3] |
77 //! [3] |
78 clipboard = QApplication::clipboard(); |
78 clipboard = QApplication::clipboard(); |
79 //! [3] |
79 //! [3] |
80 |
80 |
81 //! [4] |
81 //! [4] |
82 connect(fontCombo, SIGNAL(currentFontChanged(const QFont &)), |
82 connect(fontCombo, SIGNAL(currentFontChanged(QFont)), |
83 this, SLOT(findStyles(const QFont &))); |
83 this, SLOT(findStyles(QFont))); |
84 connect(fontCombo, SIGNAL(currentFontChanged(const QFont &)), |
84 connect(fontCombo, SIGNAL(currentFontChanged(QFont)), |
85 this, SLOT(findSizes(const QFont &))); |
85 this, SLOT(findSizes(QFont))); |
86 connect(fontCombo, SIGNAL(currentFontChanged(const QFont &)), |
86 connect(fontCombo, SIGNAL(currentFontChanged(QFont)), |
87 characterWidget, SLOT(updateFont(const QFont &))); |
87 characterWidget, SLOT(updateFont(QFont))); |
88 connect(sizeCombo, SIGNAL(currentIndexChanged(const QString &)), |
88 connect(sizeCombo, SIGNAL(currentIndexChanged(QString)), |
89 characterWidget, SLOT(updateSize(const QString &))); |
89 characterWidget, SLOT(updateSize(QString))); |
90 connect(styleCombo, SIGNAL(currentIndexChanged(const QString &)), |
90 connect(styleCombo, SIGNAL(currentIndexChanged(QString)), |
91 characterWidget, SLOT(updateStyle(const QString &))); |
91 characterWidget, SLOT(updateStyle(QString))); |
92 //! [4] //! [5] |
92 //! [4] //! [5] |
93 connect(characterWidget, SIGNAL(characterSelected(const QString &)), |
93 connect(characterWidget, SIGNAL(characterSelected(QString)), |
94 this, SLOT(insertCharacter(const QString &))); |
94 this, SLOT(insertCharacter(QString))); |
95 connect(clipboardButton, SIGNAL(clicked()), this, SLOT(updateClipboard())); |
95 connect(clipboardButton, SIGNAL(clicked()), this, SLOT(updateClipboard())); |
96 //! [5] |
96 //! [5] |
97 connect(fontMerging, SIGNAL(toggled(bool)), characterWidget, SLOT(updateFontMerging(bool))); |
97 connect(fontMerging, SIGNAL(toggled(bool)), characterWidget, SLOT(updateFontMerging(bool))); |
98 |
98 |
99 //! [6] |
99 //! [6] |