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

Cleanup icon mess

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2851 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d9ef2536
...@@ -91,11 +91,11 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) { ...@@ -91,11 +91,11 @@ 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.png"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PolyType.svg");
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.png"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"TriangleType.svg");
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");
...@@ -103,7 +103,7 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) { ...@@ -103,7 +103,7 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) {
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.png"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"BSplineCurveType.svg");
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.png"; break; path += "TriangleType.svg"; break;
case DATA_POLY_MESH: case DATA_POLY_MESH:
path += "PolyType.png"; break; path += "PolyType.svg"; break;
case DATA_POLY_LINE: case DATA_POLY_LINE:
path += "PolyLineType.png"; break; path += "PolyLineType.svg"; break;
case DATA_BSPLINE_CURVE: case DATA_BSPLINE_CURVE:
path += "BSplineCurveType.png"; break; path += "BSplineCurveType.svg"; 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