summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions/javascript-imports.qml
blob: 931349f62c3a08a5e481d90ff6bf1e54b3c5bdf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use 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.
**   * Redistributions in binary form must reproduce the above copyright
**     notice, this list of conditions and the following disclaimer in
**     the documentation and/or other materials provided with the
**     distribution.
**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
**     the names of its contributors may be used to endorse or promote
**     products derived from this software without specific prior written
**     permission.
**
** 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
** OWNER 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."
** $QT_END_LICENSE$
**
****************************************************************************/

import QtQuick 1.0

//![0]
import "myscript.js" as Script

Rectangle { color: "blue"; width: Script.calculateWidth(parent) }
//![0]
opt">= $(OPT) -I$(INCLDIR) -I.. $(DEFS) MKDEP= mkdep SHELL= /bin/sh # === Fixed definitions === OBJS= \ bltinmodule.o \ ceval.o cgensupport.o compile.o \ errors.o \ frozen.o \ getargs.o getcompiler.o getcopyright.o getmtime.o \ getplatform.o getversion.o graminit.o \ import.o importdl.o \ marshal.o modsupport.o mystrtoul.o \ pythonrun.o \ sigcheck.o structmember.o sysmodule.o \ traceback.o \ $(LIBOBJS) LIB= libPython.a SYSLIBS= -lm # === Rules === all: $(LIB) $(LIB): $& $(OBJS) -rm -f $(LIB) $(AR) cr $(LIB) $(OBJS) $(RANLIB) $(LIB) clean: -rm -f *.o core *~ [@,#]* *.old *.orig *.rej clobber: clean -rm -f *.a tags TAGS Makefile: $(srcdir)/Makefile.in ../config.status (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \ $(SHELL) config.status) getplatform.o: getplatform.c Makefile $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \ $(srcdir)/getplatform.c importdl.o: importdl.c $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c depend: $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` .PRECIOUS: Makefile bltinmodule.o: bltinmodule.c ceval.o: ceval.c cgensupport.o: cgensupport.c compile.o: compile.c dup2.o: dup2.c errors.o: errors.c fmod.o: fmod.c frozen.o: frozen.c frozenmain.o: frozenmain.c getargs.o: getargs.c getcompiler.o: getcompiler.c getcopyright.o: getcopyright.c getcwd.o: getcwd.c getmtime.o: getmtime.c getopt.o: getopt.c getplatform.o: getplatform.c getversion.o: getversion.c graminit.o: graminit.c import.o: import.c importdl.o: importdl.c marshal.o: marshal.c memmove.o: memmove.c modsupport.o: modsupport.c mystrtoul.o: mystrtoul.c pythonrun.o: pythonrun.c sigcheck.o: sigcheck.c strerror.o: strerror.c strtod.o: strtod.c structmember.o: structmember.c sysmodule.o: sysmodule.c thread.o: thread.c traceback.o: traceback.c version.o: version.c # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY