+ Use application icon as default workbench name

This commit is contained in:
wmayer 2014-01-22 17:35:10 +01:00
parent 698899e6d7
commit 7506e740e0
2 changed files with 8 additions and 26 deletions

View File

@ -1136,7 +1136,14 @@ QPixmap Application::workbenchIcon(const QString& wb) const
}
}
return QPixmap();
QIcon icon = QApplication::windowIcon();
if (!icon.isNull()) {
QList<QSize> s = icon.availableSizes();
return icon.pixmap(s[0]);
}
else {
return QPixmap();
}
}
QString Application::workbenchToolTip(const QString& wb) const

View File

@ -39,31 +39,6 @@ Gui = FreeCADGui
# Important definitions
class Workbench:
"""The workbench base class."""
Icon = """
/* XPM */
static const char *FCIcon[]={
"16 16 4 1",
". c None",
"# c #000000",
"a c #848284",
"b c #ff0000",
"........#.......",
".......##aaaaaa.",
"........#.....a.",
".#######......a.",
".##...........a.",
".##...bbbb....a.",
".##..bb..bb...a.",
".###bb#...b..###",
".##.bb........#.",
".##.bb..........",
".##.bb..........",
".##.bb..........",
".##.bb....b.....",
".....bb..bb.....",
"......bbbb......",
"................"};
"""
MenuText = ""
ToolTip = ""