Skip to content

Commit

Permalink
主窗口好友栏菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanlangsir committed Apr 6, 2013
1 parent 4968565 commit 55f7813
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,11 @@ void MainWindow::onFriendListItemPressed(const QModelIndex &index)
if ( roster_index->type() != RIT_Contact )
return;

QMenu friendlist_menu;
friendlist_menu.addAction(begin_chat_);
if ( qApp->mouseButtons() == Qt::RightButton )
{
QMenu friendlist_menu;
friendlist_menu.addAction(begin_chat_);

friendlist_menu.exec(QCursor::pos());
friendlist_menu.exec(QCursor::pos());
}
}

0 comments on commit 55f7813

Please sign in to comment.