QTfrontend/ui/page/pageoptions.cpp
changeset 13202 2fe85d497e0f
parent 13194 290815bbd4e1
child 13227 26c739440bef
equal deleted inserted replaced
13201:25502e6b3e08 13202:2fe85d497e0f
   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()));