From 354315a78d5917ba57f6f6811be96a2f338d50b3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage <emmanuel.lepage@savoirfairelinux.com> Date: Mon, 19 Dec 2011 11:11:33 -0500 Subject: [PATCH] [ #7901 ] Fix compiler warnings --- kde/src/CallView.cpp | 8 +------- kde/src/CallView.h | 5 +++-- kde/src/widgets/TranslucentButtons.cpp | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/kde/src/CallView.cpp b/kde/src/CallView.cpp index 7fe031b493..d27e34e8dd 100644 --- a/kde/src/CallView.cpp +++ b/kde/src/CallView.cpp @@ -48,7 +48,7 @@ ///Retrieve current and older calls from the daemon, fill history and the calls TreeView and enable drag n' drop -CallView::CallView(QWidget* parent) : QTreeWidget(parent),m_pCallPendingTransfer(0),m_pActiveOverlay(0) +CallView::CallView(QWidget* parent) : QTreeWidget(parent),m_pActiveOverlay(0),m_pCallPendingTransfer(0) { //Widget part setAcceptDrops(true); @@ -116,12 +116,6 @@ void CallView::dragLeaveEvent ( QDragLeaveEvent *e ) e->accept(); } -///Add some child to the QTreeWidgetItem to show drop options (conference or transfer) -void CallView::showDropOptions(CallTreeItem* widget) -{ - //TODO remove? -} - ///Proxy to handle transfer mime data void CallView::transferDropEvent(Call* call,QMimeData* data) { diff --git a/kde/src/CallView.h b/kde/src/CallView.h index 8805844d35..9d333c46a4 100644 --- a/kde/src/CallView.h +++ b/kde/src/CallView.h @@ -56,7 +56,7 @@ class CallTreeItemDelegate : public QItemDelegate class CallViewOverlay : public QWidget { Q_OBJECT public: - CallViewOverlay(QWidget* parent) : QWidget(parent),m_pIcon(0),m_enabled(true),black("black"),m_pTimer(0) + CallViewOverlay(QWidget* parent) : QWidget(parent),m_pIcon(0),m_pTimer(0),m_enabled(true),black("black") { black.setAlpha(75); } @@ -86,10 +86,12 @@ public: } protected: void paintEvent(QPaintEvent* event) { + Q_UNUSED(event) QPainter customPainter(this); customPainter.fillRect(rect(),black); } virtual void resizeEvent(QResizeEvent *e) { + Q_UNUSED(e) if (m_pIcon) { m_pIcon->setMinimumSize(100,100); m_pIcon->move(width()-100,height()-100); @@ -156,7 +158,6 @@ class CallView : public QTreeWidget { Call* addConference ( Call* conf ); bool conferenceChanged ( Call* conf ); void conferenceRemoved ( Call* conf ); - void showDropOptions ( CallTreeItem* widget ); virtual void keyPressEvent(QKeyEvent* event); diff --git a/kde/src/widgets/TranslucentButtons.cpp b/kde/src/widgets/TranslucentButtons.cpp index 0529f82d46..50a3461c55 100644 --- a/kde/src/widgets/TranslucentButtons.cpp +++ b/kde/src/widgets/TranslucentButtons.cpp @@ -26,7 +26,7 @@ TranslucentButtons::~TranslucentButtons() void TranslucentButtons::paintEvent(QPaintEvent* event) { - + Q_UNUSED(event) QPainter customPainter(this); //kDebug() << m_CurrentColor.name(); //customPainter.setBackgroundMode( Qt::OpaqueMode ); -- GitLab