diff options
author | mread <qt-info@nokia.com> | 2011-01-17 15:12:25 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-02-10 12:26:43 (GMT) |
commit | 30f845abdad6dcff620f93122495aee8aac7452f (patch) | |
tree | 1ecdb4009e90185962e841e59c64ecec2a6915ab /src/gui | |
parent | 2abcd8e2ec986a4862de669f2ddec30877d9a853 (diff) | |
download | Qt-30f845abdad6dcff620f93122495aee8aac7452f.zip Qt-30f845abdad6dcff620f93122495aee8aac7452f.tar.gz Qt-30f845abdad6dcff620f93122495aee8aac7452f.tar.bz2 |
review improvements for QFileOpenEvent changes
removed an unnecessary local QString
Improved some comment wording
Task-number: QTBUG-15015
Reviewed-by: Shane Kearns
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index f6f2694..5027aa2 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -728,12 +728,12 @@ QWheelEvent::QWheelEvent(const QPoint &pos, const QPoint& globalPos, int delta, The \a type parameter must be QEvent::KeyPress, QEvent::KeyRelease, or QEvent::ShortcutOverride. - Int \a key is the code for the Qt::Key that the event loop should listen - for. If \a key is 0, the event is not a result of a known key; for + Int \a key is the code for the Qt::Key that the event loop should listen + for. If \a key is 0, the event is not a result of a known key; for example, it may be the result of a compose sequence or keyboard macro. - The \a modifiers holds the keyboard modifiers, and the given \a text - is the Unicode text that the key generated. If \a autorep is true, - isAutoRepeat() will be true. \a count is the number of keys involved + The \a modifiers holds the keyboard modifiers, and the given \a text + is the Unicode text that the key generated. If \a autorep is true, + isAutoRepeat() will be true. \a count is the number of keys involved in the event. */ QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, @@ -1662,7 +1662,7 @@ Qt::ButtonState QContextMenuEvent::state() const string is controlled by the widget only). The AttributeType enum describes the different attributes that can be set. - A class implementing QWidget::inputMethodEvent() or + A class implementing QWidget::inputMethodEvent() or QGraphicsItem::inputMethodEvent() should at least understand and honor the \l TextFormat and \l Cursor attributes. @@ -3061,9 +3061,8 @@ QFileOpenEvent::QFileOpenEvent(const RFile &fileHandle) { TFileName fullName; fileHandle.FullName(fullName); - QString file = qt_TDesC2QString(fullName); - f = file; - QScopedPointer<QFileOpenEventPrivate> priv(new QFileOpenEventPrivate(QUrl::fromLocalFile(file))); + f = qt_TDesC2QString(fullName); + QScopedPointer<QFileOpenEventPrivate> priv(new QFileOpenEventPrivate(QUrl::fromLocalFile(f))); qt_symbian_throwIfError(priv->file.Duplicate(fileHandle)); d = reinterpret_cast<QEventPrivate *>(priv.take()); } @@ -3104,10 +3103,10 @@ QUrl QFileOpenEvent::url() const Opens a QFile on the file referenced by this event. Returns true if successful; otherwise returns false. - This is necessary as some files cannot be opened with the filename alone, but require specific + This is necessary as some files cannot be opened by name, but require specific information stored in this event. For example, if this QFileOpenEvent contains a request to open a Symbian data caged file, - this function must be used to open a QFile on it. + the QFile could only be opened from the Symbian RFile used in the construction of this event. \since 4.8 */ @@ -3677,7 +3676,7 @@ QMenubarUpdatedEvent::QMenubarUpdatedEvent(QMenuBar * const menuBar) #endif -/*! +/*! \class QTouchEvent \brief The QTouchEvent class contains parameters that describe a touch event. \since 4.6 |