1
0
forked from blue/squawk

bug with selection, some right padding to the avatars

This commit is contained in:
Blue 2020-01-25 11:10:24 +03:00
parent 626227db93
commit 565449f176
3 changed files with 8 additions and 3 deletions

View File

@ -66,7 +66,6 @@ QVariant Models::Roster::data (const QModelIndex& index, int role) const
case Qt::DisplayRole:
{
if (index.column() != 0) {
result = "";
break;
}
switch (item->type) {

View File

@ -36,7 +36,7 @@ Squawk::Squawk(QWidget *parent) :
m_ui->setupUi(this);
m_ui->roster->setModel(&rosterModel);
m_ui->roster->setContextMenuPolicy(Qt::CustomContextMenu);
m_ui->roster->setColumnWidth(1, 20);
m_ui->roster->setColumnWidth(1, 30);
m_ui->roster->setIconSize(QSize(20, 20));
m_ui->roster->header()->setStretchLastSection(false);
m_ui->roster->header()->setSectionResizeMode(0, QHeaderView::Stretch);

View File

@ -54,6 +54,12 @@
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="animated">
<bool>true</bool>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
<property name="expandsOnDoubleClick">
<bool>false</bool>
</property>
@ -70,7 +76,7 @@
<x>0</x>
<y>0</y>
<width>385</width>
<height>27</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuSettings">