forked from blue/squawk
bug with selection, some right padding to the avatars
This commit is contained in:
parent
626227db93
commit
565449f176
@ -66,7 +66,6 @@ QVariant Models::Roster::data (const QModelIndex& index, int role) const
|
|||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
{
|
{
|
||||||
if (index.column() != 0) {
|
if (index.column() != 0) {
|
||||||
result = "";
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (item->type) {
|
switch (item->type) {
|
||||||
|
@ -36,7 +36,7 @@ Squawk::Squawk(QWidget *parent) :
|
|||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
m_ui->roster->setModel(&rosterModel);
|
m_ui->roster->setModel(&rosterModel);
|
||||||
m_ui->roster->setContextMenuPolicy(Qt::CustomContextMenu);
|
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->setIconSize(QSize(20, 20));
|
||||||
m_ui->roster->header()->setStretchLastSection(false);
|
m_ui->roster->header()->setStretchLastSection(false);
|
||||||
m_ui->roster->header()->setSectionResizeMode(0, QHeaderView::Stretch);
|
m_ui->roster->header()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||||
|
@ -54,6 +54,12 @@
|
|||||||
<property name="uniformRowHeights">
|
<property name="uniformRowHeights">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="animated">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="allColumnsShowFocus">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="expandsOnDoubleClick">
|
<property name="expandsOnDoubleClick">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -70,7 +76,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>385</width>
|
<width>385</width>
|
||||||
<height>27</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuSettings">
|
<widget class="QMenu" name="menuSettings">
|
||||||
|
Loading…
Reference in New Issue
Block a user