equal
deleted
inserted
replaced
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 */ |