Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

72 lines
1.9 KiB

--- a/src/panels/information/phononwidget.cpp
+++ b/src/panels/information/phononwidget.cpp
@@ -30,6 +30,7 @@
#include <QHBoxLayout>
#include <QShowEvent>
#include <QToolButton>
+#include <QCheckBox>
#include <QDialog>
#include <QIcon>
#include <KIconLoader>
@@ -69,6 +70,7 @@
m_topLayout(0),
m_media(0),
m_seekSlider(0),
+ m_playAut(0),
m_audioOutput(0),
m_videoPlayer(0)
{
@@ -79,6 +81,9 @@
if (m_url != url) {
stop(); // emits playingStopped() signal
m_url = url;
+ if(m_playAut ->isChecked()){
+ play();
+ }
}
}
@@ -115,6 +120,8 @@
controlsLayout->setMargin(0);
controlsLayout->setSpacing(0);
+ m_playAut = new QCheckBox(this);
+
m_playButton = new QToolButton(this);
m_stopButton = new QToolButton(this);
m_seekSlider = new Phonon::SeekSlider(this);
@@ -122,11 +129,15 @@
controlsLayout->addWidget(m_playButton);
controlsLayout->addWidget(m_stopButton);
controlsLayout->addWidget(m_seekSlider);
+ controlsLayout->addWidget(m_playAut);
m_topLayout->addLayout(controlsLayout);
const int smallIconSize = IconSize(KIconLoader::Small);
const QSize buttonSize(smallIconSize, smallIconSize);
+
+ m_playAut->setToolTip(i18n("play automatically"));
+ m_playAut->setIconSize(buttonSize);
m_playButton->setToolTip(i18n("play"));
m_playButton->setIconSize(buttonSize);
--- a/src/panels/information/phononwidget.h
+++ b/src/panels/information/phononwidget.h
@@ -38,6 +38,7 @@
class EmbeddedVideoPlayer;
class QToolButton;
class QVBoxLayout;
+class QCheckBox;
class PhononWidget : public QWidget
{
@@ -81,6 +82,7 @@
QToolButton *m_playButton;
QToolButton *m_stopButton;
+ QCheckBox *m_playAut;
QVBoxLayout *m_topLayout;
Phonon::MediaObject *m_media;