Change playlist to use Esperanza's playlistmodel
This commit is contained in:
parent
85cf6a8d1c
commit
503385309b
96 changed files with 2010 additions and 412 deletions
|
|
@ -1,42 +0,0 @@
|
|||
#include "MainWindow.h"
|
||||
|
||||
#include "Skin.h"
|
||||
#include "PixWidget.h"
|
||||
|
||||
PixWidget::PixWidget (QWidget *parent) : QWidget (parent)
|
||||
{
|
||||
Skin *skin = Skin::getInstance();
|
||||
m_pixmap = QPixmap(0,0);
|
||||
|
||||
connect (skin, SIGNAL (skinChanged (Skin *)),
|
||||
this, SLOT (setPixmaps(Skin *)));
|
||||
}
|
||||
|
||||
|
||||
PixWidget::~PixWidget ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PixWidget::setPixmaps(Skin *skin)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Since almost every Widget I have here
|
||||
* is done by drawing self.pixmap onto self
|
||||
* we define this a generic PaintEvent handler
|
||||
*/
|
||||
void
|
||||
PixWidget::paintEvent (QPaintEvent *event)
|
||||
{
|
||||
if (m_pixmap.isNull ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
QPainter (paint);
|
||||
paint.begin (this);
|
||||
paint.drawPixmap (rect (), m_pixmap, m_pixmap.rect ());
|
||||
paint.end ();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue