Remove Symbian specific code from QtGui.
Change-Id: I450a78863462936d0b18e211763f274b59497109 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
parent
8839a0a001
commit
d1a2b53aaf
@ -23,8 +23,4 @@ contains(QT_CONFIG, egl): {
|
||||
}
|
||||
|
||||
SOURCES += egl/qegl_qpa.cpp
|
||||
} else:symbian: {
|
||||
DEFINES += QT_NO_EGL
|
||||
SOURCES += egl/qegl_stub.cpp
|
||||
SOURCES += egl/qeglproperties_stub.cpp
|
||||
}
|
||||
|
@ -113,9 +113,6 @@ QT_BEGIN_NAMESPACE
|
||||
#define EGLAPIENTRY
|
||||
#endif
|
||||
|
||||
// Try to get some info to debug the symbian build failues:
|
||||
|
||||
|
||||
// Declare/define the bits of EGL_KHR_image_base we need:
|
||||
#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
|
||||
typedef void *EGLImageKHR;
|
||||
|
@ -1,298 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/
|
||||
**
|
||||
** This file is part of the QtGui module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui/qpaintdevice.h>
|
||||
#include <QtGui/qpixmap.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#include "qegl_p.h"
|
||||
#include "qeglcontext_p.h"
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
static void noegl(const char *fn)
|
||||
{
|
||||
qWarning() << fn << " called, but Qt configured without EGL" << endl;
|
||||
}
|
||||
|
||||
#define NOEGL noegl(__FUNCTION__);
|
||||
|
||||
QEglContext::QEglContext()
|
||||
: apiType(QEgl::OpenGL)
|
||||
, ctx(0)
|
||||
, cfg(QEGL_NO_CONFIG)
|
||||
, currentSurface(0)
|
||||
, current(false)
|
||||
, ownsContext(true)
|
||||
, sharing(false)
|
||||
{
|
||||
NOEGL
|
||||
}
|
||||
|
||||
QEglContext::~QEglContext()
|
||||
{
|
||||
NOEGL
|
||||
}
|
||||
|
||||
bool QEglContext::isValid() const
|
||||
{
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QEglContext::isCurrent() const
|
||||
{
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
EGLConfig QEgl::defaultConfig(int devType, API api, ConfigOptions options)
|
||||
{
|
||||
Q_UNUSED(devType)
|
||||
Q_UNUSED(api)
|
||||
Q_UNUSED(options)
|
||||
NOEGL
|
||||
return QEGL_NO_CONFIG;
|
||||
}
|
||||
|
||||
|
||||
// Choose a configuration that matches "properties".
|
||||
EGLConfig QEgl::chooseConfig(const QEglProperties* properties, QEgl::PixelFormatMatch match)
|
||||
{
|
||||
Q_UNUSED(properties)
|
||||
Q_UNUSED(match)
|
||||
NOEGL
|
||||
return QEGL_NO_CONFIG;
|
||||
}
|
||||
|
||||
bool QEglContext::chooseConfig(const QEglProperties& properties, QEgl::PixelFormatMatch match)
|
||||
{
|
||||
Q_UNUSED(properties)
|
||||
Q_UNUSED(match)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
EGLSurface QEglContext::createSurface(QPaintDevice* device, const QEglProperties *properties)
|
||||
{
|
||||
Q_UNUSED(device)
|
||||
Q_UNUSED(properties)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// Create the EGLContext.
|
||||
bool QEglContext::createContext(QEglContext *shareContext, const QEglProperties *properties)
|
||||
{
|
||||
Q_UNUSED(shareContext)
|
||||
Q_UNUSED(properties)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
// Destroy an EGL surface object. If it was current on this context
|
||||
// then call doneCurrent() for it first.
|
||||
void QEglContext::destroySurface(EGLSurface surface)
|
||||
{
|
||||
Q_UNUSED(surface)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
// Destroy the context. Note: this does not destroy the surface.
|
||||
void QEglContext::destroyContext()
|
||||
{
|
||||
NOEGL
|
||||
}
|
||||
|
||||
bool QEglContext::makeCurrent(EGLSurface surface)
|
||||
{
|
||||
Q_UNUSED(surface)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QEglContext::doneCurrent()
|
||||
{
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
// Act as though doneCurrent() was called, but keep the context
|
||||
// and the surface active for the moment. This allows makeCurrent()
|
||||
// to skip a call to eglMakeCurrent() if we are using the same
|
||||
// surface as the last set of painting operations. We leave the
|
||||
// currentContext() pointer as-is for now.
|
||||
bool QEglContext::lazyDoneCurrent()
|
||||
{
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QEglContext::swapBuffers(EGLSurface surface)
|
||||
{
|
||||
Q_UNUSED(surface)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QEglContext::swapBuffersRegion2NOK(EGLSurface surface, const QRegion *region)
|
||||
{
|
||||
Q_UNUSED(surface)
|
||||
Q_UNUSED(region)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
int QEglContext::configAttrib(int name) const
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLDisplay QEgl::display()
|
||||
{
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLImageKHR QEgl::eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
|
||||
{
|
||||
Q_UNUSED(dpy)
|
||||
Q_UNUSED(ctx)
|
||||
Q_UNUSED(target)
|
||||
Q_UNUSED(buffer)
|
||||
Q_UNUSED(attrib_list)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLBoolean QEgl::eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
|
||||
{
|
||||
Q_UNUSED(dpy)
|
||||
Q_UNUSED(img)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLBoolean QEgl::eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects)
|
||||
{
|
||||
Q_UNUSED(dpy);
|
||||
Q_UNUSED(surface);
|
||||
Q_UNUSED(count);
|
||||
Q_UNUSED(rects);
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *properties)
|
||||
{
|
||||
Q_UNUSED(device)
|
||||
Q_UNUSED(cfg)
|
||||
Q_UNUSED(properties)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// Return the error string associated with a specific code.
|
||||
QString QEgl::errorString(EGLint code)
|
||||
{
|
||||
Q_UNUSED(code)
|
||||
NOEGL
|
||||
return QString();
|
||||
}
|
||||
|
||||
// Dump all of the EGL configurations supported by the system.
|
||||
void QEgl::dumpAllConfigs()
|
||||
{
|
||||
NOEGL
|
||||
}
|
||||
|
||||
QString QEgl::extensions()
|
||||
{
|
||||
NOEGL
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool QEgl::hasExtension(const char* extensionName)
|
||||
{
|
||||
Q_UNUSED(extensionName)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
QEglContext *QEglContext::currentContext(QEgl::API api)
|
||||
{
|
||||
Q_UNUSED(api)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
void QEglContext::setCurrentContext(QEgl::API api, QEglContext *context)
|
||||
{
|
||||
Q_UNUSED(api)
|
||||
Q_UNUSED(context)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
EGLNativeDisplayType QEgl::nativeDisplay()
|
||||
{
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
EGLNativeWindowType QEgl::nativeWindow(QWidget* widget)
|
||||
{
|
||||
Q_UNUSED(widget)
|
||||
NOEGL
|
||||
return (EGLNativeWindowType)0;
|
||||
}
|
||||
|
||||
EGLNativePixmapType QEgl::nativePixmap(QPixmap*)
|
||||
{
|
||||
NOEGL
|
||||
return (EGLNativePixmapType)0;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
@ -1,141 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/
|
||||
**
|
||||
** This file is part of the QtGui module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qstringlist.h>
|
||||
|
||||
#include "qeglproperties_p.h"
|
||||
#include "qeglcontext_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
static void noegl(const char *fn)
|
||||
{
|
||||
qWarning() << fn << " called, but Qt configured without EGL" << endl;
|
||||
}
|
||||
|
||||
#define NOEGL noegl(__FUNCTION__);
|
||||
|
||||
// Initialize a property block.
|
||||
QEglProperties::QEglProperties()
|
||||
{
|
||||
NOEGL
|
||||
}
|
||||
|
||||
QEglProperties::QEglProperties(EGLConfig cfg)
|
||||
{
|
||||
Q_UNUSED(cfg)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
// Fetch the current value associated with a property.
|
||||
int QEglProperties::value(int name) const
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
NOEGL
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Set the value associated with a property, replacing an existing
|
||||
// value if there is one.
|
||||
void QEglProperties::setValue(int name, int value)
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
Q_UNUSED(value)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
// Remove a property value. Returns false if the property is not present.
|
||||
bool QEglProperties::removeValue(int name)
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
void QEglProperties::setDeviceType(int devType)
|
||||
{
|
||||
Q_UNUSED(devType)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
|
||||
// Sets the red, green, blue, and alpha sizes based on a pixel format.
|
||||
// Normally used to match a configuration request to the screen format.
|
||||
void QEglProperties::setPixelFormat(QImage::Format pixelFormat)
|
||||
{
|
||||
Q_UNUSED(pixelFormat)
|
||||
NOEGL
|
||||
|
||||
}
|
||||
|
||||
void QEglProperties::setRenderableType(QEgl::API api)
|
||||
{
|
||||
Q_UNUSED(api);
|
||||
NOEGL
|
||||
}
|
||||
|
||||
// Reduce the complexity of a configuration request to ask for less
|
||||
// because the previous request did not result in success. Returns
|
||||
// true if the complexity was reduced, or false if no further
|
||||
// reductions in complexity are possible.
|
||||
bool QEglProperties::reduceConfiguration()
|
||||
{
|
||||
NOEGL
|
||||
return false;
|
||||
}
|
||||
|
||||
// Convert a property list to a string suitable for debug output.
|
||||
QString QEglProperties::toString() const
|
||||
{
|
||||
NOEGL
|
||||
return QString();
|
||||
}
|
||||
|
||||
void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev)
|
||||
{
|
||||
Q_UNUSED(dev)
|
||||
NOEGL
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -95,7 +95,6 @@ public:
|
||||
KB_KDE = 8,
|
||||
KB_Gnome = 16,
|
||||
KB_CDE = 32,
|
||||
KB_S60 = 64,
|
||||
KB_All = 0xffff
|
||||
};
|
||||
|
||||
|
@ -224,72 +224,72 @@ void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic(bool b) { qt_sequence_no_mnemoni
|
||||
corresponds to the \key Control keys.
|
||||
|
||||
\table
|
||||
\header \i StandardKey \i Windows \i Mac OS X \i KDE \i GNOME \i S60
|
||||
\row \i HelpContents \i F1 \i Ctrl+? \i F1 \i F1 \i F2
|
||||
\row \i WhatsThis \i Shift+F1 \i Shift+F1 \i Shift+F1 \i Shift+F1 \i Shift+F1
|
||||
\row \i Open \i Ctrl+O \i Ctrl+O \i Ctrl+O \i Ctrl+O \i (none)
|
||||
\row \i Close \i Ctrl+F4, Ctrl+W \i Ctrl+W, Ctrl+F4 \i Ctrl+W \i Ctrl+W \i (none)
|
||||
\row \i Save \i Ctrl+S \i Ctrl+S \i Ctrl+S \i Ctrl+S \i (none)
|
||||
\row \i Quit \i \i Ctrl+Q \i Qtrl+Q \i Qtrl+Q \i (none)
|
||||
\row \i SaveAs \i \i Ctrl+Shift+S \i \i Ctrl+Shift+S \i (none)
|
||||
\row \i New \i Ctrl+N \i Ctrl+N \i Ctrl+N \i Ctrl+N \i (none)
|
||||
\row \i Delete \i Del \i Del, Meta+D \i Del, Ctrl+D \i Del, Ctrl+D \i Del
|
||||
\row \i Cut \i Ctrl+X, Shift+Del \i Ctrl+X \i Ctrl+X, F20, Shift+Del \i Ctrl+X, F20, Shift+Del \i Ctrl+X
|
||||
\row \i Copy \i Ctrl+C, Ctrl+Ins \i Ctrl+C \i Ctrl+C, F16, Ctrl+Ins \i Ctrl+C, F16, Ctrl+Ins \i Ctrl+C
|
||||
\row \i Paste \i Ctrl+V, Shift+Ins \i Ctrl+V \i Ctrl+V, F18, Shift+Ins \i Ctrl+V, F18, Shift+Ins \i Ctrl+V
|
||||
\row \i Preferences \i \i Ctrl+, \i \i \i (none)
|
||||
\row \i Undo \i Ctrl+Z, Alt+Backspace \i Ctrl+Z \i Ctrl+Z, F14 \i Ctrl+Z, F14 \i Ctrl+Z
|
||||
\row \i Redo \i Ctrl+Y, Shift+Ctrl+Z, Alt+Shift+Backspace \i Ctrl+Shift+Z \i Ctrl+Shift+Z \i Ctrl+Shift+Z \i (none)
|
||||
\row \i Back \i Alt+Left, Backspace \i Ctrl+[ \i Alt+Left \i Alt+Left \i (none)
|
||||
\row \i Forward \i Alt+Right, Shift+Backspace \i Ctrl+] \i Alt+Right \i Alt+Right \i (none)
|
||||
\row \i Refresh \i F5 \i F5 \i F5 \i Ctrl+R, F5 \i (none)
|
||||
\row \i ZoomIn \i Ctrl+Plus \i Ctrl+Plus \i Ctrl+Plus \i Ctrl+Plus \i (none)
|
||||
\row \i ZoomOut \i Ctrl+Minus \i Ctrl+Minus \i Ctrl+Minus \i Ctrl+Minus \i (none)
|
||||
\row \i Print \i Ctrl+P \i Ctrl+P \i Ctrl+P \i Ctrl+P \i (none)
|
||||
\row \i AddTab \i Ctrl+T \i Ctrl+T \i Ctrl+Shift+N, Ctrl+T \i Ctrl+T \i (none)
|
||||
\row \i NextChild \i Ctrl+Tab, Forward, Ctrl+F6 \i Ctrl+}, Forward, Ctrl+Tab \i Ctrl+Tab, Forward, Ctrl+Comma \i Ctrl+Tab, Forward \i (none)
|
||||
\row \i PreviousChild \i Ctrl+Shift+Tab, Back, Ctrl+Shift+F6 \i Ctrl+{, Back, Ctrl+Shift+Tab \i Ctrl+Shift+Tab, Back, Ctrl+Period \i Ctrl+Shift+Tab, Back \i (none)
|
||||
\row \i Find \i Ctrl+F \i Ctrl+F \i Ctrl+F \i Ctrl+F \i (none)
|
||||
\row \i FindNext \i F3, Ctrl+G \i Ctrl+G \i F3 \i Ctrl+G, F3 \i (none)
|
||||
\row \i FindPrevious \i Shift+F3, Ctrl+Shift+G \i Ctrl+Shift+G \i Shift+F3 \i Ctrl+Shift+G, Shift+F3 \i (none)
|
||||
\row \i Replace \i Ctrl+H \i (none) \i Ctrl+R \i Ctrl+H \i (none)
|
||||
\row \i SelectAll \i Ctrl+A \i Ctrl+A \i Ctrl+A \i Ctrl+A \i (none)
|
||||
\row \i Bold \i Ctrl+B \i Ctrl+B \i Ctrl+B \i Ctrl+B \i (none)
|
||||
\row \i Italic \i Ctrl+I \i Ctrl+I \i Ctrl+I \i Ctrl+I \i (none)
|
||||
\row \i Underline \i Ctrl+U \i Ctrl+U \i Ctrl+U \i Ctrl+U \i (none)
|
||||
\row \i MoveToNextChar \i Right \i Right \i Right \i Right \i Right
|
||||
\row \i MoveToPreviousChar \i Left \i Left \i Left \i Left \i Left
|
||||
\row \i MoveToNextWord \i Ctrl+Right \i Alt+Right \i Ctrl+Right \i Ctrl+Right \i Ctrl+Right
|
||||
\row \i MoveToPreviousWord \i Ctrl+Left \i Alt+Left \i Ctrl+Left \i Ctrl+Left \i Ctrl+Left
|
||||
\row \i MoveToNextLine \i Down \i Down \i Down \i Down \i Down
|
||||
\row \i MoveToPreviousLine \i Up \i Up \i Up \i Up \i Up
|
||||
\row \i MoveToNextPage \i PgDown \i PgDown, Alt+PgDown, Meta+Down, Meta+PgDown\i PgDown \i PgDown \i PgDown
|
||||
\row \i MoveToPreviousPage \i PgUp \i PgUp, Alt+PgUp, Meta+Up, Meta+PgUp \i PgUp \i PgUp \i PgUp
|
||||
\row \i MoveToStartOfLine \i Home \i Ctrl+Left, Meta+Left \i Home \i Home \i Home
|
||||
\row \i MoveToEndOfLine \i End \i Ctrl+Right, Meta+Right \i End \i End \i End
|
||||
\row \i MoveToStartOfBlock \i (none) \i Alt+Up, Meta+A \i (none) \i (none) \i (none)
|
||||
\row \i MoveToEndOfBlock \i (none) \i Alt+Down, Meta+E \i (none) \i (none) \i (none)
|
||||
\row \i MoveToStartOfDocument\i Ctrl+Home \i Ctrl+Up, Home \i Ctrl+Home \i Ctrl+Home \i Ctrl+Home
|
||||
\row \i MoveToEndOfDocument \i Ctrl+End \i Ctrl+Down, End \i Ctrl+End \i Ctrl+End \i Ctrl+End
|
||||
\row \i SelectNextChar \i Shift+Right \i Shift+Right \i Shift+Right \i Shift+Right \i Shift+Right
|
||||
\row \i SelectPreviousChar \i Shift+Left \i Shift+Left \i Shift+Left \i Shift+Left \i Shift+Left
|
||||
\row \i SelectNextWord \i Ctrl+Shift+Right \i Alt+Shift+Right \i Ctrl+Shift+Right \i Ctrl+Shift+Right \i Ctrl+Shift+Right
|
||||
\row \i SelectPreviousWord \i Ctrl+Shift+Left \i Alt+Shift+Left \i Ctrl+Shift+Left \i Ctrl+Shift+Left \i Ctrl+Shift+Left
|
||||
\row \i SelectNextLine \i Shift+Down \i Shift+Down \i Shift+Down \i Shift+Down \i Shift+Down
|
||||
\row \i SelectPreviousLine \i Shift+Up \i Shift+Up \i Shift+Up \i Shift+Up \i Shift+Up
|
||||
\row \i SelectNextPage \i Shift+PgDown \i Shift+PgDown \i Shift+PgDown \i Shift+PgDown \i Shift+PgDown
|
||||
\row \i SelectPreviousPage \i Shift+PgUp \i Shift+PgUp \i Shift+PgUp \i Shift+PgUp \i Shift+PgUp
|
||||
\row \i SelectStartOfLine \i Shift+Home \i Ctrl+Shift+Left \i Shift+Home \i Shift+Home \i Shift+Home
|
||||
\row \i SelectEndOfLine \i Shift+End \i Ctrl+Shift+Right \i Shift+End \i Shift+End \i Shift+End
|
||||
\row \i SelectStartOfBlock \i (none) \i Alt+Shift+Up, Meta+Shift+A \i (none) \i (none) \i (none)
|
||||
\row \i SelectEndOfBlock \i (none) \i Alt+Shift+Down, Meta+Shift+E \i (none) \i (none) \i (none)
|
||||
\row \i SelectStartOfDocument\i Ctrl+Shift+Home \i Ctrl+Shift+Up, Shift+Home \i Ctrl+Shift+Home\i Ctrl+Shift+Home \i Ctrl+Shift+Home
|
||||
\row \i SelectEndOfDocument \i Ctrl+Shift+End \i Ctrl+Shift+Down, Shift+End \i Ctrl+Shift+End \i Ctrl+Shift+End \i Ctrl+Shift+End
|
||||
\row \i DeleteStartOfWord \i Ctrl+Backspace \i Alt+Backspace \i Ctrl+Backspace \i Ctrl+Backspace \i (none)
|
||||
\row \i DeleteEndOfWord \i Ctrl+Del \i (none) \i Ctrl+Del \i Ctrl+Del \i (none)
|
||||
\row \i DeleteEndOfLine \i (none) \i (none) \i Ctrl+K \i Ctrl+K \i (none)
|
||||
\row \i InsertParagraphSeparator \i Enter \i Enter \i Enter \i Enter \i (none)
|
||||
\row \i InsertLineSeparator \i Shift+Enter \i Meta+Enter \i Shift+Enter \i Shift+Enter \i (none)
|
||||
\header \i StandardKey \i Windows \i Mac OS X \i KDE \i GNOME
|
||||
\row \i HelpContents \i F1 \i Ctrl+? \i F1 \i F1
|
||||
\row \i WhatsThis \i Shift+F1 \i Shift+F1 \i Shift+F1 \i Shift+F1
|
||||
\row \i Open \i Ctrl+O \i Ctrl+O \i Ctrl+O \i Ctrl+O
|
||||
\row \i Close \i Ctrl+F4, Ctrl+W \i Ctrl+W, Ctrl+F4 \i Ctrl+W \i Ctrl+W
|
||||
\row \i Save \i Ctrl+S \i Ctrl+S \i Ctrl+S \i Ctrl+S
|
||||
\row \i Quit \i \i Ctrl+Q \i Qtrl+Q \i Qtrl+Q
|
||||
\row \i SaveAs \i \i Ctrl+Shift+S \i \i Ctrl+Shift+S
|
||||
\row \i New \i Ctrl+N \i Ctrl+N \i Ctrl+N \i Ctrl+N
|
||||
\row \i Delete \i Del \i Del, Meta+D \i Del, Ctrl+D \i Del, Ctrl+D
|
||||
\row \i Cut \i Ctrl+X, Shift+Del \i Ctrl+X \i Ctrl+X, F20, Shift+Del \i Ctrl+X, F20, Shift+Del
|
||||
\row \i Copy \i Ctrl+C, Ctrl+Ins \i Ctrl+C \i Ctrl+C, F16, Ctrl+Ins \i Ctrl+C, F16, Ctrl+Ins
|
||||
\row \i Paste \i Ctrl+V, Shift+Ins \i Ctrl+V \i Ctrl+V, F18, Shift+Ins \i Ctrl+V, F18, Shift+Ins
|
||||
\row \i Preferences \i \i Ctrl+, \i \i
|
||||
\row \i Undo \i Ctrl+Z, Alt+Backspace \i Ctrl+Z \i Ctrl+Z, F14 \i Ctrl+Z, F14
|
||||
\row \i Redo \i Ctrl+Y, Shift+Ctrl+Z, Alt+Shift+Backspace \i Ctrl+Shift+Z \i Ctrl+Shift+Z \i Ctrl+Shift+Z
|
||||
\row \i Back \i Alt+Left, Backspace \i Ctrl+[ \i Alt+Left \i Alt+Left
|
||||
\row \i Forward \i Alt+Right, Shift+Backspace \i Ctrl+] \i Alt+Right \i Alt+Right
|
||||
\row \i Refresh \i F5 \i F5 \i F5 \i Ctrl+R, F5
|
||||
\row \i ZoomIn \i Ctrl+Plus \i Ctrl+Plus \i Ctrl+Plus \i Ctrl+Plus
|
||||
\row \i ZoomOut \i Ctrl+Minus \i Ctrl+Minus \i Ctrl+Minus \i Ctrl+Minus
|
||||
\row \i Print \i Ctrl+P \i Ctrl+P \i Ctrl+P \i Ctrl+P
|
||||
\row \i AddTab \i Ctrl+T \i Ctrl+T \i Ctrl+Shift+N, Ctrl+T \i Ctrl+T
|
||||
\row \i NextChild \i Ctrl+Tab, Forward, Ctrl+F6 \i Ctrl+}, Forward, Ctrl+Tab \i Ctrl+Tab, Forward, Ctrl+Comma \i Ctrl+Tab, Forward
|
||||
\row \i PreviousChild \i Ctrl+Shift+Tab, Back, Ctrl+Shift+F6 \i Ctrl+{, Back, Ctrl+Shift+Tab \i Ctrl+Shift+Tab, Back, Ctrl+Period \i Ctrl+Shift+Tab, Back
|
||||
\row \i Find \i Ctrl+F \i Ctrl+F \i Ctrl+F \i Ctrl+F
|
||||
\row \i FindNext \i F3, Ctrl+G \i Ctrl+G \i F3 \i Ctrl+G, F3
|
||||
\row \i FindPrevious \i Shift+F3, Ctrl+Shift+G \i Ctrl+Shift+G \i Shift+F3 \i Ctrl+Shift+G, Shift+F3
|
||||
\row \i Replace \i Ctrl+H \i (none) \i Ctrl+R \i Ctrl+H
|
||||
\row \i SelectAll \i Ctrl+A \i Ctrl+A \i Ctrl+A \i Ctrl+A
|
||||
\row \i Bold \i Ctrl+B \i Ctrl+B \i Ctrl+B \i Ctrl+B
|
||||
\row \i Italic \i Ctrl+I \i Ctrl+I \i Ctrl+I \i Ctrl+I
|
||||
\row \i Underline \i Ctrl+U \i Ctrl+U \i Ctrl+U \i Ctrl+U
|
||||
\row \i MoveToNextChar \i Right \i Right \i Right \i Right
|
||||
\row \i MoveToPreviousChar \i Left \i Left \i Left \i Left
|
||||
\row \i MoveToNextWord \i Ctrl+Right \i Alt+Right \i Ctrl+Right \i Ctrl+Right
|
||||
\row \i MoveToPreviousWord \i Ctrl+Left \i Alt+Left \i Ctrl+Left \i Ctrl+Left
|
||||
\row \i MoveToNextLine \i Down \i Down \i Down \i Down
|
||||
\row \i MoveToPreviousLine \i Up \i Up \i Up \i Up
|
||||
\row \i MoveToNextPage \i PgDown \i PgDown, Alt+PgDown, Meta+Down, Meta+PgDown\i PgDown \i PgDown
|
||||
\row \i MoveToPreviousPage \i PgUp \i PgUp, Alt+PgUp, Meta+Up, Meta+PgUp \i PgUp \i PgUp
|
||||
\row \i MoveToStartOfLine \i Home \i Ctrl+Left, Meta+Left \i Home \i Home
|
||||
\row \i MoveToEndOfLine \i End \i Ctrl+Right, Meta+Right \i End \i End
|
||||
\row \i MoveToStartOfBlock \i (none) \i Alt+Up, Meta+A \i (none) \i (none)
|
||||
\row \i MoveToEndOfBlock \i (none) \i Alt+Down, Meta+E \i (none) \i (none)
|
||||
\row \i MoveToStartOfDocument\i Ctrl+Home \i Ctrl+Up, Home \i Ctrl+Home \i Ctrl+Home
|
||||
\row \i MoveToEndOfDocument \i Ctrl+End \i Ctrl+Down, End \i Ctrl+End \i Ctrl+End
|
||||
\row \i SelectNextChar \i Shift+Right \i Shift+Right \i Shift+Right \i Shift+Right
|
||||
\row \i SelectPreviousChar \i Shift+Left \i Shift+Left \i Shift+Left \i Shift+Left
|
||||
\row \i SelectNextWord \i Ctrl+Shift+Right \i Alt+Shift+Right \i Ctrl+Shift+Right \i Ctrl+Shift+Right
|
||||
\row \i SelectPreviousWord \i Ctrl+Shift+Left \i Alt+Shift+Left \i Ctrl+Shift+Left \i Ctrl+Shift+Left
|
||||
\row \i SelectNextLine \i Shift+Down \i Shift+Down \i Shift+Down \i Shift+Down
|
||||
\row \i SelectPreviousLine \i Shift+Up \i Shift+Up \i Shift+Up \i Shift+Up
|
||||
\row \i SelectNextPage \i Shift+PgDown \i Shift+PgDown \i Shift+PgDown \i Shift+PgDown
|
||||
\row \i SelectPreviousPage \i Shift+PgUp \i Shift+PgUp \i Shift+PgUp \i Shift+PgUp
|
||||
\row \i SelectStartOfLine \i Shift+Home \i Ctrl+Shift+Left \i Shift+Home \i Shift+Home
|
||||
\row \i SelectEndOfLine \i Shift+End \i Ctrl+Shift+Right \i Shift+End \i Shift+End
|
||||
\row \i SelectStartOfBlock \i (none) \i Alt+Shift+Up, Meta+Shift+A \i (none) \i (none)
|
||||
\row \i SelectEndOfBlock \i (none) \i Alt+Shift+Down, Meta+Shift+E \i (none) \i (none)
|
||||
\row \i SelectStartOfDocument\i Ctrl+Shift+Home \i Ctrl+Shift+Up, Shift+Home \i Ctrl+Shift+Home\i Ctrl+Shift+Home
|
||||
\row \i SelectEndOfDocument \i Ctrl+Shift+End \i Ctrl+Shift+Down, Shift+End \i Ctrl+Shift+End \i Ctrl+Shift+End
|
||||
\row \i DeleteStartOfWord \i Ctrl+Backspace \i Alt+Backspace \i Ctrl+Backspace \i Ctrl+Backspace
|
||||
\row \i DeleteEndOfWord \i Ctrl+Del \i (none) \i Ctrl+Del \i Ctrl+Del
|
||||
\row \i DeleteEndOfLine \i (none) \i (none) \i Ctrl+K \i Ctrl+K
|
||||
\row \i InsertParagraphSeparator \i Enter \i Enter \i Enter \i Enter
|
||||
\row \i InsertLineSeparator \i Shift+Enter \i Meta+Enter \i Shift+Enter \i Shift+Enter
|
||||
\endtable
|
||||
|
||||
Note that, since the key sequences used for the standard shortcuts differ
|
||||
@ -646,9 +646,9 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::InsertParagraphSeparator,0, Qt::Key_Return, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::InsertParagraphSeparator,0, Qt::Key_Enter, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::Delete, 1, Qt::Key_Delete, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::MoveToStartOfLine, 0, Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToStartOfLine, 0, Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::MoveToStartOfDocument, 0, Qt::Key_Home, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::MoveToEndOfLine, 0, Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToEndOfLine, 0, Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::MoveToEndOfDocument, 0, Qt::Key_End, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::MoveToPreviousChar, 0, Qt::Key_Left, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::MoveToPreviousLine, 0, Qt::Key_Up, QGuiApplicationPrivate::KB_All},
|
||||
@ -657,7 +657,6 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::MoveToPreviousPage, 1, Qt::Key_PageUp, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::MoveToNextPage, 1, Qt::Key_PageDown, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::HelpContents, 0, Qt::Key_F1, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::HelpContents, 0, Qt::Key_F2, QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::FindNext, 0, Qt::Key_F3, QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::FindNext, 1, Qt::Key_F3, QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::Refresh, 0, Qt::Key_F5, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
@ -668,14 +667,13 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::PreviousChild, 0, Qt::Key_Back, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::NextChild, 0, Qt::Key_Forward, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::Forward, 0, Qt::SHIFT | Qt::Key_Backspace, QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::Delete, 0, Qt::SHIFT | Qt::Key_Backspace, QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::InsertLineSeparator, 0, Qt::SHIFT | Qt::Key_Return, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::InsertLineSeparator, 0, Qt::SHIFT | Qt::Key_Enter, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::Paste, 0, Qt::SHIFT | Qt::Key_Insert, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::Cut, 0, Qt::SHIFT | Qt::Key_Delete, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11}, //## Check if this should work on mac
|
||||
{QKeySequence::SelectStartOfLine, 0, Qt::SHIFT | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectStartOfLine, 0, Qt::SHIFT | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectStartOfDocument, 0, Qt::SHIFT | Qt::Key_Home, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::SelectEndOfLine, 0, Qt::SHIFT | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectEndOfLine, 0, Qt::SHIFT | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectEndOfDocument, 0, Qt::SHIFT | Qt::Key_End, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::SelectPreviousChar, 0, Qt::SHIFT | Qt::Key_Left, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::SelectPreviousLine, 0, Qt::SHIFT | Qt::Key_Up, QGuiApplicationPrivate::KB_All},
|
||||
@ -716,7 +714,7 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::Close, 0, Qt::CTRL | Qt::Key_W, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::Close, 1, Qt::CTRL | Qt::Key_W, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::Cut, 1, Qt::CTRL | Qt::Key_X, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::Redo, 1, Qt::CTRL | Qt::Key_Y, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::Redo, 1, Qt::CTRL | Qt::Key_Y, QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::Undo, 1, Qt::CTRL | Qt::Key_Z, QGuiApplicationPrivate::KB_All},
|
||||
{QKeySequence::Back, 1, Qt::CTRL | Qt::Key_BracketLeft, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::Forward, 1, Qt::CTRL | Qt::Key_BracketRight, QGuiApplicationPrivate::KB_Mac},
|
||||
@ -727,15 +725,15 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::DeleteStartOfWord, 0, Qt::CTRL | Qt::Key_Backspace, QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::Copy, 0, Qt::CTRL | Qt::Key_Insert, QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::DeleteEndOfWord, 0, Qt::CTRL | Qt::Key_Delete, QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::MoveToStartOfDocument, 0, Qt::CTRL | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToEndOfDocument, 0, Qt::CTRL | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToStartOfDocument, 0, Qt::CTRL | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::MoveToEndOfDocument, 0, Qt::CTRL | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::Back, 0, Qt::CTRL | Qt::Key_Left, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::MoveToPreviousWord, 0, Qt::CTRL | Qt::Key_Left, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToPreviousWord, 0, Qt::CTRL | Qt::Key_Left, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::MoveToStartOfLine, 0, Qt::CTRL | Qt::Key_Left, QGuiApplicationPrivate::KB_Mac },
|
||||
{QKeySequence::MoveToStartOfDocument, 1, Qt::CTRL | Qt::Key_Up, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::Forward, 0, Qt::CTRL | Qt::Key_Right, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::MoveToEndOfLine, 0, Qt::CTRL | Qt::Key_Right, QGuiApplicationPrivate::KB_Mac },
|
||||
{QKeySequence::MoveToNextWord, 0, Qt::CTRL | Qt::Key_Right, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::MoveToNextWord, 0, Qt::CTRL | Qt::Key_Right, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::MoveToEndOfDocument, 1, Qt::CTRL | Qt::Key_Down, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::Close, 1, Qt::CTRL | Qt::Key_F4, QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::Close, 0, Qt::CTRL | Qt::Key_F4, QGuiApplicationPrivate::KB_Mac},
|
||||
@ -744,17 +742,17 @@ const QKeyBinding QKeySequencePrivate::keyBindings[] = {
|
||||
{QKeySequence::FindPrevious, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_G, QGuiApplicationPrivate::KB_Win},
|
||||
{QKeySequence::AddTab, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_N, QGuiApplicationPrivate::KB_KDE},
|
||||
{QKeySequence::SaveAs, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_S, QGuiApplicationPrivate::KB_Gnome | QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::Redo, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Z, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::Redo, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Z, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::Redo, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Z, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::PreviousChild, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_Backtab, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::PreviousChild, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Backtab, QGuiApplicationPrivate::KB_Mac },//different priority from above
|
||||
{QKeySequence::Paste, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Insert, QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectStartOfDocument, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectEndOfDocument, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectPreviousWord, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Left, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectStartOfDocument, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Home, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectEndOfDocument, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_End, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectPreviousWord, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Left, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectStartOfLine, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_Left, QGuiApplicationPrivate::KB_Mac },
|
||||
{QKeySequence::SelectStartOfDocument, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_Up, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::SelectNextWord, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Right, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11 | QGuiApplicationPrivate::KB_S60},
|
||||
{QKeySequence::SelectNextWord, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Right, QGuiApplicationPrivate::KB_Win | QGuiApplicationPrivate::KB_X11},
|
||||
{QKeySequence::SelectEndOfLine, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_Right, QGuiApplicationPrivate::KB_Mac },
|
||||
{QKeySequence::SelectEndOfDocument, 1, Qt::CTRL | Qt::SHIFT | Qt::Key_Down, QGuiApplicationPrivate::KB_Mac},
|
||||
{QKeySequence::PreviousChild, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_F6, QGuiApplicationPrivate::KB_Win},
|
||||
|
@ -103,19 +103,6 @@ if(mmx|3dnow|sse|sse2|iwmmxt) {
|
||||
IWMMXT_SOURCES += painting/qdrawhelper_iwmmxt.cpp
|
||||
}
|
||||
|
||||
symbian {
|
||||
HEADERS += painting/qdrawhelper_arm_simd_p.h
|
||||
armccIfdefBlock = \
|
||||
"$${LITERAL_HASH}if defined(ARMV6)" \
|
||||
"MACRO QT_HAVE_ARM_SIMD" \
|
||||
"SOURCEPATH painting" \
|
||||
"SOURCE qdrawhelper_arm_simd.cpp" \
|
||||
"$${LITERAL_HASH}endif"
|
||||
|
||||
MMP_RULES += armccIfdefBlock
|
||||
QMAKE_CXXFLAGS.ARMCC *= -O3
|
||||
}
|
||||
|
||||
NEON_SOURCES += painting/qdrawhelper_neon.cpp
|
||||
NEON_HEADERS += painting/qdrawhelper_neon_p.h
|
||||
NEON_ASM += ../3rdparty/pixman/pixman-arm-neon-asm.S painting/qdrawhelper_neon_asm.S
|
||||
|
@ -1,115 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/
|
||||
**
|
||||
** This file is part of the QtGui module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "qdrawhelper_arm_simd_p.h"
|
||||
|
||||
#include <private/qpaintengine_raster_p.h>
|
||||
#include <private/qblendfunctions_p.h>
|
||||
|
||||
#ifdef QT_HAVE_ARM_SIMD
|
||||
|
||||
|
||||
|
||||
// TODO: add GNU assembler instructions and support for other platforms.
|
||||
// Default to C code for now
|
||||
|
||||
void qt_blend_argb32_on_argb32_arm_simd(uchar *destPixels, int dbpl,
|
||||
const uchar *srcPixels, int sbpl,
|
||||
int w, int h,
|
||||
int const_alpha)
|
||||
{
|
||||
const uint *src = (const uint *) srcPixels;
|
||||
uint *dst = (uint *) destPixels;
|
||||
if (const_alpha == 256) {
|
||||
for (int y=0; y<h; ++y) {
|
||||
for (int x=0; x<w; ++x) {
|
||||
uint s = src[x];
|
||||
if (s >= 0xff000000)
|
||||
dst[x] = s;
|
||||
else if (s != 0)
|
||||
dst[x] = s + BYTE_MUL(dst[x], qAlpha(~s));
|
||||
}
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
src = (const quint32 *)(((const uchar *) src) + sbpl);
|
||||
}
|
||||
} else if (const_alpha != 0) {
|
||||
const_alpha = (const_alpha * 255) >> 8;
|
||||
for (int y=0; y<h; ++y) {
|
||||
for (int x=0; x<w; ++x) {
|
||||
uint s = BYTE_MUL(src[x], const_alpha);
|
||||
dst[x] = s + BYTE_MUL(dst[x], qAlpha(~s));
|
||||
}
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
src = (const quint32 *)(((const uchar *) src) + sbpl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void qt_blend_rgb32_on_rgb32_arm_simd(uchar *destPixels, int dbpl,
|
||||
const uchar *srcPixels, int sbpl,
|
||||
int w, int h,
|
||||
int const_alpha)
|
||||
{
|
||||
if (const_alpha != 256) {
|
||||
qt_blend_argb32_on_argb32_arm_simd(destPixels, dbpl, srcPixels, sbpl, w, h, const_alpha);
|
||||
return;
|
||||
}
|
||||
|
||||
const uint *src = (const uint *) srcPixels;
|
||||
uint *dst = (uint *) destPixels;
|
||||
if (w <= 64) {
|
||||
for (int y=0; y<h; ++y) {
|
||||
qt_memconvert(dst, src, w);
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
src = (const quint32 *)(((const uchar *) src) + sbpl);
|
||||
}
|
||||
} else {
|
||||
int len = w * 4;
|
||||
for (int y=0; y<h; ++y) {
|
||||
memcpy(dst, src, len);
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
src = (const quint32 *)(((const uchar *) src) + sbpl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // QT_HAVE_ARMV_SIMD
|
@ -1,76 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/
|
||||
**
|
||||
** This file is part of the QtGui module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QDRAWHELPER_ARM_SIMD_P_H
|
||||
#define QDRAWHELPER_ARM_SIMD_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <private/qdrawhelper_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#if defined(QT_HAVE_ARM_SIMD)
|
||||
|
||||
void qt_blend_argb32_on_argb32_arm_simd(uchar *destPixels, int dbpl,
|
||||
const uchar *srcPixels, int sbpl,
|
||||
int w, int h,
|
||||
int const_alpha);
|
||||
|
||||
void qt_blend_rgb32_on_rgb32_arm_simd(uchar *destPixels, int dbpl,
|
||||
const uchar *srcPixels, int sbpl,
|
||||
int w, int h,
|
||||
int const_alpha);
|
||||
|
||||
#endif // QT_HAVE_ARM_SIMD
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QDRAWHELPER_ARM_SIMD_P_H
|
@ -161,7 +161,6 @@ private:
|
||||
friend class QFontDialogPrivate;
|
||||
friend class QFontEngineMultiXLFD;
|
||||
friend class QFontEngineMultiQWS;
|
||||
friend class QFontEngineMultiS60;
|
||||
friend class QFontEngineMultiQPA;
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
friend class ::tst_QFont;
|
||||
|
@ -105,9 +105,6 @@ public:
|
||||
QPF2,
|
||||
Proxy,
|
||||
|
||||
// S60 types
|
||||
S60FontEngine, // Cannot be simply called "S60". Reason is qt_s60Data.h
|
||||
|
||||
DirectWrite,
|
||||
|
||||
TestFontEngine = 0x1000
|
||||
|
Loading…
Reference in New Issue
Block a user