Skip to content

Commit

Permalink
Fixed all the [-Werror=deprecated-declarations]
Browse files Browse the repository at this point in the history
1) 933:20: error: ‘void QGraphicsView::setMatrix(const QMatrix&, bool)’ es obsoleto: Use setTransform()
2) 1141:29: error: ‘QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [con Key = QString; T = QString]’ es obsoleto: Use QMultiMap for maps storing multiple values with the same key.
3) 1145:29: error: ‘QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [con Key = QString; T = QString]’ es obsoleto: Use QMultiMap for maps storing multiple values with the same key.
4) 1149:29: error: ‘QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [con Key = QString; T = QString]’ es obsoleto: Use QMultiMap for maps storing multiple values with the same key.
  • Loading branch information
GRFKNT authored and rodlie committed Mar 10, 2022
1 parent c3f86da commit 532fa68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cyan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void Cyan::getColorProfiles(FXX::ColorSpace colorspace,
}
settings.endGroup();

QMap<QString,QString> profiles = genProfiles(colorspace);
QMultiMap<QString,QString> profiles = genProfiles(colorspace);
if (profiles.size() > 0) {
box->clear();
QIcon itemIcon(":/cyan-wheel.png");
Expand Down Expand Up @@ -921,9 +921,9 @@ void Cyan::imageClear()

void Cyan::resetImageZoom()
{
QMatrix matrix;
matrix.scale(1.0, 1.0);
view->setMatrix(matrix);
QTransform transform;
transform.scale(1.0, 1.0);
view->setTransform(transform);
}

void Cyan::setImage(QByteArray image)
Expand Down Expand Up @@ -1045,7 +1045,7 @@ void Cyan::getConvertProfiles()
if (inputColorSpace == FXX::UnknownColorSpace) { return; }

ignoreConvertAction = true;
QMap<QString,QString> inputProfiles, outputProfiles;
QMultiMap<QString,QString> inputProfiles, outputProfiles;

switch(inputColorSpace) {
case FXX::RGBColorSpace:
Expand Down

0 comments on commit 532fa68

Please sign in to comment.