mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
Increase Icon Size in User Lists (#5567)
This commit is contained in:
parent
a6649d5401
commit
9b4f51d1e4
1 changed files with 4 additions and 3 deletions
|
|
@ -344,9 +344,9 @@ void UserListTWI::setUserInfo(const ServerInfo_User &_userInfo)
|
||||||
userInfo = _userInfo;
|
userInfo = _userInfo;
|
||||||
|
|
||||||
setData(0, Qt::UserRole, userInfo.user_level());
|
setData(0, Qt::UserRole, userInfo.user_level());
|
||||||
setIcon(0, UserLevelPixmapGenerator::generateIcon(12, UserLevelFlags(userInfo.user_level()), userInfo.pawn_colors(),
|
setIcon(0, UserLevelPixmapGenerator::generateIcon(18, UserLevelFlags(userInfo.user_level()), userInfo.pawn_colors(),
|
||||||
false, QString::fromStdString(userInfo.privlevel())));
|
false, QString::fromStdString(userInfo.privlevel())));
|
||||||
setIcon(1, QIcon(CountryPixmapGenerator::generatePixmap(12, QString::fromStdString(userInfo.country()))));
|
setIcon(1, QIcon(CountryPixmapGenerator::generatePixmap(18, QString::fromStdString(userInfo.country()))));
|
||||||
setData(2, Qt::UserRole, QString::fromStdString(userInfo.name()));
|
setData(2, Qt::UserRole, QString::fromStdString(userInfo.name()));
|
||||||
setData(2, Qt::DisplayRole, QString::fromStdString(userInfo.name()));
|
setData(2, Qt::DisplayRole, QString::fromStdString(userInfo.name()));
|
||||||
}
|
}
|
||||||
|
|
@ -384,9 +384,10 @@ UserListWidget::UserListWidget(TabSupervisor *_tabSupervisor,
|
||||||
userTree = new QTreeWidget;
|
userTree = new QTreeWidget;
|
||||||
userTree->setColumnCount(3);
|
userTree->setColumnCount(3);
|
||||||
userTree->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
userTree->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
|
userTree->header()->setMinimumSectionSize(0);
|
||||||
userTree->setHeaderHidden(true);
|
userTree->setHeaderHidden(true);
|
||||||
userTree->setRootIsDecorated(false);
|
userTree->setRootIsDecorated(false);
|
||||||
userTree->setIconSize(QSize(20, 12));
|
userTree->setIconSize(QSize(20, 18));
|
||||||
userTree->setItemDelegate(itemDelegate);
|
userTree->setItemDelegate(itemDelegate);
|
||||||
userTree->setAlternatingRowColors(true);
|
userTree->setAlternatingRowColors(true);
|
||||||
connect(userTree, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, SLOT(userClicked(QTreeWidgetItem *, int)));
|
connect(userTree, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, SLOT(userClicked(QTreeWidgetItem *, int)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue