summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-09-24 14:27:05 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-09-24 14:28:17 (GMT)
commitb170ef90fc16f072be8b271a026aa355513e8966 (patch)
tree323ce2857e487498d687d4f2f65e9e3c5884e411 /demos
parente3d5a094caf85956ae50977ecf6176ff41acca78 (diff)
downloadQt-b170ef90fc16f072be8b271a026aa355513e8966.zip
Qt-b170ef90fc16f072be8b271a026aa355513e8966.tar.gz
Qt-b170ef90fc16f072be8b271a026aa355513e8966.tar.bz2
Revert "Modified MediaPlayer to set names on its child QObject instances"
This reverts commit ea6b181df68a18044a06063ab33dc6eb35b2aba1. We revert it because although it's useful for us developers when debugging, it's intended for customers, to demonstrate how to use Qt code. Conflicts: demos/mediaplayer/mediaplayer.cpp
Diffstat (limited to 'demos')
-rw-r--r--demos/mediaplayer/mediaplayer.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/demos/mediaplayer/mediaplayer.cpp b/demos/mediaplayer/mediaplayer.cpp
index 30e3a5b..8dd0609 100644
--- a/demos/mediaplayer/mediaplayer.cpp
+++ b/demos/mediaplayer/mediaplayer.cpp
@@ -152,9 +152,6 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
m_AudioOutput(Phonon::VideoCategory),
m_videoWidget(new MediaVideoWidget(this))
{
- m_videoWindow.setObjectName("videoWindow");
- m_videoWidget->setObjectName("videoWidget");
-
setWindowTitle(tr("Media Player"));
setContextMenuPolicy(Qt::CustomContextMenu);
m_videoWidget->setContextMenuPolicy(Qt::CustomContextMenu);
@@ -162,7 +159,6 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
QSize buttonSize(34, 28);
QPushButton *openButton = new QPushButton(this);
- openButton->setObjectName("openButton");
openButton->setIcon(style()->standardIcon(QStyle::SP_DialogOpenButton));
QPalette bpal;
@@ -173,25 +169,20 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
openButton->setPalette(bpal);
rewindButton = new QPushButton(this);
- rewindButton->setObjectName("rewindButton");
rewindButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipBackward));
forwardButton = new QPushButton(this);
- forwardButton->setObjectName("forwardButton");
forwardButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipForward));
forwardButton->setEnabled(false);
playButton = new QPushButton(this);
- playButton->setObjectName("playButton");
playIcon = style()->standardIcon(QStyle::SP_MediaPlay);
pauseIcon = style()->standardIcon(QStyle::SP_MediaPause);
playButton->setIcon(playIcon);
slider = new Phonon::SeekSlider(this);
- slider->setObjectName("slider");
slider->setMediaObject(&m_MediaObject);
volume = new Phonon::VolumeSlider(&m_AudioOutput);
- volume->setObjectName("volume");
QVBoxLayout *vLayout = new QVBoxLayout(this);
vLayout->setContentsMargins(8, 8, 8, 8);
@@ -199,7 +190,6 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
QHBoxLayout *layout = new QHBoxLayout();
info = new QLabel(this);
- info->setObjectName("info");
info->setMinimumHeight(70);
info->setAcceptDrops(false);
info->setMargin(2);
@@ -237,11 +227,8 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
buttonPanelLayout->addLayout(layout);
timeLabel = new QLabel(this);
- timeLabel->setObjectName("timeLabel");
progressLabel = new QLabel(this);
- progressLabel->setObjectName("progressLabel");
QWidget *sliderPanel = new QWidget(this);
- sliderPanel->setObjectName("sliderPanel");
QHBoxLayout *sliderLayout = new QHBoxLayout();
sliderLayout->addWidget(slider);
sliderLayout->addWidget(timeLabel);
@@ -264,7 +251,6 @@ MediaPlayer::MediaPlayer(const QString &filePath) :
// forwardButton->setStyle(flatButtonStyle);
#endif
QWidget *buttonPanelWidget = new QWidget(this);
- buttonPanelWidget->setObjectName("buttonPanelWidget");
buttonPanelWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
buttonPanelWidget->setLayout(buttonPanelLayout);
vLayout->addWidget(buttonPanelWidget);