From ea8e048e1dc6094fc66143a8ee4a9cd6bdf3a952 Mon Sep 17 00:00:00 2001 From: Teemu Katajisto Date: Thu, 2 Feb 2012 12:29:54 +0200 Subject: Various documentation fixes ported from Qt 4.8 Selected fixes for qtbase from 4.8 commit 3826203f744a2147bebf5f088de0d524156f59fd Task-number: QTBUG-9466 Task-number: QTBUG-7924 Task-number: QTBUG-20355 Task-number: QTBUG-19367 Task-number: QTBUG-14554 Change-Id: I551251dd8a87d7dd837e5927050ffd14bce9a97c Reviewed-by: Robin Burchell Reviewed-by: Casper van Donderen --- src/corelib/statemachine/qstatemachine.cpp | 2 +- src/corelib/tools/qdatetime.cpp | 2 +- src/corelib/tools/qelapsedtimer.cpp | 2 +- src/sql/kernel/qsqlrecord.cpp | 5 +++-- src/widgets/widgets/qmenubar.cpp | 4 ++++ 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp index cba85d2854..52fd806b05 100644 --- a/src/corelib/statemachine/qstatemachine.cpp +++ b/src/corelib/statemachine/qstatemachine.cpp @@ -2346,7 +2346,7 @@ QStateMachine::SignalEvent::~SignalEvent() /*! \class QStateMachine::WrappedEvent - \brief The WrappedEvent class holds a clone of an event associated with a QObject. + \brief The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject. \since 4.6 \ingroup statemachine diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 25851bfe7f..f34176ca55 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -398,7 +398,7 @@ int QDate::day() const } /*! - Returns the weekday (1 to 7) for this date. + Returns the weekday (1 = Monday to 7 = Sunday) for this date. Returns 0 if the date is invalid. diff --git a/src/corelib/tools/qelapsedtimer.cpp b/src/corelib/tools/qelapsedtimer.cpp index 7013e4fd2a..e8f2ce174e 100644 --- a/src/corelib/tools/qelapsedtimer.cpp +++ b/src/corelib/tools/qelapsedtimer.cpp @@ -230,7 +230,7 @@ void QElapsedTimer::invalidate() } /*! - Returns true if this object was invalidated by a call to invalidate() and + Returns false if this object was invalidated by a call to invalidate() and has not been restarted since. \sa invalidate(), start(), restart() diff --git a/src/sql/kernel/qsqlrecord.cpp b/src/sql/kernel/qsqlrecord.cpp index 6be75398f1..93ef58914b 100644 --- a/src/sql/kernel/qsqlrecord.cpp +++ b/src/sql/kernel/qsqlrecord.cpp @@ -243,8 +243,9 @@ int QSqlRecord::indexOf(const QString& name) const } /*! - Returns the field at position \a index. If the position is out of - range, an empty field is returned. + Returns the field at position \a index. If the \a index + is out of range, function returns + a \l{default-constructed value}. */ QSqlField QSqlRecord::field(int index) const { diff --git a/src/widgets/widgets/qmenubar.cpp b/src/widgets/widgets/qmenubar.cpp index 543ed0df9e..f1269fde0f 100644 --- a/src/widgets/widgets/qmenubar.cpp +++ b/src/widgets/widgets/qmenubar.cpp @@ -1785,6 +1785,8 @@ QWidget *QMenuBar::cornerWidget(Qt::Corner corner) const The default is to follow whether the Qt::AA_DontUseNativeMenuBar attribute is set for the application. Explicitly settings this property overrides the presence (or abscence) of the attribute. + + \sa void-qt-mac-set-native-menubar-bool-enable */ void QMenuBar::setNativeMenuBar(bool nativeMenuBar) @@ -1882,6 +1884,8 @@ QAction *QMenuBar::defaultAction() const is triggered as a result of a mouse click; \a action is the action that caused the signal to be emitted. + \note QMenuBar has to have ownership of the QMenu in order this signal to work. + Normally, you connect each menu action to a single slot using QAction::triggered(), but sometimes you will want to connect several items to a single slot (most often if the user selects -- cgit v1.2.3