diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-31 08:29:08 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-31 08:29:08 (GMT) |
commit | 2c6afc04de97d4ef6bcf7da098f57284f8d928e5 (patch) | |
tree | 27f3086085ac9bcae312b12a6019ee60b59c3ee2 /src/gui | |
parent | cdb689777841e40d6b017f3e57bcce62992c10b6 (diff) | |
parent | 8a58bde27c9e23cd8a5688fdc50b6b74d25411a6 (diff) | |
download | Qt-2c6afc04de97d4ef6bcf7da098f57284f8d928e5.zip Qt-2c6afc04de97d4ef6bcf7da098f57284f8d928e5.tar.gz Qt-2c6afc04de97d4ef6bcf7da098f57284f8d928e5.tar.bz2 |
Merge branch '4.6'
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 3 | ||||
-rw-r--r-- | src/gui/styles/images/defaults60theme.blob | bin | 0 -> 74127 bytes | |||
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 | ||||
-rw-r--r-- | src/gui/styles/qs60style_simulated.cpp | 3 | ||||
-rw-r--r-- | src/gui/styles/qstyle_s60_simulated.qrc | 2 | ||||
-rw-r--r-- | src/gui/styles/styles.pri | 3 |
6 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index 648a5d5..87cf82e 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -351,7 +351,8 @@ void QSymbianControl::HandleLongTapEventL( const TPoint& aPenEventLocation, cons bool res = sendMouseEvent(alienWidget, &mEvent); #if !defined(QT_NO_CONTEXTMENU) - QContextMenuEvent e2(QContextMenuEvent::Mouse, widgetPos, globalPos, mEvent.modifiers()); + QContextMenuEvent contextMenuEvent(QContextMenuEvent::Mouse, widgetPos, globalPos, mEvent.modifiers()); + qt_sendSpontaneousEvent(alienWidget, &contextMenuEvent); #endif m_previousEventLongTap = true; diff --git a/src/gui/styles/images/defaults60theme.blob b/src/gui/styles/images/defaults60theme.blob Binary files differnew file mode 100644 index 0000000..f3a5952 --- /dev/null +++ b/src/gui/styles/images/defaults60theme.blob diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 12d4948..3230c17 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -2732,6 +2732,8 @@ bool QS60Style::event(QEvent *e) default: break; } +#else + Q_UNUSED(e) #endif return false; } diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp index 350ef51..2d185bd 100644 --- a/src/gui/styles/qs60style_simulated.cpp +++ b/src/gui/styles/qs60style_simulated.cpp @@ -366,8 +366,7 @@ QFont QS60StylePrivate::s60Font_specific(QS60StyleEnums::FontCategories fontCate QS60Style::QS60Style() : QCommonStyle(*new QS60StylePrivate) { - // Assume, that the resource system has a ':/s60Stylethemes/Default.blob' - const QString defaultBlob = QString::fromLatin1(":/s60Stylethemes/Default.blob"); + const QString defaultBlob = QString::fromLatin1(":/trolltech/styles/s60style/images/defaults60theme.blob"); if (QFile::exists(defaultBlob)) loadS60ThemeFromBlob(defaultBlob); } diff --git a/src/gui/styles/qstyle_s60_simulated.qrc b/src/gui/styles/qstyle_s60_simulated.qrc index 72aab9e..969732e 100644 --- a/src/gui/styles/qstyle_s60_simulated.qrc +++ b/src/gui/styles/qstyle_s60_simulated.qrc @@ -1,6 +1,6 @@ <!DOCTYPE RCC> <RCC version="1.0"> <qresource prefix="/trolltech/styles/s60style"> - <file>images/s60themes.dat</file> + <file>images/defaults60theme.blob</file> </qresource> </RCC> diff --git a/src/gui/styles/styles.pri b/src/gui/styles/styles.pri index 70ac6cb..767ade0 100644 --- a/src/gui/styles/styles.pri +++ b/src/gui/styles/styles.pri @@ -168,11 +168,10 @@ contains( styles, s60 ):contains(QT_CONFIG, s60) { SOURCES += styles/qs60style.cpp symbian { SOURCES += styles/qs60style_s60.cpp - # TODO: fix the following LIBS hack. Line 1 is for armv5, 2 for winscw - LIBS += aknicon aknskins aknskinsrv fontutils LIBS += -laknicon -laknskins -laknskinsrv -lfontutils } else { SOURCES += styles/qs60style_simulated.cpp + RESOURCES += styles/qstyle_s60_simulated.qrc } } else { DEFINES += QT_NO_STYLE_S60 |