#include "panelcommon.h"
-///< @todo requires clean-up, there is some commented code
-
PanelBar::PanelBar(QWidget *parent)
: QWidget(parent)
{
m_barTile.load(":/res/images/sliding_bar_tile.png");
m_menuDropShadowTile.load(":/res/images/menu_bar_drop_shadow.png");
-
+ ///< @todo magic
m_barRect.setRect(0, 0, PANEL_BAR_WIDTH, PANEL_HEIGHT);
this->resize(PANEL_BAR_WIDTH, PANEL_HEIGHT);
}
-void PanelBar::paintEvent(QPaintEvent *)
+void PanelBar::paintEvent(QPaintEvent *event)
{
qDebug() << __PRETTY_FUNCTION__;
+ Q_UNUSED(event);
+
QPainter painter(this);
painter.drawTiledPixmap(m_barRect, m_barTile);