]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionselectlayer.cpp
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / actions / rs_actionselectlayer.cpp
index 933d01206704ddd8855c76fc2b10b4b93ad53d5e..788e40376dd5ab601a9f6d49dafb14d1fa2e2427 100644 (file)
@@ -17,7 +17,7 @@
 #include "rs_dialogfactory.h"
 #include "rs_selection.h"
 
-RS_ActionSelectLayer::RS_ActionSelectLayer(RS_EntityContainer & container, RS_GraphicView & graphicView):
+RS_ActionSelectLayer::RS_ActionSelectLayer(RS_EntityContainer & container, GraphicView & graphicView):
        RS_ActionInterface("Select Layers", container, graphicView)
 {
        en = NULL;
@@ -48,7 +48,7 @@ void RS_ActionSelectLayer::trigger()
 
 void RS_ActionSelectLayer::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       if (e->button() == Qt::RightButton)
                init(getStatus() - 1);
        else
        {