Skip to content
Snippets Groups Projects
Commit 354315a7 authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

[ #7901 ] Fix compiler warnings

parent b17f51cf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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);
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment