Skip to content
Snippets Groups Projects
Commit 411004eb authored by stefan's avatar stefan
Browse files

Scene_Win:

-Labels bold
-Organized positions of menupoints

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1772 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 083ed4b1
No related branches found
No related tags found
No related merge requests found
...@@ -114,11 +114,6 @@ void ContextMenu::ShowMenu(const QPoint& pos) ...@@ -114,11 +114,6 @@ void ContextMenu::ShowMenu(const QPoint& pos)
connect(action, SIGNAL(triggered()), SceneSelection::Instance(), SLOT(Hide())); connect(action, SIGNAL(triggered()), SceneSelection::Instance(), SLOT(Hide()));
} }
if((all_gfx_objects || all_custom_views) && indexes.size()==2){
action = menu->addAction("Rename");
connect(action, SIGNAL(triggered()), this, SLOT(Rename()));
}
if(all_entity_views){ if(all_entity_views){
action = menu->addAction("Show"); action = menu->addAction("Show");
connect(action, SIGNAL(triggered()), SceneSelection::Instance(), SLOT(MakeVisible())); connect(action, SIGNAL(triggered()), SceneSelection::Instance(), SLOT(MakeVisible()));
...@@ -135,13 +130,23 @@ void ContextMenu::ShowMenu(const QPoint& pos) ...@@ -135,13 +130,23 @@ void ContextMenu::ShowMenu(const QPoint& pos)
action = menu->addAction("Create Custom View"); action = menu->addAction("Create Custom View");
connect(action, SIGNAL(triggered()), this, SLOT(AddView())); connect(action, SIGNAL(triggered()), this, SLOT(AddView()));
}
if(all_entity_views){
if(all_custom_views){ if(all_custom_views){
action = menu->addAction("Delete"); action = menu->addAction("Delete");
connect(action, SIGNAL(triggered()), this, SLOT(DeleteView())); connect(action, SIGNAL(triggered()), this, SLOT(DeleteView()));
} }
} }
menu->popup(pos); if((all_gfx_objects || all_custom_views) && indexes.size()==2){
action = menu->addAction("Rename");
connect(action, SIGNAL(triggered()), this, SLOT(Rename()));
}
if(menu->actions().size()>0){
menu->popup(pos);
}
} }
} }
......
...@@ -36,6 +36,7 @@ QVariant LabelNode::GetData(int column, int role){ ...@@ -36,6 +36,7 @@ QVariant LabelNode::GetData(int column, int role){
return QVariant(name_); return QVariant(name_);
} else if(role==Qt::FontRole) { } else if(role==Qt::FontRole) {
QFont f("Helvetica"); QFont f("Helvetica");
f.setBold(true);
return QVariant(f); return QVariant(f);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment