[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/nowplaying
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-08-05 14:57:12
Message-ID: 1217948232.482505.23312.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 842572 by aseigo:
* adapt to Plamsa::Slider API fix
* memory leaks suck
M +3 -2 controls.cpp
M +1 -1 controls.h
M +3 -2 infopanel.cpp
M +1 -1 infopanel.h
M +4 -2 nowplaying.cpp
--- trunk/KDE/kdeplasma-addons/applets/nowplaying/controls.cpp #842571:842572
@@ -4,8 +4,9 @@
#include <QGraphicsLinearLayout>
#include <KDebug>
-Controls::Controls()
- : m_playpause(new Plasma::Icon),
+Controls::Controls(QGraphicsWidget *parent)
+ : QGraphicsWidget(parent),
+ m_playpause(new Plasma::Icon),
m_stop(new Plasma::Icon),
m_prev(new Plasma::Icon),
m_next(new Plasma::Icon),
--- trunk/KDE/kdeplasma-addons/applets/nowplaying/controls.h #842571:842572
@@ -33,7 +33,7 @@
Q_OBJECT
public:
- Controls();
+ Controls(QGraphicsWidget *parent = 0);
~Controls();
public slots:
--- trunk/KDE/kdeplasma-addons/applets/nowplaying/infopanel.cpp #842571:842572
@@ -23,8 +23,9 @@
#include <QGraphicsGridLayout>
#include <QLabel>
-InfoPanel::InfoPanel()
- : m_artistLabel(new Plasma::Label),
+InfoPanel::InfoPanel(QGraphicsWidget *parent)
+ : QGraphicsWidget(parent),
+ m_artistLabel(new Plasma::Label),
m_titleLabel(new Plasma::Label),
m_albumLabel(new Plasma::Label),
m_timeLabel(new Plasma::Label),
--- trunk/KDE/kdeplasma-addons/applets/nowplaying/infopanel.h #842571:842572
@@ -34,7 +34,7 @@
Q_OBJECT
public:
- InfoPanel();
+ InfoPanel(QGraphicsWidget *parent = 0);
~InfoPanel();
public slots:
--- trunk/KDE/kdeplasma-addons/applets/nowplaying/nowplaying.cpp #842571:842572
@@ -42,8 +42,8 @@
m_length(0),
m_textPanel(new InfoPanel),
m_buttonPanel(new Controls),
- m_volumeSlider(new Plasma::Slider(Qt::Vertical)),
- m_positionSlider(new Plasma::Slider(Qt::Horizontal))
+ m_volumeSlider(new Plasma::Slider(this)),
+ m_positionSlider(new Plasma::Slider(this))
{
setAspectRatioMode(Plasma::IgnoreAspectRatio);
resize(300, 200);
@@ -62,6 +62,7 @@
connect(this, SIGNAL(metadataChanged(QMap<QString,QString>)),
m_textPanel, SLOT(updateMetadata(QMap<QString,QString>)));
+ m_volumeSlider->setOrientation(Qt::Vertical);
m_volumeSlider->setMinimum(0);
m_volumeSlider->setMaximum(100);
m_volumeSlider->setValue(0);
@@ -71,6 +72,7 @@
this, SLOT(setVolume(int)));
m_volumeSlider->setEnabled(false);
+ m_positionSlider->setOrientation(Qt::Vertical);
m_positionSlider->setMinimum(0);
m_positionSlider->setMaximum(0);
m_positionSlider->setValue(0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic