mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 13:00:01 -08:00
Whitespace change on tab_room.cpp
This commit is contained in:
parent
5c1a8e1d42
commit
9318e74c3b
1 changed files with 3 additions and 21 deletions
|
|
@ -9,8 +9,6 @@
|
|||
#include <QLabel>
|
||||
#include <QToolButton>
|
||||
#include <QSplitter>
|
||||
#include <QCompleter>
|
||||
|
||||
#include "tab_supervisor.h"
|
||||
#include "tab_room.h"
|
||||
#include "tab_userlists.h"
|
||||
|
|
@ -100,29 +98,13 @@ TabRoom::TabRoom(TabSupervisor *_tabSupervisor, AbstractClient *_client, ServerI
|
|||
setLayout(hbox);
|
||||
|
||||
const int userListSize = info.user_list_size();
|
||||
|
||||
for (int i = 0; i < userListSize; ++i)
|
||||
userList->processUserInfo(info.user_list(i), true);
|
||||
|
||||
userList->sortItems();
|
||||
const int gameListSize = info.game_list_size();
|
||||
|
||||
const int gameListSize = info.game_list_size();
|
||||
for (int i = 0; i < gameListSize; ++i)
|
||||
gameSelector->processGameInfo(info.game_list(i));
|
||||
|
||||
|
||||
QChar* alertPrefix = new QChar('@');
|
||||
|
||||
|
||||
QList<QString> userNames = tabSupervisor->getUserListsTab()->getAllUsersList()->getUsers().keys();
|
||||
for (int i = 0; i < userNames.size(); ++i) {
|
||||
userNames[i].insert(0,alertPrefix,1);
|
||||
}
|
||||
|
||||
QCompleter *completer = new QCompleter(userNames, this);
|
||||
completer->setCompletionMode(QCompleter::InlineCompletion);
|
||||
completer->setCaseSensitivity(Qt::CaseSensitive);
|
||||
connect(sayEdit,SIGNAL(cursorPositionChanged(int,int)),completer,SLOT(setCompletionColumn(int)));
|
||||
sayEdit->setCompleter(completer);
|
||||
}
|
||||
|
||||
TabRoom::~TabRoom()
|
||||
|
|
@ -256,4 +238,4 @@ PendingCommand *TabRoom::prepareRoomCommand(const ::google::protobuf::Message &c
|
|||
void TabRoom::sendRoomCommand(PendingCommand *pend)
|
||||
{
|
||||
client->sendCommand(pend);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue