修改 Readme 文件格式,增加 License 文件.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
cd58ad9bd5
commit
390ad25bc4
|
@ -0,0 +1,6 @@
|
|||
Copyright (c) 2011, Deusty, LLC
|
||||
All rights reserved.
|
||||
Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Neither the name of Deusty nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Deusty, LLC.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -1,7 +1,8 @@
|
|||
#QtProAddFileHelper
|
||||
个人觉得Qt Creator除了写程序外,用来看代码也是比老旧过时的sourceInsight有过之而无不及。而且还有sourceInsight不具备的代码高亮功能,可以将与所选中内容相同的函数或变量全部高亮显示出来,也可以将全部搜索结果高亮显示,这一点对阅读和修改代码非常有帮助。另外Qt Creator在修改代码方面表现比sourceInsight好很多,并且只要按下Ctrl+I就可以将源代码格式化,Qt Creator对正在编辑的代码区域进行突出显示,其余区域会变暗。
|
||||
# QtProAddFileHelper
|
||||
|
||||
但是,对于已有的项目,由很多源代码文件构成,往往一级级目录嵌套,这使得向Qt Creator添加文件成了一件很麻烦的事情——因为Qt Creator不支持以目录方式添加源代码文件。因此写了这个Qt Creator文件添加助手,基本原理就是搜索源代码目录,然后将路径和文件以以下形式添加到项目(*.pro)文件中:
|
||||
个人觉得Qt Creator除了写程序外,用来看代码也是比老旧过时的 sourceInsight 有过之而无不及。而且还有 sourceInsight 不具备的代码高亮功能,可以将与所选中内容相同的函数或变量全部高亮显示出来,也可以将全部搜索结果高亮显示,这一点对阅读和修改代码非常有帮助。另外 Qt Creator 在修改代码方面表现比 sourceInsight 好很多,并且只要按下 Ctrl+I 就可以将源代码格式化,Qt Creator 对正在编辑的代码区域进行突出显示,其余区域会变暗。
|
||||
|
||||
但是,对于已有的项目,由很多源代码文件构成,往往一级级目录嵌套,这使得向 Qt Creator 添加文件成了一件很麻烦的事情——因为 Qt Creator 不支持以目录方式添加源代码文件。因此写了这个 Qt Creator 文件添加助手,基本原理就是搜索源代码目录,然后将路径和文件以以下形式添加到项目(*.pro)文件中:
|
||||
|
||||
HEADERS += X:/Path/main.h
|
||||
|
||||
|
@ -13,4 +14,4 @@ DISTFILES += X:/Path/FileName
|
|||
|
||||
其中,项目文件即是要修改的Qt项目文件(*.pro文件)的文件名(包含全部路径),如:项目文件是“project.pro”,路径是“X:\Path\”,则输入“X:\Path\project.pro”。
|
||||
|
||||
搜索路径即是需要添加进项目的源代码文件的路径,如:X:\Path\Sources\。
|
||||
搜索路径即是需要添加进项目的源代码文件的路径,如:X:\Path\Sources\。
|
||||
|
|
Loading…
Reference in New Issue