src/widgets/colorselectdialog.cpp

changeset 139
72098474d362
parent 115
ed884a2fb009
child 178
a23024fc98e0
--- a/src/widgets/colorselectdialog.cpp	Wed Sep 22 13:28:53 2021 +0300
+++ b/src/widgets/colorselectdialog.cpp	Wed Sep 22 14:03:43 2021 +0300
@@ -46,7 +46,7 @@
 		++iterator
 	) {
 		const qint32 index = iterator->first;
-		const ldraw::ColorTable::ColorDefinition& colordef = iterator->second;
+		const ldraw::ColorDefinition& colordef = iterator->second;
 		QPushButton* const button = new QPushButton{QString::number(index), this};
 		button->setToolTip(colordef.displayName);
 		button->setStyleSheet(styleSheetForColor(colordef.faceColor));
@@ -101,7 +101,7 @@
 	}
 	else
 	{
-		const ldraw::ColorTable::ColorDefinition& colordef = this->colorTable[this->selectedColor];
+		const ldraw::ColorDefinition& colordef = this->colorTable[this->selectedColor];
 		this->ui.selectedColorName->setText(colordef.displayName);
 	}
 	const QColor colorFace = ldraw::colorFace(this->selectedColor, this->colorTable);
@@ -147,7 +147,7 @@
 	}
 	else
 	{
-		const ldraw::ColorTable::ColorDefinition& colordef = this->colorTable[color];
+		const ldraw::ColorDefinition& colordef = this->colorTable[color];
 		return colordef.displayName.contains(filterText, Qt::CaseInsensitive);
 	}
 }

mercurial