Made a few corrections according to Sami's suggestions
[situare] / src / ui / panelbar.cpp
index c219ae5..7044eed 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "panelcommon.h"
 
-///< @todo requires clean-up, there is some commented code
-
 PanelBar::PanelBar(QWidget *parent)
     : QWidget(parent)
 {
@@ -37,16 +35,18 @@ PanelBar::PanelBar(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);