Skip to content

Commit cccb7cb

Browse files
committed
add some qml files that have some basic functions.
Signed-off-by: Jason He <[email protected]>
1 parent 7d76502 commit cccb7cb

File tree

144 files changed

+3684
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+3684
-10
lines changed

Makefile

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
#############################################################################
2+
# Makefile for building: QtWeather
3+
# Generated by qmake (2.01a) (Qt 4.7.2) on: Mon Oct 10 14:59:06 2011
4+
# Project: QtWeather.pro
5+
# Template: app
6+
# Command: d:\qt\4.7.2\bin\qmake.exe -spec ..\..\Qt\4.7.2\mkspecs\win32-msvc2008 QMLJSDEBUGGER_PATH=d:/Qt/4.7.2/qtc-qmldbg -o Makefile QtWeather.pro
7+
#############################################################################
8+
9+
first: debug
10+
install: debug-install
11+
uninstall: debug-uninstall
12+
MAKEFILE = Makefile
13+
QMAKE = d:\qt\4.7.2\bin\qmake.exe
14+
DEL_FILE = del
15+
CHK_DIR_EXISTS= if not exist
16+
MKDIR = mkdir
17+
COPY = copy /y
18+
COPY_FILE = $(COPY)
19+
COPY_DIR = xcopy /s /q /y /i
20+
INSTALL_FILE = $(COPY_FILE)
21+
INSTALL_PROGRAM = $(COPY_FILE)
22+
INSTALL_DIR = $(COPY_DIR)
23+
DEL_FILE = del
24+
SYMLINK =
25+
DEL_DIR = rmdir
26+
MOVE = move
27+
CHK_DIR_EXISTS= if not exist
28+
MKDIR = mkdir
29+
SUBTARGETS = \
30+
debug \
31+
release
32+
33+
debug: $(MAKEFILE).Debug FORCE
34+
$(MAKE) -f $(MAKEFILE).Debug
35+
debug-make_default: $(MAKEFILE).Debug FORCE
36+
$(MAKE) -f $(MAKEFILE).Debug
37+
debug-make_first: $(MAKEFILE).Debug FORCE
38+
$(MAKE) -f $(MAKEFILE).Debug first
39+
debug-all: $(MAKEFILE).Debug FORCE
40+
$(MAKE) -f $(MAKEFILE).Debug all
41+
debug-clean: $(MAKEFILE).Debug FORCE
42+
$(MAKE) -f $(MAKEFILE).Debug clean
43+
debug-distclean: $(MAKEFILE).Debug FORCE
44+
$(MAKE) -f $(MAKEFILE).Debug distclean
45+
debug-install: $(MAKEFILE).Debug FORCE
46+
$(MAKE) -f $(MAKEFILE).Debug install
47+
debug-uninstall: $(MAKEFILE).Debug FORCE
48+
$(MAKE) -f $(MAKEFILE).Debug uninstall
49+
release: $(MAKEFILE).Release FORCE
50+
$(MAKE) -f $(MAKEFILE).Release
51+
release-make_default: $(MAKEFILE).Release FORCE
52+
$(MAKE) -f $(MAKEFILE).Release
53+
release-make_first: $(MAKEFILE).Release FORCE
54+
$(MAKE) -f $(MAKEFILE).Release first
55+
release-all: $(MAKEFILE).Release FORCE
56+
$(MAKE) -f $(MAKEFILE).Release all
57+
release-clean: $(MAKEFILE).Release FORCE
58+
$(MAKE) -f $(MAKEFILE).Release clean
59+
release-distclean: $(MAKEFILE).Release FORCE
60+
$(MAKE) -f $(MAKEFILE).Release distclean
61+
release-install: $(MAKEFILE).Release FORCE
62+
$(MAKE) -f $(MAKEFILE).Release install
63+
release-uninstall: $(MAKEFILE).Release FORCE
64+
$(MAKE) -f $(MAKEFILE).Release uninstall
65+
66+
Makefile: QtWeather.pro ..\..\Qt\4.7.2\mkspecs\win32-msvc2008\qmake.conf ..\..\Qt\4.7.2\mkspecs\qconfig.pri \
67+
..\..\Qt\4.7.2\mkspecs\modules\qt_webkit_version.pri \
68+
..\..\Qt\4.7.2\mkspecs\features\qt_functions.prf \
69+
..\..\Qt\4.7.2\mkspecs\features\qt_config.prf \
70+
..\..\Qt\4.7.2\mkspecs\features\exclusive_builds.prf \
71+
..\..\Qt\4.7.2\mkspecs\features\default_pre.prf \
72+
..\..\Qt\4.7.2\mkspecs\features\win32\default_pre.prf \
73+
..\..\Qt\4.7.2\qtc-qmldbg\qmljsdebugger-lib.pri \
74+
qmlapplicationviewer\qmlapplicationviewer.pri \
75+
..\..\Qt\4.7.2\mkspecs\features\debug.prf \
76+
..\..\Qt\4.7.2\mkspecs\features\debug_and_release.prf \
77+
..\..\Qt\4.7.2\mkspecs\features\default_post.prf \
78+
..\..\Qt\4.7.2\mkspecs\features\win32\default_post.prf \
79+
..\..\Qt\4.7.2\mkspecs\features\win32\rtti.prf \
80+
..\..\Qt\4.7.2\mkspecs\features\win32\exceptions.prf \
81+
..\..\Qt\4.7.2\mkspecs\features\win32\stl.prf \
82+
..\..\Qt\4.7.2\mkspecs\features\shared.prf \
83+
..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_exe.prf \
84+
..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_dll.prf \
85+
..\..\Qt\4.7.2\mkspecs\features\warn_on.prf \
86+
..\..\Qt\4.7.2\mkspecs\features\qt.prf \
87+
..\..\Qt\4.7.2\mkspecs\features\win32\thread.prf \
88+
..\..\Qt\4.7.2\mkspecs\features\moc.prf \
89+
..\..\Qt\4.7.2\mkspecs\features\win32\windows.prf \
90+
..\..\Qt\4.7.2\mkspecs\features\resources.prf \
91+
..\..\Qt\4.7.2\mkspecs\features\uic.prf \
92+
..\..\Qt\4.7.2\mkspecs\features\yacc.prf \
93+
..\..\Qt\4.7.2\mkspecs\features\lex.prf \
94+
..\..\Qt\4.7.2\mkspecs\features\incredibuild_xge.prf \
95+
..\..\Qt\4.7.2\mkspecs\features\include_source_dir.prf \
96+
d:\Qt\4.7.2\lib\qtmaind.prl \
97+
d:\Qt\4.7.2\qtc-qmldbg\QmlJSDebuggerd.prl
98+
$(QMAKE) -spec ..\..\Qt\4.7.2\mkspecs\win32-msvc2008 QMLJSDEBUGGER_PATH=d:/Qt/4.7.2/qtc-qmldbg -o Makefile QtWeather.pro
99+
..\..\Qt\4.7.2\mkspecs\qconfig.pri:
100+
..\..\Qt\4.7.2\mkspecs\modules\qt_webkit_version.pri:
101+
..\..\Qt\4.7.2\mkspecs\features\qt_functions.prf:
102+
..\..\Qt\4.7.2\mkspecs\features\qt_config.prf:
103+
..\..\Qt\4.7.2\mkspecs\features\exclusive_builds.prf:
104+
..\..\Qt\4.7.2\mkspecs\features\default_pre.prf:
105+
..\..\Qt\4.7.2\mkspecs\features\win32\default_pre.prf:
106+
..\..\Qt\4.7.2\qtc-qmldbg\qmljsdebugger-lib.pri:
107+
qmlapplicationviewer\qmlapplicationviewer.pri:
108+
..\..\Qt\4.7.2\mkspecs\features\debug.prf:
109+
..\..\Qt\4.7.2\mkspecs\features\debug_and_release.prf:
110+
..\..\Qt\4.7.2\mkspecs\features\default_post.prf:
111+
..\..\Qt\4.7.2\mkspecs\features\win32\default_post.prf:
112+
..\..\Qt\4.7.2\mkspecs\features\win32\rtti.prf:
113+
..\..\Qt\4.7.2\mkspecs\features\win32\exceptions.prf:
114+
..\..\Qt\4.7.2\mkspecs\features\win32\stl.prf:
115+
..\..\Qt\4.7.2\mkspecs\features\shared.prf:
116+
..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_exe.prf:
117+
..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_dll.prf:
118+
..\..\Qt\4.7.2\mkspecs\features\warn_on.prf:
119+
..\..\Qt\4.7.2\mkspecs\features\qt.prf:
120+
..\..\Qt\4.7.2\mkspecs\features\win32\thread.prf:
121+
..\..\Qt\4.7.2\mkspecs\features\moc.prf:
122+
..\..\Qt\4.7.2\mkspecs\features\win32\windows.prf:
123+
..\..\Qt\4.7.2\mkspecs\features\resources.prf:
124+
..\..\Qt\4.7.2\mkspecs\features\uic.prf:
125+
..\..\Qt\4.7.2\mkspecs\features\yacc.prf:
126+
..\..\Qt\4.7.2\mkspecs\features\lex.prf:
127+
..\..\Qt\4.7.2\mkspecs\features\incredibuild_xge.prf:
128+
..\..\Qt\4.7.2\mkspecs\features\include_source_dir.prf:
129+
d:\Qt\4.7.2\lib\qtmaind.prl:
130+
d:\Qt\4.7.2\qtc-qmldbg\QmlJSDebuggerd.prl:
131+
qmake: qmake_all FORCE
132+
@$(QMAKE) -spec ..\..\Qt\4.7.2\mkspecs\win32-msvc2008 QMLJSDEBUGGER_PATH=d:/Qt/4.7.2/qtc-qmldbg -o Makefile QtWeather.pro
133+
134+
qmake_all: FORCE
135+
136+
make_default: debug-make_default release-make_default FORCE
137+
make_first: debug-make_first release-make_first FORCE
138+
all: debug-all release-all FORCE
139+
clean: debug-clean release-clean FORCE
140+
-$(DEL_FILE) ".\QtWeather.intermediate.manifest"
141+
-$(DEL_FILE) QtWeather.exp
142+
-$(DEL_FILE) QtWeather.ilk
143+
-$(DEL_FILE) vc*.pdb
144+
-$(DEL_FILE) vc*.idb
145+
distclean: debug-distclean release-distclean FORCE
146+
-$(DEL_FILE) Makefile
147+
-$(DEL_FILE) QtWeather.pdb
148+
149+
check: first
150+
151+
debug-mocclean: $(MAKEFILE).Debug
152+
$(MAKE) -f $(MAKEFILE).Debug mocclean
153+
release-mocclean: $(MAKEFILE).Release
154+
$(MAKE) -f $(MAKEFILE).Release mocclean
155+
mocclean: debug-mocclean release-mocclean
156+
157+
debug-mocables: $(MAKEFILE).Debug
158+
$(MAKE) -f $(MAKEFILE).Debug mocables
159+
release-mocables: $(MAKEFILE).Release
160+
$(MAKE) -f $(MAKEFILE).Release mocables
161+
mocables: debug-mocables release-mocables
162+
FORCE:
163+
164+
$(MAKEFILE).Debug: Makefile
165+
$(MAKEFILE).Release: Makefile

Makefile.Debug

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
#############################################################################
2+
# Makefile for building: QtWeather
3+
# Generated by qmake (2.01a) (Qt 4.7.2) on: Mon Oct 10 14:59:06 2011
4+
# Project: QtWeather.pro
5+
# Template: app
6+
#############################################################################
7+
8+
####### Compiler, tools and options
9+
10+
CC = cl
11+
CXX = cl
12+
DEFINES = -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQMLJSDEBUGGER -DQT_DLL -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT
13+
CFLAGS = -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -W3 $(DEFINES)
14+
CXXFLAGS = -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 $(DEFINES)
15+
INCPATH = -I"..\..\Qt\4.7.2\include\QtCore" -I"..\..\Qt\4.7.2\include\QtGui" -I"..\..\Qt\4.7.2\include\QtScript" -I"..\..\Qt\4.7.2\include\QtDeclarative" -I"..\..\Qt\4.7.2\include" -I"qmlapplicationviewer" -I"..\..\Qt\4.7.2\qtc-qmldbg\include" -I"..\..\Qt\4.7.2\include\ActiveQt" -I"debug" -I"..\..\Qt\4.7.2\mkspecs\win32-msvc2008"
16+
LINK = link
17+
LFLAGS = /LIBPATH:"d:\Qt\4.7.2\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"debug\QtWeather.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'"
18+
LIBS = d:\Qt\4.7.2\lib\qtmaind.lib /LIBPATH:D:/Qt/4.7.2/qtc-qmldbg D:/Qt/4.7.2/qtc-qmldbg\QmlJSDebuggerd.lib d:\Qt\4.7.2\lib\QtDeclaratived4.lib d:\Qt\4.7.2\lib\QtScriptd4.lib d:\Qt\4.7.2\lib\QtGuid4.lib d:\Qt\4.7.2\lib\QtCored4.lib
19+
QMAKE = d:\qt\4.7.2\bin\qmake.exe
20+
IDC = d:\Qt\4.7.2\bin\idc.exe
21+
IDL = midl
22+
ZIP = zip -r -9
23+
DEF_FILE =
24+
RES_FILE =
25+
COPY = copy /y
26+
COPY_FILE = $(COPY)
27+
COPY_DIR = xcopy /s /q /y /i
28+
DEL_FILE = del
29+
DEL_DIR = rmdir
30+
MOVE = move
31+
CHK_DIR_EXISTS= if not exist
32+
MKDIR = mkdir
33+
INSTALL_FILE = $(COPY_FILE)
34+
INSTALL_PROGRAM = $(COPY_FILE)
35+
INSTALL_DIR = $(COPY_DIR)
36+
37+
####### Output directory
38+
39+
OBJECTS_DIR = debug
40+
41+
####### Files
42+
43+
SOURCES = main.cpp \
44+
qmlapplicationviewer\qmlapplicationviewer.cpp debug\moc_qmlapplicationviewer.cpp
45+
OBJECTS = debug\main.obj \
46+
debug\qmlapplicationviewer.obj \
47+
debug\moc_qmlapplicationviewer.obj
48+
DIST =
49+
QMAKE_TARGET = QtWeather
50+
DESTDIR = debug\ #avoid trailing-slash linebreak
51+
TARGET = QtWeather.exe
52+
DESTDIR_TARGET = debug\QtWeather.exe
53+
54+
####### Implicit rules
55+
56+
.SUFFIXES: .c .cpp .cc .cxx
57+
58+
{qmlapplicationviewer}.cpp{debug\}.obj::
59+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
60+
$<
61+
<<
62+
63+
{qmlapplicationviewer}.cc{debug\}.obj::
64+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
65+
$<
66+
<<
67+
68+
{qmlapplicationviewer}.cxx{debug\}.obj::
69+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
70+
$<
71+
<<
72+
73+
{qmlapplicationviewer}.c{debug\}.obj::
74+
$(CC) -c $(CFLAGS) $(INCPATH) -Fodebug\ @<<
75+
$<
76+
<<
77+
78+
{.}.cpp{debug\}.obj::
79+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
80+
$<
81+
<<
82+
83+
{.}.cc{debug\}.obj::
84+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
85+
$<
86+
<<
87+
88+
{.}.cxx{debug\}.obj::
89+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
90+
$<
91+
<<
92+
93+
{.}.c{debug\}.obj::
94+
$(CC) -c $(CFLAGS) $(INCPATH) -Fodebug\ @<<
95+
$<
96+
<<
97+
98+
{debug}.cpp{debug\}.obj::
99+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
100+
$<
101+
<<
102+
103+
{debug}.cc{debug\}.obj::
104+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
105+
$<
106+
<<
107+
108+
{debug}.cxx{debug\}.obj::
109+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug\ @<<
110+
$<
111+
<<
112+
113+
{debug}.c{debug\}.obj::
114+
$(CC) -c $(CFLAGS) $(INCPATH) -Fodebug\ @<<
115+
$<
116+
<<
117+
118+
####### Build rules
119+
120+
first: all
121+
all: Makefile.Debug $(DESTDIR_TARGET)
122+
123+
$(DESTDIR_TARGET): $(OBJECTS)
124+
$(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<<
125+
$(OBJECTS) $(LIBS)
126+
<<
127+
mt.exe -nologo -manifest "debug\QtWeather.intermediate.manifest" -outputresource:$(DESTDIR_TARGET);1
128+
129+
130+
131+
qmake: FORCE
132+
@$(QMAKE) -spec ..\..\Qt\4.7.2\mkspecs\win32-msvc2008 QMLJSDEBUGGER_PATH=d:/Qt/4.7.2/qtc-qmldbg -o Makefile.Debug QtWeather.pro
133+
134+
dist:
135+
$(ZIP) QtWeather.zip $(SOURCES) $(DIST) QtWeather.pro ..\..\Qt\4.7.2\mkspecs\qconfig.pri ..\..\Qt\4.7.2\mkspecs\modules\qt_webkit_version.pri ..\..\Qt\4.7.2\mkspecs\features\qt_functions.prf ..\..\Qt\4.7.2\mkspecs\features\qt_config.prf ..\..\Qt\4.7.2\mkspecs\features\exclusive_builds.prf ..\..\Qt\4.7.2\mkspecs\features\default_pre.prf ..\..\Qt\4.7.2\mkspecs\features\win32\default_pre.prf ..\..\Qt\4.7.2\qtc-qmldbg\qmljsdebugger-lib.pri qmlapplicationviewer\qmlapplicationviewer.pri ..\..\Qt\4.7.2\mkspecs\features\debug.prf ..\..\Qt\4.7.2\mkspecs\features\debug_and_release.prf ..\..\Qt\4.7.2\mkspecs\features\default_post.prf ..\..\Qt\4.7.2\mkspecs\features\win32\default_post.prf ..\..\Qt\4.7.2\mkspecs\features\build_pass.prf ..\..\Qt\4.7.2\mkspecs\features\win32\rtti.prf ..\..\Qt\4.7.2\mkspecs\features\win32\exceptions.prf ..\..\Qt\4.7.2\mkspecs\features\win32\stl.prf ..\..\Qt\4.7.2\mkspecs\features\shared.prf ..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_exe.prf ..\..\Qt\4.7.2\mkspecs\features\win32\embed_manifest_dll.prf ..\..\Qt\4.7.2\mkspecs\features\warn_on.prf ..\..\Qt\4.7.2\mkspecs\features\qt.prf ..\..\Qt\4.7.2\mkspecs\features\win32\thread.prf ..\..\Qt\4.7.2\mkspecs\features\moc.prf ..\..\Qt\4.7.2\mkspecs\features\win32\windows.prf ..\..\Qt\4.7.2\mkspecs\features\resources.prf ..\..\Qt\4.7.2\mkspecs\features\uic.prf ..\..\Qt\4.7.2\mkspecs\features\yacc.prf ..\..\Qt\4.7.2\mkspecs\features\lex.prf ..\..\Qt\4.7.2\mkspecs\features\incredibuild_xge.prf ..\..\Qt\4.7.2\mkspecs\features\include_source_dir.prf d:\Qt\4.7.2\lib\qtmaind.prl d:\Qt\4.7.2\qtc-qmldbg\QmlJSDebuggerd.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
136+
137+
clean: compiler_clean
138+
-$(DEL_FILE) debug\main.obj debug\qmlapplicationviewer.obj debug\moc_qmlapplicationviewer.obj
139+
-$(DEL_FILE) debug\QtWeather.intermediate.manifest debug\QtWeather.exp debug\QtWeather.ilk vc*.pdb vc*.idb
140+
141+
distclean: clean
142+
-$(DEL_FILE) debug\QtWeather.pdb
143+
-$(DEL_FILE) $(DESTDIR_TARGET)
144+
-$(DEL_FILE) Makefile.Debug
145+
146+
check: first
147+
148+
mocclean: compiler_moc_header_clean compiler_moc_source_clean
149+
150+
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
151+
152+
compiler_moc_header_make_all: debug\moc_qmlapplicationviewer.cpp
153+
compiler_moc_header_clean:
154+
-$(DEL_FILE) debug\moc_qmlapplicationviewer.cpp
155+
debug\moc_qmlapplicationviewer.cpp: qmlapplicationviewer\qmlapplicationviewer.h
156+
d:\Qt\4.7.2\bin\moc.exe $(DEFINES) $(INCPATH) -D_MSC_VER=1500 -DWIN32 qmlapplicationviewer\qmlapplicationviewer.h -o debug\moc_qmlapplicationviewer.cpp
157+
158+
compiler_rcc_make_all:
159+
compiler_rcc_clean:
160+
compiler_image_collection_make_all: qmake_image_collection.cpp
161+
compiler_image_collection_clean:
162+
-$(DEL_FILE) qmake_image_collection.cpp
163+
compiler_moc_source_make_all:
164+
compiler_moc_source_clean:
165+
compiler_uic_make_all:
166+
compiler_uic_clean:
167+
compiler_yacc_decl_make_all:
168+
compiler_yacc_decl_clean:
169+
compiler_yacc_impl_make_all:
170+
compiler_yacc_impl_clean:
171+
compiler_lex_make_all:
172+
compiler_lex_clean:
173+
compiler_clean: compiler_moc_header_clean
174+
175+
176+
177+
####### Compile
178+
179+
debug\main.obj: main.cpp
180+
181+
debug\qmlapplicationviewer.obj: qmlapplicationviewer\qmlapplicationviewer.cpp qmlapplicationviewer\qmlapplicationviewer.h
182+
183+
debug\moc_qmlapplicationviewer.obj: debug\moc_qmlapplicationviewer.cpp
184+
185+
####### Install
186+
187+
install: FORCE
188+
189+
uninstall: FORCE
190+
191+
FORCE:
192+

0 commit comments

Comments
 (0)