Skip to content

Commit

Permalink
Diabled "Alpha slider" on edit box
Browse files Browse the repository at this point in the history
  • Loading branch information
ange-clement committed Oct 2, 2023
1 parent 98ba8b6 commit 92cb998
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_edit_box_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ struct Scene_edit_box_item_priv{
Scene_edit_box_item::Scene_edit_box_item()
{
d = nullptr;
contextMenu();
}
Scene_edit_box_item::Scene_edit_box_item(const Scene_interface *scene_interface)
{
Expand Down Expand Up @@ -311,12 +312,26 @@ Scene_edit_box_item::Scene_edit_box_item(const Scene_interface *scene_interface)
: Vi::PROGRAM_NO_SELECTION,
false));
}
contextMenu();
}
QString Scene_edit_box_item::toolTip() const {

return QString();
}


QMenu* Scene_edit_box_item::contextMenu()
{
// diasable "Alpha slider" in menu
QMenu* resMenu = Scene_item::contextMenu();
bool prop = property("menu_changed").toBool();
if(!prop)
{
setProperty("menu_changed", true);
}
return resMenu;
}

void Scene_edit_box_item::drawSpheres(Viewer_interface *viewer, const QMatrix4x4 f_matrix ) const
{
GLdouble d_mat[16];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class SCENE_EDIT_BOX_ITEM_EXPORT Scene_edit_box_item:
}

QString toolTip() const;
QMenu* contextMenu();

bool eventFilter(QObject *, QEvent *);
// Indicate if rendering mode is supported
Expand Down

0 comments on commit 92cb998

Please sign in to comment.