Skip to content

Commit

Permalink
Fix online users dialog warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CoBC committed Mar 2, 2024
1 parent 795c335 commit 9fc4bf8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Client/qtTeamTalk/onlineusersdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,22 @@ void OnlineUsersDlg::slotUserLeft(int /*channelid*/, const User& user)
void OnlineUsersDlg::slotTreeContextMenu(const QPoint& /*point*/)
{
QMenu menu(this);
menu.addAction(tr("&View User Information"), this, [&]() { menuAction(VIEW_USERINFORMATION); },
QKeySequence(tr("Ctrl+I")));
menu.addAction(tr("M&essages"), this, [&]() { menuAction(SEND_TEXTMESSAGE); },
QKeySequence(tr("Ctrl+E")));
menu.addAction(tr("&Op"), this, [&]() { menuAction(OP); },
QKeySequence(tr("Ctrl+O")));
menu.addAction(tr("&Kick from Channel"), this, [&]() { menuAction(KICK_FROM_CHANNEL); },
QKeySequence(tr("Ctrl+K")));
menu.addAction(tr("&Kick from Server"), this, [&]() { menuAction(KICK_FROM_SERVER); },
QKeySequence(tr("Ctrl+Alt+K")));
menu.addAction(tr("Kick and &Ban from Channel"), this, [&]() { menuAction(BAN_FROM_CHANNEL); },
QKeySequence(tr("Ctrl+B")));
menu.addAction(tr("Kick and &Ban from Server"), this, [&]() { menuAction(BAN_FROM_SERVER); },
QKeySequence(tr("Ctrl+Alt+B")));
menu.addAction(tr("Select User(s) for Move"), this, [&]() { menuAction(MOVE); },
QKeySequence(tr("Ctrl+Alt+X")));
menu.addAction(tr("&View User Information"), QKeySequence(tr("Ctrl+I")), this,
[&]() { menuAction(VIEW_USERINFORMATION); });
menu.addAction(tr("M&essages"), QKeySequence(tr("Ctrl+E")), this,
[&]() { menuAction(SEND_TEXTMESSAGE); });
menu.addAction(tr("&Op"), QKeySequence(tr("Ctrl+O")), this,
[&]() { menuAction(OP); });
menu.addAction(tr("&Kick from Channel"), QKeySequence(tr("Ctrl+K")), this,
[&]() { menuAction(KICK_FROM_CHANNEL); });
menu.addAction(tr("&Kick from Server"), QKeySequence(tr("Ctrl+Alt+K")), this,
[&]() { menuAction(KICK_FROM_SERVER); });
menu.addAction(tr("Kick and &Ban from Channel"), QKeySequence(tr("Ctrl+B")), this,
[&]() { menuAction(BAN_FROM_CHANNEL); });
menu.addAction(tr("Kick and &Ban from Server"), QKeySequence(tr("Ctrl+Alt+B")), this,
[&]() { menuAction(BAN_FROM_SERVER); });
menu.addAction(tr("Select User(s) for Move"), QKeySequence(tr("Ctrl+Alt+X")), this,
[&]() { menuAction(MOVE); });
QMenu* sortMenu = menu.addMenu(tr("Sort By..."));
QString asc = tr("Ascending"), desc = tr("Descending");
QAction* sortId = new QAction(sortMenu);
Expand Down

0 comments on commit 9fc4bf8

Please sign in to comment.