From 2af5c61de3fa58b3fb1f4e0287ad607e60b61397 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Mon, 23 Nov 2015 16:05:55 +0100 Subject: Request redraw of recent chats on compactness change Test-Information: Verified UI in the 'Chats' tab is directly updated after compactness change on Debian 8.2. Change-Id: I20fcf863983ff206be4cb427d4d77bd42f23e53e diff --git a/Swift/QtUI/ChatList/ChatListDelegate.cpp b/Swift/QtUI/ChatList/ChatListDelegate.cpp index c0070de..5fa4e23 100644 --- a/Swift/QtUI/ChatList/ChatListDelegate.cpp +++ b/Swift/QtUI/ChatList/ChatListDelegate.cpp @@ -1,19 +1,20 @@ /* - * Copyright (c) 2010-2011 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ -#include +#include + #include +#include -#include "Swift/QtUI/ChatList/ChatListDelegate.h" -#include "Swift/QtUI/Roster/GroupItemDelegate.h" -#include "Swift/QtUI/ChatList/ChatListItem.h" -#include "Swift/QtUI/ChatList/ChatListMUCItem.h" -#include "Swift/QtUI/ChatList/ChatListRecentItem.h" -#include "Swift/QtUI/ChatList/ChatListWhiteboardItem.h" -#include "Swift/QtUI/ChatList/ChatListGroupItem.h" +#include +#include +#include +#include +#include +#include namespace Swift { @@ -27,6 +28,7 @@ ChatListDelegate::~ChatListDelegate() { void ChatListDelegate::setCompact(bool compact) { compact_ = compact; + emit sizeHintChanged(QModelIndex()); } QSize ChatListDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index ) const { -- cgit v0.10.2-6-g49f6