Skip to content

Commit

Permalink
Refs #4552. MDEvent and MDHisto workspaces both get icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 18, 2012
1 parent c910fac commit b230839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/Mantid/MantidDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,9 @@ void MantidDockWidget::setItemIcon(QTreeWidgetItem* ws_item, Mantid::API::Works
{
ws_item->setIcon(0,QIcon(getQPixmap("mantid_wsgroup_xpm")));
}
else if( boost::dynamic_pointer_cast<Mantid::API::IMDEventWorkspace>(workspace) )
else if( boost::dynamic_pointer_cast<Mantid::API::IMDWorkspace>(workspace) )
{
ws_item->setIcon(0,QIcon(getQPixmap("mantid_mdews_xpm")));
ws_item->setIcon(0,QIcon(getQPixmap("mantid_mdws_xpm")));
}
// Assume it is a table workspace
else if( boost::dynamic_pointer_cast<Mantid::API::ITableWorkspace>(workspace) )
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/pixmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static const char * mantid_matrix_xpm[] = {
"{]]{]]{]]{]]{",
"{{{{{{{{{{{{{"};

static const char * mantid_mdews_xpm[] = {
static const char * mantid_mdws_xpm[] = {
"13 14 50 1",
" c None",
". c #000821",
Expand Down Expand Up @@ -12780,7 +12780,7 @@ QPixmap getQPixmap(const std::string &name)
else if (name == "copy_xpm") return QPixmap(copy_xpm);
else if (name == "unzoom_xpm") return QPixmap(unzoom_xpm);
else if (name == "mantid_matrix_xpm") return QPixmap(mantid_matrix_xpm);
else if (name == "mantid_mdews_xpm") return QPixmap(mantid_mdews_xpm);
else if (name == "mantid_mdws_xpm") return QPixmap(mantid_mdws_xpm);
else if (name == "mantid_xpm") return QPixmap(mantid_xpm);
else if (name == "mantid_wsgroup_xpm") return QPixmap(mantid_wsgroup_xpm);
else if (name == "folder_closed") return QPixmap(folder_closed);
Expand Down

0 comments on commit b230839

Please sign in to comment.