Commit df245c5a authored by Jan Möbius's avatar Jan Möbius
Browse files

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2859 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c201b61f
...@@ -91,19 +91,19 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) { ...@@ -91,19 +91,19 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) {
// Add an empty Menu defining the current Type // Add an empty Menu defining the current Type
if ( object->dataType() == DATA_POLY_MESH ){ if ( object->dataType() == DATA_POLY_MESH ){
typeEntry->setText("Poly Mesh"); typeEntry->setText("Poly Mesh");
icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PolyType.svg"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PolyType.png");
typeEntry->setIcon(icon); typeEntry->setIcon(icon);
} else if ( object->dataType() == DATA_TRIANGLE_MESH ) { } else if ( object->dataType() == DATA_TRIANGLE_MESH ) {
typeEntry->setText("Triangle Mesh"); typeEntry->setText("Triangle Mesh");
icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"TriangleType.svg"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"TriangleType.png");
typeEntry->setIcon(icon); typeEntry->setIcon(icon);
} else if ( object->dataType() == DATA_POLY_LINE ) { } else if ( object->dataType() == DATA_POLY_LINE ) {
typeEntry->setText("Poly Line"); typeEntry->setText("Poly Line");
icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PolyLineType.svg"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PolyLineType.png");
typeEntry->setIcon(icon); typeEntry->setIcon(icon);
} else if ( object->dataType() == DATA_BSPLINE_CURVE ) { } else if ( object->dataType() == DATA_BSPLINE_CURVE ) {
typeEntry->setText("BSpline Curve"); typeEntry->setText("BSpline Curve");
icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"BSplineCurveType.svg"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"BSplineCurveType.png");
typeEntry->setIcon(icon); typeEntry->setIcon(icon);
} }
......
...@@ -534,13 +534,13 @@ CoreWidget::updateRecent() ...@@ -534,13 +534,13 @@ CoreWidget::updateRecent()
QString path = OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator(); QString path = OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator();
switch(recentFiles[i].type){ switch(recentFiles[i].type){
case DATA_TRIANGLE_MESH: case DATA_TRIANGLE_MESH:
path += "TriangleType.svg"; break; path += "TriangleType.png"; break;
case DATA_POLY_MESH: case DATA_POLY_MESH:
path += "PolyType.svg"; break; path += "PolyType.png"; break;
case DATA_POLY_LINE: case DATA_POLY_LINE:
path += "PolyLineType.svg"; break; path += "PolyLineType.png"; break;
case DATA_BSPLINE_CURVE: case DATA_BSPLINE_CURVE:
path += "BSplineCurveType.svg"; break; path += "BSplineCurveType.png"; break;
default: path = ""; default: path = "";
} }
recentFilesMenu_->addAction(QIcon(path), recentFiles[i].filename); recentFilesMenu_->addAction(QIcon(path), recentFiles[i].filename);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment