65,11 → 65,11 |
imageA = QPixmap(50,50); |
imageA.fill( ScColorEngine::getDisplayColor(orig, m_doc)); |
if ( ScColorEngine::isOutOfGamut(orig, m_doc)) |
paintAlert(alertIcon,imageA, 2, 2, false); |
paintAlert(alertIcon,imageA, 2, 2); |
imageN = QPixmap(50,50); |
imageN.fill( ScColorEngine::getDisplayColor(orig, m_doc)); |
if ( ScColorEngine::isOutOfGamut(orig, m_doc)) |
paintAlert(alertIcon, imageN, 2, 2, false); |
paintAlert(alertIcon, imageN, 2, 2); |
|
resize( 498, 306 ); |
setWindowTitle( tr( "Edit Color" )); |
496,7 → 496,6 |
{ |
QImage image0 = QImage(255, 10, QImage::Format_ARGB32); |
QPainter p; |
int val = 255; |
p.begin(&image0); |
p.setPen(Qt::NoPen); |
int c, m, y, k; |
510,7 → 509,6 |
else |
p.setBrush( ScColorEngine::getDisplayColorGC(ScColor(0, 0, 0, x), m_doc)); |
p.drawRect(x, 0, 5, 10); |
val -= 5; |
} |
p.end(); |
QPalette pal; |
822,7 → 820,7 |
} |
imageN.fill( ScColorEngine::getDisplayColor(Farbe, m_doc)); |
if (ScColorEngine::isOutOfGamut(Farbe, m_doc)) |
paintAlert(alertIcon, imageN, 2, 2, false); |
paintAlert(alertIcon, imageN, 2, 2); |
NewC->setPixmap( imageN ); |
NewC->setToolTip( "<qt>" + tr( "If color management is enabled, an exclamation mark indicates that the color may be outside of the color gamut of the current printer profile selected. What this means is the color may not print exactly as indicated on screen. More hints about gamut warnings are in the online help under Color Management." ) + "</qt>"); |
OldC->setToolTip( "<qt>" + tr( "If color management is enabled, an exclamation mark indicates that the color may be outside of the color gamut of the current printer profile selected. What this means is the color may not print exactly as indicated on screen. More hints about gamut warnings are in the online help under Color Management." ) + "</qt>"); |
942,7 → 940,7 |
} |
imageN.fill(ScColorEngine::getDisplayColor(tmp, m_doc)); |
if ( ScColorEngine::isOutOfGamut(tmp, m_doc)) |
paintAlert(alertIcon, imageN, 2, 2, false); |
paintAlert(alertIcon, imageN, 2, 2); |
NewC->setPixmap( imageN ); |
} |
|
974,7 → 972,7 |
} |
imageN.fill( ScColorEngine::getDisplayColor(tmp, m_doc)); |
if (ScColorEngine::isOutOfGamut(tmp, m_doc)) |
paintAlert(alertIcon, imageN, 2, 2, false); |
paintAlert(alertIcon, imageN, 2, 2); |
NewC->setPixmap( imageN ); |
Farbe = tmp; |
if (ende) |
1012,7 → 1010,7 |
} |
imageN.fill( ScColorEngine::getDisplayColor(tmp, m_doc)); |
if ( ScColorEngine::isOutOfGamut(tmp, m_doc)) |
paintAlert(alertIcon, imageN, 2, 2, false); |
paintAlert(alertIcon, imageN, 2, 2); |
NewC->setPixmap( imageN ); |
Farbe = tmp; |
setValues(); |