Skip to content

Commit

Permalink
Merge commit 'qt/master-stable'
Browse files Browse the repository at this point in the history
Conflicts:
	configure.exe
	doc/src/classes/qnamespace.qdoc
	examples/examples.pro
	src/corelib/kernel/qcoreevent.cpp
	src/corelib/kernel/qobject.cpp
	src/gui/kernel/qapplication.cpp
	src/gui/kernel/qstandardgestures.h
	src/gui/kernel/qwidget.cpp
  • Loading branch information
jrbarron committed Aug 6, 2009
2 parents 57ceb11 + b008dfb commit 55c4f15
Show file tree
Hide file tree
Showing 187 changed files with 14,523 additions and 1,082 deletions.
1 change: 1 addition & 0 deletions bin/syncqt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ my %modules = ( # path to module name map
"QtDBus" => "$basedir/src/dbus",
"QtWebKit" => "$basedir/src/3rdparty/webkit/WebCore",
"phonon" => "$basedir/src/phonon",
"QtMultimedia" => "$basedir/src/multimedia",
);
my %moduleheaders = ( # restrict the module headers to those found in relative path
"QtWebKit" => "../WebKit/qt/Api",
Expand Down
14 changes: 7 additions & 7 deletions config.tests/mac/defaultarch.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
COMPILER=$1
VERBOSE=$2
WORKDIR=$3
QT_MAC_DEFUALT_ARCH=
QT_MAC_DEFAULT_ARCH=

touch defaultarch.c

Expand All @@ -17,17 +17,17 @@ rm -f defaultarch.c defaultarch.o

# detect our known archs.
if echo "$FIlE_OUTPUT" | grep '\<i386\>' > /dev/null 2>&1; then
QT_MAC_DEFUALT_ARCH=x86 # configure knows it as "x86" not "i386"
QT_MAC_DEFAULT_ARCH=x86 # configure knows it as "x86" not "i386"
fi
if echo "$FIlE_OUTPUT" | grep '\<x86_64\>' > /dev/null 2>&1; then
QT_MAC_DEFUALT_ARCH=x86_64
QT_MAC_DEFAULT_ARCH=x86_64
fi
if echo "$FIlE_OUTPUT" | grep '\<ppc\>' > /dev/null 2>&1; then
QT_MAC_DEFUALT_ARCH=ppc
QT_MAC_DEFAULT_ARCH=ppc
fi
if echo "$FIlE_OUTPUT" | grep '\<ppc64\>' > /dev/null 2>&1; then
QT_MAC_DEFUALT_ARCH=ppc64
QT_MAC_DEFAULT_ARCH=ppc64
fi

[ "$VERBOSE" = "yes" ] && echo "setting QT_MAC_DEFUALT_ARCH to \"$QT_MAC_DEFUALT_ARCH\""
export QT_MAC_DEFUALT_ARCH
[ "$VERBOSE" = "yes" ] && echo "setting QT_MAC_DEFAULT_ARCH to \"$QT_MAC_DEFAULT_ARCH\""
export QT_MAC_DEFAULT_ARCH
4 changes: 4 additions & 0 deletions config.tests/unix/alsa/alsa.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SOURCES = alsatest.cpp
LIBS+=-lasound
CONFIG -= qt dylib
mac:CONFIG -= app_bundle
6 changes: 6 additions & 0 deletions config.tests/unix/alsa/alsatest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <alsa/asoundlib.h>
int main(int argc,char **argv)
{
return 0;
}

58 changes: 49 additions & 9 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ CFG_NOBUILD_PARTS=""
CFG_RELEASE_QMAKE=no
CFG_PHONON=auto
CFG_PHONON_BACKEND=yes
CFG_MULTIMEDIA=yes
CFG_SVG=yes
CFG_WEBKIT=auto # (yes|no|auto)

Expand Down Expand Up @@ -709,6 +710,7 @@ OPT_VERBOSE=no
OPT_HELP=
CFG_SILENT=no
CFG_GRAPHICS_SYSTEM=default
CFG_ALSA=auto

# initalize variables used for installation
QT_INSTALL_PREFIX=
Expand Down Expand Up @@ -848,7 +850,7 @@ while [ "$#" -gt 0 ]; do
VAL=no
;;
#Qt style yes options
-incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xshape|-xinput|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-svg|-webkit|-scripttools|-rpath|-force-pkg-config)
-incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xshape|-xinput|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-svg|-webkit|-scripttools|-rpath|-force-pkg-config)
VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
VAL=yes
;;
Expand Down Expand Up @@ -1976,6 +1978,13 @@ while [ "$#" -gt 0 ]; do
UNKNOWN_OPT=yes
fi
;;
multimedia)
if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
CFG_MULTIMEDIA="$VAL"
else
UNKNOWN_OPT=yes
fi
;;
*)
UNKNOWN_OPT=yes
;;
Expand Down Expand Up @@ -3152,6 +3161,7 @@ Usage: $relconf [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir
[-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
[-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
[-no-openssl] [-openssl] [-openssl-linked]
[-no-multimedia] [-multimedia]
[-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit]
[-no-scripttools] [-scripttools]
Expand Down Expand Up @@ -3292,6 +3302,9 @@ fi
-no-phonon-backend.. Do not build the platform phonon plugin.
+ -phonon-backend..... Build the platform phonon plugin.
-no-multimedia ..... Do not build the multimedia module.
* -multimedia ........ Build the multimedia module.
-no-svg ............ Do not build the SVG module.
+ -svg ............... Build the SVG module.
Expand Down Expand Up @@ -5664,6 +5677,14 @@ if [ "$CFG_PTMALLOC" != "no" ]; then
QMakeVar add QMAKE_LFLAGS "$outpath/lib/libptmalloc3.a"
fi

if [ "$CFG_ALSA" = "auto" ]; then
if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/alsa "alsa" $L_FLAGS $I_FLAGS $l_FLAGS; then
CFG_ALSA=yes
else
CFG_ALSA=no
fi
fi

#-------------------------------------------------------------------------------
# ask for all that hasn't been auto-detected or specified in the arguments
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -5707,17 +5728,23 @@ if [ "$CFG_MAC_DWARF2" = "yes" ]; then
QT_CONFIG="$QT_CONFIG dwarf2"
fi

# Set the default arch. Select 32-bit/carbon if nothing else has
# been specified on the configure line.
# Set the default arch.
# Carbon builds: 32 bit x86/ppc.
# For "-cocoa" builds on snow leopard : compiler default (64-bit).
# For "-cocoa" builds on leopard : compiler default (32-bit).
if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" == "" ]; then
source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"

if [ "$QT_MAC_DEFUALT_ARCH" == "x86_64" ]; then
CFG_MAC_ARCHS=" x86"
elif [ "$QT_MAC_DEFUALT_ARCH" == "ppc64" ]; then
CFG_MAC_ARCHS=" ppc"
else
CFG_MAC_ARCHS=" $QT_MAC_DEFUALT_ARCH"
if [ "$CFG_MAC_COCOA" != "yes" ]; then
if [ "$QT_MAC_DEFAULT_ARCH" == "x86_64" ]; then
CFG_MAC_ARCHS=" x86"
elif [ "$QT_MAC_DEFAULT_ARCH" == "ppc64" ]; then
CFG_MAC_ARCHS=" ppc"
else
CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH"
fi
else
CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH"
fi

[ "$OPT_VERBOSE" == "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
Expand Down Expand Up @@ -6098,6 +6125,10 @@ if [ "$CFG_EXCEPTIONS" != "no" ]; then
QTCONFIG_CONFIG="$QTCONFIG_CONFIG exceptions"
fi

if [ "$CFG_ALSA" = "yes" ]; then
QT_CONFIG="$QT_CONFIG alsa"
fi

#
# Some Qt modules are too advanced in C++ for some old compilers
# Detect here the platforms where they are known to work.
Expand Down Expand Up @@ -6269,6 +6300,12 @@ else
QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS"
fi

if [ "$CFG_MULTIMEDIA" = "yes" ]; then
QT_CONFIG="$QT_CONFIG multimedia"
else
QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MULTIMEDIA"
fi

if [ "$CFG_EXCEPTIONS" = "no" ]; then
case "$COMPILER" in
g++*)
Expand Down Expand Up @@ -6770,6 +6807,7 @@ fi
[ "$CFG_XFIXES" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XFIXES"
[ "$CFG_XRANDR" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XRANDR"
[ "$CFG_XINPUT" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINPUT"
[ "$CFG_ALSA" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ALSA"

# sort QCONFIG_FLAGS for neatness if we can
[ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq`
Expand Down Expand Up @@ -7129,6 +7167,7 @@ echo "QtConcurrent code.... $CFG_CONCURRENT"
echo "QtScriptTools module $CFG_SCRIPTTOOLS"
echo "QtXmlPatterns module $CFG_XMLPATTERNS"
echo "Phonon module ....... $CFG_PHONON"
echo "Multimedia module ... $CFG_MULTIMEDIA"
echo "SVG module .......... $CFG_SVG"
echo "WebKit module ....... $CFG_WEBKIT"
echo "STL support ......... $CFG_STL"
Expand Down Expand Up @@ -7279,6 +7318,7 @@ if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG"
echo "NOTE: Mac OS X frameworks implicitly build debug and release Qt libraries."
echo
fi
echo "alsa support ........ $CFG_ALSA"
echo

sepath=`echo "$relpath" | sed -e 's/\\./\\\\./g'`
Expand Down
5 changes: 5 additions & 0 deletions demos/qtdemo/xml/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
<category dirname="phonon" name="Phonon">
<example filename="musicplayer" name="Music Player" />
</category>
<category dirname="multimedia/audio" name="Multimedia">
<example filename="audiodevices" name="Audio Devices" />
<example filename="audiooutput" name="Audio Output" />
<example filename="audioinput" name="Audio Input" />
</category>
<category dirname="richtext" name="Rich Text">
<example filename="calendar" name="Calendar" />
<example filename="orderform" name="Order Form" />
Expand Down
16 changes: 4 additions & 12 deletions doc/src/classes/qnamespace.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2423,30 +2423,22 @@
\value ImhNone No hints.
\value ImhHiddenText Characters should be hidden, as is typically used when entering passwords.
This is automatically set when setting QLineEdit::echoMode to \c Password.
\value ImhDigitsOnly Only digit input is allowed.
\value ImhFormattedNumbersOnly Only number input (including integers and real numbers) is allowed.
\value ImhNumbersOnly Only number input is allowed.
\value ImhUppercaseOnly Only upper case letter input is allowed.
\value ImhLowercaseOnly Only lower case letter input is allowed.
\value ImhNoAutoUppercase The input method should not try to automatically switch to upper case
at the beginning of a sentence.
\value ImhPreferNumbers Numbers are preferred (but not required). This can include only digits,
phone numbers, or all numbers, depending on which one of the
\c ImhDigitsOnly, \c ImhDialableCharactersOnly and
\c ImhFormattedNumbersOnly flags is given.
when a sentence ends.
\value ImhPreferNumbers Numbers are preferred (but not required).
\value ImhPreferUppercase Upper case letters are preferred (but not required).
\value ImhPreferLowercase Lower case letters are preferred (but not required).
\value ImhNoPredictiveText Do not use predictive text (i.e. dictionary lookup) while typing.
\value ImhDialableCharactersOnly Only characters suitable for phone dialling are allowed.

\value ImhExclusiveInputMask A mask to test for the presence of any flags ending with \c Only.

\note If several flags ending with \c Only are ORed together, the resulting character set will
consist of the union of the specified sets. For instance specifying \c ImhNumbersOnly and
\c ImhUppercaseOnly would yield a set consisting of numbers and uppercase letters.

\note If several flags of the \c Prefer type are ORed together, the result is undefined.

\sa QWidget::inputMethodHints
\sa QGraphicsItem::inputMethodHints()
*/

/*!
Expand Down
11 changes: 11 additions & 0 deletions doc/src/examples-overview.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,17 @@
These examples demonstrate the basic techniques used to take advantage of
OpenGL in Qt applications.

\section1 \l{Qt Examples#Multimedia}{Multimedia}

\l{Qt Examples#Multimedia}

Qt provides low-level audio support on linux,windows and mac platforms by default and
an audio plugin API to allow developers to implement there own audio support for
custom devices and platforms.

These examples demonstrate the basic techniques used to take advantage of
Audio API in Qt applications.

\section1 \l{Qt Examples#SQL}{SQL}

\l{Qt Examples#SQL}{\inlineimage sql-examples.png
Expand Down
8 changes: 8 additions & 0 deletions doc/src/examples.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@
\o \l{phonon/musicplayer}{Music Player}\raisedaster
\endlist

\section1 Multimedia

\list
\o \l{multimedia/audio/audiodevices}{Audio Devices}\raisedaster
\o \l{multimedia/audio/audiooutput}{Audio Output}\raisedaster
\o \l{multimedia/audio/audioinput}{Audio Input}\raisedaster
\endlist

\section1 Qt Designer

\list
Expand Down
54 changes: 54 additions & 0 deletions doc/src/examples/audiodevices.qdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the either Technology Preview License Agreement or the
** Beta Release License Agreement.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://www.qtsoftware.com/contact.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
\example multimedia/audio/audiodevices
\title Audio Devices Example

The Audio Devices example demonstrates the basic use of QAudioDeviceInfo class
provided with Qt.

Qt provides the QAudioDeviceInfo class to enable audio querying within
a standard application user interface.

This example allows you to browse audio devices available and try out different
configurations to see if they are supported.
*/
54 changes: 54 additions & 0 deletions doc/src/examples/audioinput.qdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the either Technology Preview License Agreement or the
** Beta Release License Agreement.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://www.qtsoftware.com/contact.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
\example multimedia/audio/audioinput
\title AudioInput Example

The Audio Input example demonstrates the basic use of QAudioInput class
provided with Qt.

Qt provides the QAudioInput class to enable audio functionality within
a standard application user interface.

This example uses a fast-fourier transform on the input audio from the microphone
and displays the output.
*/
Loading

0 comments on commit 55c4f15

Please sign in to comment.