Whitespace fixes

Change-Id: Ibfb48076ad62804344db6e9e97ac90fdcf82dc04
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
Shawn Rutledge 2012-08-16 15:10:03 +02:00 committed by Qt by Nokia
parent 083e4c7e51
commit ef98762dc6
6 changed files with 11 additions and 11 deletions

View File

@ -37,7 +37,7 @@
\ingroup qt-gui-concepts
\brief A tour of the standard layout managers and an introduction to custom
layouts.
\previouspage Widgets and Layouts
\contentspage Widgets and Layouts
\nextpage {Styles and Style Aware Widgets}{Styles}

View File

@ -32,7 +32,7 @@
\ingroup frameworks-technologies
\ingroup qt-basic-concepts
\ingroup qt-gui-concepts
\ingroup qt-gui-concepts
\previouspage {Styles and Style Aware Widgets}{Styles}
\contentspage Widgets and Layouts

View File

@ -71,7 +71,7 @@
widgets and encapsulate the look and feel of a GUI. Qt's built-in
widgets use the QStyle class to perform nearly all of their drawing,
ensuring that they look exactly like the equivalent native widgets.
\table
\row
\li \image windowsxp-tabwidget.png

View File

@ -160,7 +160,7 @@
These classes provide everything you need for a typical modern main
application window, like the main window itself, menu and tool bars,
a status bar, etc.
\annotatedlist mainwindow-classes
\section1 The Main Window Classes
@ -237,7 +237,7 @@
\snippet dockwidgets/mainwindow.cpp 0
In this example, the dock widget can only be placed in the left and
right dock areas, and it is initially placed in the left dock area.
right dock areas, and it is initially placed in the left dock area.
The QMainWindow API allows the programmer to customize which dock
widget areas occupy the four corners of the dock widget area. If

View File

@ -305,11 +305,11 @@ QModelIndex QDirModel::parent(const QModelIndex &child) const
Q_D(const QDirModel);
if (!d->indexValid(child))
return QModelIndex();
return QModelIndex();
QDirModelPrivate::QDirNode *node = d->node(child);
QDirModelPrivate::QDirNode *par = (node ? node->parent : 0);
if (par == 0) // parent is the root node
return QModelIndex();
return QModelIndex();
// get the parent's row
const QVector<QDirModelPrivate::QDirNode> children =
@ -435,7 +435,7 @@ QVariant QDirModel::headerData(int section, Qt::Orientation orientation, int rol
if (orientation == Qt::Horizontal) {
if (role != Qt::DisplayRole)
return QVariant();
switch (section) {
switch (section) {
case 0: return tr("Name");
case 1: return tr("Size");
case 2: return
@ -898,7 +898,7 @@ QModelIndex QDirModel::index(const QString &path, int column) const
pathElements.pop_front();
if (childAppended)
emit const_cast<QDirModel*>(this)->layoutChanged();
} else
} else
#endif
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
if (pathElements.at(0).endsWith(QLatin1Char(':'))) {
@ -1179,7 +1179,7 @@ void QDirModelPrivate::init()
QDirModelPrivate::QDirNode *QDirModelPrivate::node(int row, QDirNode *parent) const
{
if (row < 0)
return 0;
return 0;
bool isDir = !parent || parent->info.isDir();
QDirNode *p = (parent ? parent : &root);

View File

@ -1926,7 +1926,7 @@ void QHeaderViewPrivate::_q_layoutAboutToBeChanged()
{
//if there is no row/column we can't have mapping for columns
//because no QModelIndex in the model would be valid
// ### this is far from being bullet-proof and we would need a real system to
// ### this is far from being bullet-proof and we would need a real system to
// ### map columns or rows persistently
if ((orientation == Qt::Horizontal && model->rowCount(root) == 0)
|| model->columnCount(root) == 0)