-void ChatScene::clearWebPreview(ChatItem *parentItem) {
-#ifndef HAVE_WEBKIT
- Q_UNUSED(parentItem)
-#else
- if(parentItem == 0 || webPreview.parentItem == parentItem) {
- // posting an event ensures that the item will not be removed as
- // the result of another event. this could result in bad segfaults
- QCoreApplication::postEvent(this, new ClearWebPreviewEvent());
- }
-#endif
-}
-
-void ChatScene::showWebPreview() {