refresh contactlist on HushChat tab
This commit is contained in:
@@ -3,8 +3,13 @@
|
|||||||
|
|
||||||
void ContactModel::renderContactList(QListWidget* view)
|
void ContactModel::renderContactList(QListWidget* view)
|
||||||
{
|
{
|
||||||
|
while(view->count() > 0)
|
||||||
|
{
|
||||||
|
view->takeItem(0);
|
||||||
|
}
|
||||||
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
|
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
|
||||||
{
|
{
|
||||||
view->addItem(c.getName());
|
view->addItem(c.getName());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1388,6 +1388,14 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="memoSizeChat">
|
<widget class="QLabel" name="memoSizeChat">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>1180</x>
|
||||||
|
<y>460</y>
|
||||||
|
<width>47</width>
|
||||||
|
<height>17</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">0 / 512</string>
|
<string notr="true">0 / 512</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user