summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-05-08 10:46:48 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-05-08 10:46:48 (GMT)
commita2d584df2b72ed5bcd4886dcccafd7a54308f36b (patch)
treef394b25101bc5bb6c3f0bc48e2f3e269e96359a7
parent2412b0410dcf97cf348ce703722a1b4f7ce623df (diff)
parentd1889402eff75b8dabf67e80c16e3e3316d187e8 (diff)
downloadQt-a2d584df2b72ed5bcd4886dcccafd7a54308f36b.zip
Qt-a2d584df2b72ed5bcd4886dcccafd7a54308f36b.tar.gz
Qt-a2d584df2b72ed5bcd4886dcccafd7a54308f36b.tar.bz2
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
-rw-r--r--doc/src/datastreamformat.qdoc2
-rw-r--r--mkspecs/macx-g++42/qmake.conf8
-rw-r--r--src/corelib/io/qtextstream.cpp3
-rw-r--r--src/gui/painting/qprinter.cpp4
4 files changed, 9 insertions, 8 deletions
diff --git a/doc/src/datastreamformat.qdoc b/doc/src/datastreamformat.qdoc
index 67a3794..15ac062 100644
--- a/doc/src/datastreamformat.qdoc
+++ b/doc/src/datastreamformat.qdoc
@@ -301,12 +301,10 @@
\o \list
\o Milliseconds since midnight (quint32)
\endlist
-
\row \o QUrl
\o \list
\o Holds an URL (QString)
\endlist
-
\row \o QVariant
\o \list
\o The type of the data (quint32)
diff --git a/mkspecs/macx-g++42/qmake.conf b/mkspecs/macx-g++42/qmake.conf
index e6a3120..4c4f5c3 100644
--- a/mkspecs/macx-g++42/qmake.conf
+++ b/mkspecs/macx-g++42/qmake.conf
@@ -15,7 +15,11 @@ QMAKE_INCREMENTAL_STYLE = sublib
include(../common/mac-g++.conf)
-QMAKE_CC = gcc-4.2
-QMAKE_CXX = g++-4.2
+QMAKE_CC = gcc-4.2
+QMAKE_CXX = g++-4.2
+QMAKE_LINK = g++-4.2
+QMAKE_LINK_SHLIB = g++-4.2
+QMAKE_LINK_C = gcc-4.2
+QMAKE_LINK_C_SHLIB = gcc-4.2
load(qt_config)
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp
index 2010008..ed9d0aa 100644
--- a/src/corelib/io/qtextstream.cpp
+++ b/src/corelib/io/qtextstream.cpp
@@ -67,8 +67,7 @@ static const int QTEXTSTREAM_BUFFERSIZE = 16384;
\snippet doc/src/snippets/code/src_corelib_io_qtextstream.cpp 1
Note that you cannot use QTextStream::atEnd(), which returns true when you
- have reached the end of the data stream, with stdin because as long as the
- application is running, stdin has no end.
+ have reached the end of the data stream, with stdin.
Besides using QTextStream's constructors, you can also set the
device or string QTextStream operates on by calling setDevice() or
diff --git a/src/gui/painting/qprinter.cpp b/src/gui/painting/qprinter.cpp
index 6cecf2c..5090b3a 100644
--- a/src/gui/painting/qprinter.cpp
+++ b/src/gui/painting/qprinter.cpp
@@ -773,8 +773,8 @@ void QPrinter::setOutputFormat(OutputFormat format)
if (def_engine)
delete oldPrintEngine;
- d->validPrinter = (d->outputFormat == QPrinter::PdfFormat
- || d->outputFormat == QPrinter::PostScriptFormat);
+ if (d->outputFormat == QPrinter::PdfFormat || d->outputFormat == QPrinter::PostScriptFormat)
+ d->validPrinter = true;
#else
Q_UNUSED(format);
#endif