Skip to content

Commit

Permalink
Double clicking now starts the call.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsnen committed Jan 22, 2019
1 parent 1fe1c91 commit a271d1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/contactlistitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "participantinterface.h"

#include <QDir>
#include <QDebug>

ContactListItem::ContactListItem(QString name, QString username, QString ip):
name_(name),
Expand Down Expand Up @@ -71,3 +72,9 @@ QString ContactListItem::getAddress()
{
return ip_;
}

void ContactListItem::mouseDoubleClickEvent(QMouseEvent *e)
{
QWidget::mouseDoubleClickEvent(e);
call();
}
4 changes: 4 additions & 0 deletions src/gui/contactlistitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public slots:
void call();
void chat();

protected:

void mouseDoubleClickEvent(QMouseEvent *e);

private:

QString name_;
Expand Down

0 comments on commit a271d1d

Please sign in to comment.