equal
deleted
inserted
replaced
997 { |
997 { |
998 if(i < 0 || i >= m_colorButtons.size()) |
998 if(i < 0 || i >= m_colorButtons.size()) |
999 return; |
999 return; |
1000 |
1000 |
1001 QPalette p = m_colorButtons[i]->palette(); |
1001 QPalette p = m_colorButtons[i]->palette(); |
1002 QColor c = QColorDialog::getColor(p.color(QPalette::Button), this, QString(), QColorDialog::DontUseNativeDialog); |
1002 QColor c = QColorDialog::getColor(p.color(QPalette::Button)); |
1003 |
1003 |
1004 if(c.isValid()) |
1004 if(c.isValid()) |
1005 { |
1005 { |
1006 DataManager::instance().colorsModel()->item(i)->setData(c); |
1006 DataManager::instance().colorsModel()->item(i)->setData(c); |
1007 m_colorButtons[i]->setStyleSheet(QString("background: %1").arg(c.name())); |
1007 m_colorButtons[i]->setStyleSheet(QString("background: %1").arg(c.name())); |