From cd7e39de9bb6b23933b00160831190c80ca58d18 Mon Sep 17 00:00:00 2001
From: Tao Zhong <taozhongimd@gmail.com>
Date: Tue, 15 Jan 2019 13:51:27 +0100
Subject: [PATCH] Change gridmode & object snap icon into checkable

---
 CONTRIBUTING.md     | 3 ---
 forms/mainwindow.ui | 6 ++++++
 jpseditor.pro       | 6 ++----
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 67245f0..941b0d4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -195,9 +195,6 @@ Here are some hints to configure your editor in order to use the *stroustrup* st
     Read also
     [How to change indentation width in eclipse?](https://superuser.com/questions/462221/how-do-i-reliably-change-the-indentation-width-in-eclipse)
 
-- **Clion**
-<!-- TODO -->
-
 
 ## Writing Documentation
 
diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui
index bd324e7..3b1bd31 100644
--- a/forms/mainwindow.ui
+++ b/forms/mainwindow.ui
@@ -191,6 +191,9 @@
    </property>
   </action>
   <action name="actiongridmode">
+   <property name="checkable">
+    <bool>true</bool>
+   </property>
    <property name="enabled">
     <bool>true</bool>
    </property>
@@ -233,6 +236,9 @@
    </property>
   </action>
   <action name="actionObjectsnap">
+   <property name="checkable">
+    <bool>true</bool>
+   </property>
    <property name="enabled">
     <bool>true</bool>
    </property>
diff --git a/jpseditor.pro b/jpseditor.pro
index 2488852..bcc4c15 100644
--- a/jpseditor.pro
+++ b/jpseditor.pro
@@ -81,8 +81,7 @@ HEADERS += \
     src/tinyxml/tinystr.h \
     src/tinyxml/tinyxml.h \
     src/inifilewidget.h \
-    forms/layerwidget.h \
-    forms/layerwidget.h
+    forms/layerwidget.h 
 
 
 SOURCES += \
@@ -115,8 +114,7 @@ SOURCES += \
     src/tinyxml/tinyxmlerror.cpp \
     src/tinyxml/tinyxmlparser.cpp \
     src/inifilewidget.cpp \
-    forms/layerwidget.cpp \
-    forms/layerwidget.cpp
+    forms/layerwidget.cpp 
 
 
 #INCLUDEPATH += D:/boost_1_59_0/boost_1_59_0
-- 
GitLab