summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qfontdatabase
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-07-26 16:33:42 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-07-26 16:33:42 (GMT)
commit857cbe43a105617f2ac48e356c31845097e15b84 (patch)
treea575c9cb831a0342b47cf69e245b58e895a1308b /doc/src/snippets/qfontdatabase
parent2268c602cacc7efe5fa54dd026d1c3455ec76c47 (diff)
parentd6203cfeb0e096575c1fc0254dddc07a3d65d24c (diff)
downloadQt-857cbe43a105617f2ac48e356c31845097e15b84.zip
Qt-857cbe43a105617f2ac48e356c31845097e15b84.tar.gz
Qt-857cbe43a105617f2ac48e356c31845097e15b84.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Do check after all if we have partialUpdateSupport. QDeclarativeEngineDebugServer: Fix crash when trying to update non-properties. Doc: use const& in foreach when applicable. QGLBuffer::bind()/release() should not be const functions. Use SSSE3 to convert from RGB888 to RGB32 Extend the build system to SSSE3 CPU feature detection for x86_64 Use the appropriate CPUID bitmap for detecting SSE3 etc Skip tst_QLineEdit::QTBUG697_paletteCurrentColorGroup on non-x11 Stabilize tst_qlineedit.cpp QScriptEngineAgent: ensure that the top of the backtrace is correct in exceptionThrow Fix QLineEdit's Highlight color when inactive.
Diffstat (limited to 'doc/src/snippets/qfontdatabase')
-rw-r--r--doc/src/snippets/qfontdatabase/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/qfontdatabase/main.cpp b/doc/src/snippets/qfontdatabase/main.cpp
index 7f939de..1b8ff42 100644
--- a/doc/src/snippets/qfontdatabase/main.cpp
+++ b/doc/src/snippets/qfontdatabase/main.cpp
@@ -50,11 +50,11 @@ int main(int argc, char **argv)
fontTree.setColumnCount(2);
fontTree.setHeaderLabels(QStringList() << "Font" << "Smooth Sizes");
- foreach (QString family, database.families()) {
+ foreach (const QString &family, database.families()) {
QTreeWidgetItem *familyItem = new QTreeWidgetItem(&fontTree);
familyItem->setText(0, family);
- foreach (QString style, database.styles(family)) {
+ foreach (const QString &style, database.styles(family)) {
QTreeWidgetItem *styleItem = new QTreeWidgetItem(familyItem);
styleItem->setText(0, style);