summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-11-23 15:05:55 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-11-26 11:25:30 (GMT)
commit2af5c61de3fa58b3fb1f4e0287ad607e60b61397 (patch)
tree317d672383a6ac786579d8587d7ded96b5866be3 /Swift
parent8616d5f0c2a66c237cecbe1904f64e953be7bd14 (diff)
downloadswift-2af5c61de3fa58b3fb1f4e0287ad607e60b61397.zip
swift-2af5c61de3fa58b3fb1f4e0287ad607e60b61397.tar.bz2
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
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/ChatList/ChatListDelegate.cpp20
1 files changed, 11 insertions, 9 deletions
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 <QPen>
+#include <Swift/QtUI/ChatList/ChatListDelegate.h>
+
#include <QPainter>
+#include <QPen>
-#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 <Swift/QtUI/ChatList/ChatListGroupItem.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/Roster/GroupItemDelegate.h>
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 {