From 3b30c14b760312413135e6324b642b7aaaa0d865 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 19 Sep 2009 11:50:41 +0100
Subject: Sink the chatview on X11, so it seems better integrated.


diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp
index ab093db..0a02591 100644
--- a/Swift/QtUI/QtChatView.cpp
+++ b/Swift/QtUI/QtChatView.cpp
@@ -6,6 +6,7 @@
 #include <QWebView>
 #include <QWebFrame>
 #include <QKeyEvent>
+#include <QStackedWidget>
 
 namespace Swift {
 
@@ -15,10 +16,21 @@ QtChatView::QtChatView(QWidget* parent) : QWidget(parent) {
 	QVBoxLayout* mainLayout = new QVBoxLayout(this);
 	mainLayout->setSpacing(0);
 	mainLayout->setContentsMargins(0,0,0,0);
-
 	webView_ = new QWebView(this);
 	webView_->setFocusPolicy(Qt::NoFocus);
+#ifdef Q_WS_X11
+	/* To give a border on Linux, where it looks bad without */
+	QStackedWidget* stack = new QStackedWidget(this);
+	stack->addWidget(webView_);
+	stack->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
+	stack->setLineWidth(2);
+	mainLayout->addWidget(stack);
+#else
 	mainLayout->addWidget(webView_);
+#endif
+
+
+	
 
 	webPage_ = new QWebPage(this);
 	webPage_->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
-- 
cgit v0.10.2-6-g49f6