diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-09-17 14:23:50 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-09-23 12:39:28 (GMT) |
commit | a84af9b6574a10383a92908debfc161a764d2d01 (patch) | |
tree | 613de218d19d4747c3346e77e9cac86a1eabaf6e /demos | |
parent | c85d1764d713722f1bb1108087d41ff7904ab3cb (diff) | |
download | Qt-a84af9b6574a10383a92908debfc161a764d2d01.zip Qt-a84af9b6574a10383a92908debfc161a764d2d01.tar.gz Qt-a84af9b6574a10383a92908debfc161a764d2d01.tar.bz2 |
Set translucent background only where it's needed: Symbian.รถ
Diffstat (limited to 'demos')
-rw-r--r-- | demos/mediaplayer/mediaplayer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/mediaplayer/mediaplayer.cpp b/demos/mediaplayer/mediaplayer.cpp index 8ccab77..9504236 100644 --- a/demos/mediaplayer/mediaplayer.cpp +++ b/demos/mediaplayer/mediaplayer.cpp @@ -154,11 +154,13 @@ MediaPlayer::MediaPlayer(const QString &filePath) : { m_videoWindow.setObjectName("videoWindow"); m_videoWidget->setObjectName("videoWidget"); - + +#ifdef Q_OS_SYMBIAN // setWindowTitle triggers creation of the window surface, so we set // transparency here setAttribute(Qt::WA_TranslucentBackground, true); - +#endif + setWindowTitle(tr("Media Player")); setContextMenuPolicy(Qt::CustomContextMenu); m_videoWidget->setContextMenuPolicy(Qt::CustomContextMenu); |