equal
deleted
inserted
replaced
1006 { |
1006 { |
1007 if(i < 0 || i >= m_colorButtons.size()) |
1007 if(i < 0 || i >= m_colorButtons.size()) |
1008 return; |
1008 return; |
1009 |
1009 |
1010 QPalette p = m_colorButtons[i]->palette(); |
1010 QPalette p = m_colorButtons[i]->palette(); |
1011 QColor c = QColorDialog::getColor(p.color(QPalette::Button)); |
1011 QColor c = QColorDialog::getColor(p.color(QPalette::Button), this, QString(), QColorDialog::DontUseNativeDialog); |
1012 |
1012 |
1013 if(c.isValid()) |
1013 if(c.isValid()) |
1014 { |
1014 { |
1015 DataManager::instance().colorsModel()->item(i)->setData(c); |
1015 DataManager::instance().colorsModel()->item(i)->setData(c); |
1016 m_colorButtons[i]->setStyleSheet(QString("background: %1").arg(c.name())); |
1016 m_colorButtons[i]->setStyleSheet(QString("background: %1").arg(c.name())); |