Remove a few more obsolete parts.
Change-Id: I3a001f01ab7fd8cf63452126037b98c1b01df80d Reviewed-on: http://codereview.qt.nokia.com/1797 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
1403a1c7be
commit
eccb43d73c
@@ -182,14 +182,7 @@ Player::~Player()
|
||||
|
||||
void Player::open()
|
||||
{
|
||||
#ifdef Q_WS_MAEMO_5
|
||||
QStringList fileNames;
|
||||
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Files"), "/");
|
||||
if (!fileName.isEmpty())
|
||||
fileNames << fileName;
|
||||
#else
|
||||
QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open Files"));
|
||||
#endif
|
||||
addToPlaylist(fileNames);
|
||||
}
|
||||
|
||||
@@ -405,25 +398,16 @@ void Player::showColorDialog()
|
||||
connect(saturationSlider, SIGNAL(sliderMoved(int)), videoWidget, SLOT(setSaturation(int)));
|
||||
connect(videoWidget, SIGNAL(saturationChanged(int)), saturationSlider, SLOT(setValue(int)));
|
||||
|
||||
#if defined(Q_OS_SYMBIAN)
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
|
||||
#endif
|
||||
QFormLayout *layout = new QFormLayout;
|
||||
layout->addRow(tr("Brightness"), brightnessSlider);
|
||||
layout->addRow(tr("Contrast"), contrastSlider);
|
||||
layout->addRow(tr("Hue"), hueSlider);
|
||||
layout->addRow(tr("Saturation"), saturationSlider);
|
||||
#if defined(Q_OS_SYMBIAN)
|
||||
layout->addWidget(buttonBox);
|
||||
#endif
|
||||
|
||||
QPushButton *button = new QPushButton(tr("Close"));
|
||||
layout->addRow(button);
|
||||
|
||||
colorDialog = new QDialog(this);
|
||||
#if defined(Q_OS_SYMBIAN)
|
||||
connect(buttonBox, SIGNAL(clicked(QAbstractButton*)), colorDialog, SLOT(hide()));
|
||||
#endif
|
||||
colorDialog->setWindowTitle(tr("Color Options"));
|
||||
colorDialog->setLayout(layout);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user