提交 fcbcc87a 编写于 作者: mahuifa's avatar mahuifa

refactor:修改pro文件格式,删除多余代码

上级 de86af47
......@@ -17,16 +17,8 @@ SOURCES += \
main.cpp \
widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
include($$PWD/SimpleNetWidget/SimpleNetWidget.pri) # 较为简单的Qt网络通信学习Demo
INCLUDEPATH += $$PWD/SimpleNetWidget
......
......@@ -14,20 +14,11 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
SOURCES += \
main.cpp \
widget.cpp
SOURCES += main.cpp
SOURCES += widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
# 定义程序版本号
VERSION = 1.0.1
......
......@@ -15,11 +15,6 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
SOURCES += main.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
# 定义程序版本号
VERSION = 1.0.1
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
......
......@@ -41,11 +41,6 @@ FORMS += \
userbackstage.ui \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
# 定义程序版本号
VERSION = 1.0.1
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
......
......@@ -18,16 +18,8 @@ SOURCES += \
main.cpp \
widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
# 定义程序版本号
VERSION = 1.0.1
......
......@@ -16,11 +16,6 @@ CONFIG += c++11
SOURCES += main.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
# 定义程序版本号
VERSION = 1.0.1
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
......
......@@ -23,16 +23,8 @@ SOURCES += \
main.cpp \
widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
# 定义程序版本号
VERSION = 1.0.1
......
......@@ -19,16 +19,8 @@ SOURCES += \
main.cpp \
widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
# 定义程序版本号
VERSION = 1.0.1
......
......@@ -20,16 +20,9 @@ SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += mainwindow.h
FORMS += mainwindow.ui
RESOURCES += style.qrc
# 定义程序版本号
VERSION = 1.0.1
......@@ -50,5 +43,3 @@ msvc {
message(msvc2015及以下版本在代码中使用pragma execution_character_set("utf-8")】指定编码)
}
}
RESOURCES += \
style.qrc
......@@ -24,16 +24,8 @@ SOURCES += \
main.cpp \
widget.cpp
HEADERS += \
widget.h
FORMS += \
widget.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += widget.h
FORMS += widget.ui
# 定义程序版本号
VERSION = 1.0.1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册