From 719907a52681f9afd93d859ee08d01baa140e858 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Mon, 10 May 2010 16:19:58 +0200
Subject: [PATCH] make fakevim "command line" a few pixels smaller

---
 .../coreplugin/editormanager/editorview.cpp        | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp
index d9d07a2b7ce..10b0929ac05 100644
--- a/src/plugins/coreplugin/editormanager/editorview.cpp
+++ b/src/plugins/coreplugin/editormanager/editorview.cpp
@@ -130,22 +130,23 @@ EditorView::EditorView(QWidget *parent) :
     {
         m_statusHLine->setFrameStyle(QFrame::HLine);
 
-        m_statusWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
-        m_statusWidget->setLineWidth(1);
+        m_statusWidget->setFrameStyle(QFrame::NoFrame);
+        m_statusWidget->setLineWidth(0);
         //m_statusWidget->setForegroundRole(QPalette::ToolTipText);
         //m_statusWidget->setBackgroundRole(QPalette::ToolTipBase);
         m_statusWidget->setAutoFillBackground(true);
 
-
         QHBoxLayout *hbox = new QHBoxLayout(m_statusWidget);
-        hbox->setMargin(2);
-        m_statusWidgetLabel = new QLabel("Placeholder");
+        hbox->setContentsMargins(1, 0, 1, 1);
+        m_statusWidgetLabel = new QLabel;
         m_statusWidgetLabel->setForegroundRole(QPalette::ToolTipText);
+        m_statusWidgetLabel->setContentsMargins(3, 0, 3, 0);
         hbox->addWidget(m_statusWidgetLabel);
         hbox->addStretch(1);
 
         m_statusWidgetButton = new QToolButton;
-        m_statusWidgetButton->setText(tr("Placeholder"));
+        m_statusWidgetButton->setContentsMargins(0, 0, 0, 0);
+        //m_statusWidgetButton->setIcon(QIcon(":/core/images/clear.png"));
         hbox->addWidget(m_statusWidgetButton);
 
         m_statusHLine->setVisible(false);
@@ -206,6 +207,7 @@ void EditorView::showEditorStatusBar(const QString &id,
     m_statusWidgetId = id;
     m_statusWidgetLabel->setText(infoText);
     m_statusWidgetButton->setText(buttonText);
+    m_statusWidgetButton->setToolTip(buttonText);
     m_statusWidgetButton->disconnect();
     if (object && member)
         connect(m_statusWidgetButton, SIGNAL(clicked()), object, member);
-- 
GitLab