void BooleanLed::setOffColor(const QColor & color) { if (m_offColor != color) { m_offColor = color; emit signalColorChanged(); } }
void NMGChartSeries::setBaseColor(QColor color) { if(baseColor != color) { baseColor = color; update(); //spaceNeededIntoSceneChanged isn't used because there're not size changes emit signalColorChanged(id, color); } }
void QThemeWidget::setThemeColor(const QColor & value) { color = value; emit signalColorChanged(color); QPalette Pal(palette()); // set black background Pal.setColor(QPalette::Background, color); setAutoFillBackground(true); setPalette(Pal); }
QWidget * BooleanLedView::createCompViewWidget(QWidget * parent) { BooleanLedWidgetView * wid = new BooleanLedWidgetView(this, parent,"Led"); KLed * led = wid->m_led; Q_CHECK_PTR(led); /* Specific signals */ // LED state changed (Component->Widget) connect(this, SIGNAL(signalState(bool)), wid, SLOT(slotState(bool))); // Color changed (Component->CompViewWidget) connect(getComponent(), SIGNAL(signalColorChanged()), wid, SLOT(slotColorChanged())); return wid; }