QTfrontend/ui/widget/colorwidget.cpp
changeset 15005 d597a851f5d8
parent 13233 d23742ccf92b
child 15166 d20e52a646e7
equal deleted inserted replaced
15004:6d4a607f2196 15005:d597a851f5d8
    28 
    28 
    29     m_color = color;
    29     m_color = color;
    30 
    30 
    31     QStandardItem * item = m_colorsModel->item(m_color);
    31     QStandardItem * item = m_colorsModel->item(m_color);
    32 
    32 
    33     setStyleSheet(QString("* { border: 2px solid #ffcc00; border-radius: 8px; background: %1 } :disabled { border-color: #a0a0a0; }").arg(item->data().value<QColor>().name()));
    33     setStyleSheet(QString("* { border: 2px solid #ffcc00; border-radius: 8px; background: %1 } :disabled { border-color: #a0a0a0; } :hover { border-color: #ffff00; }").arg(item->data().value<QColor>().name()));
    34     /*
    34     /*
    35     QPalette p = palette();
    35     QPalette p = palette();
    36     p.setColor(QPalette::Window, item->data().value<QColor>());
    36     p.setColor(QPalette::Window, item->data().value<QColor>());
    37     setPalette(p);
    37     setPalette(p);
    38     */
    38     */