Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable
This commit is contained in:
commit
dccacf13db
@ -27,9 +27,9 @@ defineReplace(cmakeModuleList) {
|
|||||||
|
|
||||||
defineReplace(cmakeTargetPath) {
|
defineReplace(cmakeTargetPath) {
|
||||||
SYSR = $$[QT_SYSROOT]
|
SYSR = $$[QT_SYSROOT]
|
||||||
!isEmpty(SYSR): path = $$relative_path($$1, $$[QT_SYSROOT])
|
!isEmpty(SYSR): path = /$$relative_path($$1, $$[QT_SYSROOT])
|
||||||
else: path = $$1
|
else: path = $$1
|
||||||
return($$clean_path(/$$path))
|
return($$clean_path($$path))
|
||||||
}
|
}
|
||||||
|
|
||||||
defineReplace(cmakeTargetPaths) {
|
defineReplace(cmakeTargetPaths) {
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
CMAKE_VERSION = $$system(cmake --version 2>NUL)
|
CMAKE_VERSION = $$system(cmake --version 2>NUL, lines)
|
||||||
} else {
|
} else {
|
||||||
CMAKE_VERSION = $$system(cmake --version 2>/dev/null)
|
CMAKE_VERSION = $$system(cmake --version 2>/dev/null, lines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CMAKE_VERSION = $$member(CMAKE_VERSION, 0, 0)
|
||||||
|
|
||||||
check.commands =
|
check.commands =
|
||||||
QMAKE_EXTRA_TARGETS *= check
|
QMAKE_EXTRA_TARGETS *= check
|
||||||
|
@ -858,10 +858,8 @@ public class QtActivityDelegate
|
|||||||
|
|
||||||
public void onContextMenuClosed(Menu menu)
|
public void onContextMenuClosed(Menu menu)
|
||||||
{
|
{
|
||||||
if (!m_contextMenuVisible) {
|
if (!m_contextMenuVisible)
|
||||||
Log.e(QtNative.QtTAG, "invalid onContextMenuClosed call");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
m_contextMenuVisible = false;
|
m_contextMenuVisible = false;
|
||||||
QtNative.onContextMenuClosed(menu);
|
QtNative.onContextMenuClosed(menu);
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,6 @@ QFontEngine *loadSingleEngine(int script,
|
|||||||
if (!engine) {
|
if (!engine) {
|
||||||
engine = pfdb->fontEngine(def, QChar::Script(script), size->handle);
|
engine = pfdb->fontEngine(def, QChar::Script(script), size->handle);
|
||||||
if (engine) {
|
if (engine) {
|
||||||
engine->smoothScalable = style->smoothScalable;
|
|
||||||
QFontCache::Key key(def,script);
|
QFontCache::Key key(def,script);
|
||||||
QFontCache::instance()->instance()->insertEngine(key,engine);
|
QFontCache::instance()->instance()->insertEngine(key,engine);
|
||||||
}
|
}
|
||||||
|
@ -208,8 +208,7 @@ Q_AUTOTEST_EXPORT QList<QFontEngine *> QFontEngine_stopCollectingEngines()
|
|||||||
QFontEngine::QFontEngine()
|
QFontEngine::QFontEngine()
|
||||||
: ref(0),
|
: ref(0),
|
||||||
font_(0), font_destroy_func(0),
|
font_(0), font_destroy_func(0),
|
||||||
face_(0), face_destroy_func(0),
|
face_(0), face_destroy_func(0)
|
||||||
smoothScalable(false)
|
|
||||||
{
|
{
|
||||||
cache_cost = 0;
|
cache_cost = 0;
|
||||||
fsType = 0;
|
fsType = 0;
|
||||||
|
@ -302,8 +302,6 @@ public:
|
|||||||
|
|
||||||
inline QVariant userData() const { return m_userData; }
|
inline QVariant userData() const { return m_userData; }
|
||||||
|
|
||||||
bool smoothScalable;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QFixed lastRightBearing(const QGlyphLayout &glyphs, bool round = false);
|
QFixed lastRightBearing(const QGlyphLayout &glyphs, bool round = false);
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
|
|||||||
QCoreWlanEngine *engine;
|
QCoreWlanEngine *engine;
|
||||||
NSLock *locker;
|
NSLock *locker;
|
||||||
}
|
}
|
||||||
- (void)notificationHandler;//:(NSNotification *)notification;
|
- (void)notificationHandler:(NSNotification *)notification;
|
||||||
- (void)remove;
|
- (void)remove;
|
||||||
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
||||||
- (QCoreWlanEngine *)engine;
|
- (QCoreWlanEngine *)engine;
|
||||||
@ -120,8 +120,9 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
|
|||||||
[locker unlock];
|
[locker unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)notificationHandler//:(NSNotification *)notification
|
- (void)notificationHandler:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(notification);
|
||||||
engine->requestUpdate();
|
engine->requestUpdate();
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
QCoreWlanEngine *engine;
|
QCoreWlanEngine *engine;
|
||||||
NSLock *locker;
|
NSLock *locker;
|
||||||
}
|
}
|
||||||
- (void)notificationHandler;//:(NSNotification *)notification;
|
- (void)notificationHandler:(NSNotification *)notification;
|
||||||
- (void)remove;
|
- (void)remove;
|
||||||
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
||||||
- (QCoreWlanEngine *)engine;
|
- (QCoreWlanEngine *)engine;
|
||||||
@ -97,8 +97,9 @@
|
|||||||
[locker unlock];
|
[locker unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)notificationHandler//:(NSNotification *)notification
|
- (void)notificationHandler:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(notification);
|
||||||
engine->requestUpdate();
|
engine->requestUpdate();
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -54,11 +54,13 @@ QT_BEGIN_NAMESPACE
|
|||||||
void *QQnxNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window)
|
void *QQnxNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window)
|
||||||
{
|
{
|
||||||
if (resource == "windowGroup" && window && window->screen()) {
|
if (resource == "windowGroup" && window && window->screen()) {
|
||||||
const QQnxScreen * const screen = static_cast<QQnxScreen *>(window->screen()->handle());
|
QQnxScreen * const screen = static_cast<QQnxScreen *>(window->screen()->handle());
|
||||||
if (screen) {
|
if (screen) {
|
||||||
|
screen_window_t screenWindow = reinterpret_cast<screen_window_t>(window->winId());
|
||||||
|
QQnxWindow *qnxWindow = screen->findWindow(screenWindow);
|
||||||
// We can't just call data() instead of constData() here, since that would detach
|
// We can't just call data() instead of constData() here, since that would detach
|
||||||
// and the lifetime of the char * would not be long enough. Therefore the const_cast.
|
// and the lifetime of the char * would not be long enough. Therefore the const_cast.
|
||||||
return const_cast<char *>(screen->rootWindow()->groupName().constData());
|
return qnxWindow ? const_cast<char *>(qnxWindow->groupName().constData()) : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1414,7 +1414,10 @@ QGraphicsItem::~QGraphicsItem()
|
|||||||
QObjectPrivate *p = QObjectPrivate::get(o);
|
QObjectPrivate *p = QObjectPrivate::get(o);
|
||||||
p->wasDeleted = true;
|
p->wasDeleted = true;
|
||||||
if (p->declarativeData) {
|
if (p->declarativeData) {
|
||||||
|
if (QAbstractDeclarativeData::destroyed)
|
||||||
QAbstractDeclarativeData::destroyed(p->declarativeData, o);
|
QAbstractDeclarativeData::destroyed(p->declarativeData, o);
|
||||||
|
if (QAbstractDeclarativeData::destroyed_qml1)
|
||||||
|
QAbstractDeclarativeData::destroyed_qml1(p->declarativeData, o);
|
||||||
p->declarativeData = 0;
|
p->declarativeData = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1464,7 +1464,10 @@ QWidget::~QWidget()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d->declarativeData) {
|
if (d->declarativeData) {
|
||||||
|
if (QAbstractDeclarativeData::destroyed)
|
||||||
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
||||||
|
if (QAbstractDeclarativeData::destroyed_qml1)
|
||||||
|
QAbstractDeclarativeData::destroyed_qml1(d->declarativeData, this);
|
||||||
d->declarativeData = 0; // don't activate again in ~QObject
|
d->declarativeData = 0; // don't activate again in ~QObject
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user