CharacterGeneral::CharacterGeneral(QWidget *parent, bool uniqueFormat) : QWidget(parent), m_blockSignals(false), m_nameVisible(true), m_style(0) { widget.setupUi(this); m_layoutTab = new FontLayoutTab(true, uniqueFormat, this); m_characterDecorations = new FontDecorations(uniqueFormat, this); connect(m_characterDecorations, SIGNAL(backgroundColorChanged(QColor)), this, SLOT(slotBackgroundColorChanged(QColor))); connect(m_characterDecorations, SIGNAL(textColorChanged(QColor)), this, SLOT(slotTextColorChanged(QColor))); m_characterHighlighting = new CharacterHighlighting(uniqueFormat, this); connect(m_characterHighlighting, SIGNAL(underlineChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor)), this, SLOT(slotUnderlineChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor))); connect(m_characterHighlighting, SIGNAL(strikethroughChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor)), this, SLOT(slotStrikethroughChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor))); connect(m_characterHighlighting, SIGNAL(capitalizationChanged(QFont::Capitalization)), this, SLOT(slotCapitalizationChanged(QFont::Capitalization))); m_fontTab = new FontTab(uniqueFormat, this); connect(m_fontTab, SIGNAL(fontChanged(const QFont &)), this, SLOT(slotFontSelected(const QFont &))); m_languageTab = new LanguageTab(uniqueFormat, this); widget.tabs->addTab(m_fontTab, i18n("Font")); widget.tabs->addTab(m_characterDecorations, i18n("Decorations")); widget.tabs->addTab(m_characterHighlighting, i18n("Highlighting")); widget.tabs->addTab(m_layoutTab, i18n("Layout")); //widget.tabs->addTab(m_languageTab, i18n("Language")); m_languageTab->setVisible(false); connect(widget.name, SIGNAL(textChanged(const QString &)), this, SIGNAL(nameChanged(const QString&))); connect(widget.name, SIGNAL(textChanged(const QString &)), this, SLOT(setName(const QString&))); }
void LuneOSSwitchAttachedType::setTextColor(QColor color) { if(mTextColor != color) { mTextColor = color; textColorChanged(); } }
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: backgroundButtonGroupClicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break; case 1: buttonGroupClicked((*reinterpret_cast< int(*)>(_a[1]))); break; case 2: deleteItem(); break; case 3: pointerGroupClicked((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: bringToFront(); break; case 5: sendToBack(); break; case 6: itemInserted((*reinterpret_cast< DiagramItem*(*)>(_a[1]))); break; case 7: textInserted((*reinterpret_cast< QGraphicsTextItem*(*)>(_a[1]))); break; case 8: currentFontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break; case 9: fontSizeChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 10: sceneScaleChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 11: textColorChanged(); break; case 12: itemColorChanged(); break; case 13: lineColorChanged(); break; case 14: textButtonTriggered(); break; case 15: fillButtonTriggered(); break; case 16: lineButtonTriggered(); break; case 17: handleFontChange(); break; case 18: itemSelected((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break; case 19: about(); break; default: ; } _id -= 20; } return _id; }
void DocumentHandler::setTextColor(const QColor &c) { QTextCursor cursor = textCursor(); if (cursor.isNull()) return; QTextCharFormat format; format.setForeground(QBrush(c)); mergeFormatOnWordOrSelection(format); emit textColorChanged(); }
void DocumentHandler::reset() { emit fontFamilyChanged(); emit alignmentChanged(); emit boldChanged(); emit italicChanged(); emit underlineChanged(); emit fontSizeChanged(); emit textColorChanged(); }
/*! \property QCustom3DLabel::textColor * * \brief The color for the label text. * * Also affects the label border, if enabled. Defaults to \c{Qt::white}. * * \sa borderEnabled */ void QCustom3DLabel::setTextColor(const QColor &color) { if (dptr()->m_txtColor != color) { dptr()->m_txtColor = color; dptr()->m_customVisuals = true; dptr()->handleTextureChange(); emit textColorChanged(color); emit dptr()->needUpdate(); } }
void TextLineNumbers::setTextColor( const QColor& c ) { if ( c == mTextColor ) return; mTextColor = c; QPalette p( palette() ); p.setColor( foregroundRole(), mTextColor ); setPalette( p ); emit textColorChanged( mTextColor ); }
NoteView::NoteView(Note* notes) : m_notes(notes) { QHBoxLayout* layout = new QHBoxLayout(this); layout->setContentsMargins(0, 0, 0, 0); m_textEdit = new QTextEdit(this); QPalette palette = m_textEdit->palette(); palette.setColor(QPalette::Base, m_notes->backgroundColor()); palette.setColor(QPalette::Text, m_notes->textColor()); m_textEdit->setPalette(palette); m_textEdit->setFont(m_notes->textFont()); m_textEdit->setText(m_notes->note()); layout->addWidget(m_textEdit); connect(m_notes, SIGNAL(backgroundColorChanged(QColor)), this, SLOT(backgroundColorChanged(QColor))); connect(m_notes, SIGNAL(textColorChanged(QColor)), this, SLOT(textColorChanged(QColor))); connect(m_notes, SIGNAL(textFontChanged(QFont)), this, SLOT(textFontChanged(QFont))); connect(m_textEdit, SIGNAL(textChanged()), this, SLOT(textChanged())); }
NoteDock::NoteDock(QWidget *parent) : QWidget(parent), m_initializing(false), m_notes(0) { ui.setupUi(this); connect(ui.leName, SIGNAL(returnPressed(QString)), this, SLOT(nameChanged(QString))); connect(ui.leComment, SIGNAL(returnPressed(QString)), this, SLOT(commentChanged(QString))); connect(ui.kcbBgColor, SIGNAL(changed(QColor)), this, SLOT(backgroundColorChanged(QColor))); connect(ui.kcbTextColor, SIGNAL(changed(QColor)), this, SLOT(textColorChanged(QColor))); connect(ui.kfrTextFont, SIGNAL(fontSelected(QFont)), this, SLOT(textFontChanged(QFont))); TemplateHandler* templateHandler = new TemplateHandler(this, TemplateHandler::Worksheet); ui.gridLayout->addWidget(templateHandler, 8, 3); templateHandler->show(); connect(templateHandler, SIGNAL(loadConfigRequested(KConfig&)), this, SLOT(loadConfigFromTemplate(KConfig&))); connect(templateHandler, SIGNAL(saveConfigRequested(KConfig&)), this, SLOT(saveConfigAsTemplate(KConfig&))); }
void k9MenuEdit::setColor(const QColor &_value) { if (m_text) m_text->setColor(_value); m_canvas->update(); emit textColorChanged(_value); }
void PlotItem::SetTextColor (const QColor& color) { SetNewValue (color, TextColor_, [this] { emit textColorChanged (); }); }