From b54517ad0fab5cfd1500975c52641d0afca6748d Mon Sep 17 00:00:00 2001
From: Erik Verbruggen <erik.verbruggen@nokia.com>
Date: Fri, 31 Jul 2009 12:59:41 +0200
Subject: [PATCH] Pimpin' the UI a bit.

---
 src/plugins/cpaster/cpasterplugin.cpp |  6 ++++++
 src/plugins/cpaster/pasteselect.ui    | 10 +++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index 1bdffc380cf..f8744e74d0d 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -219,7 +219,13 @@ void CodepasterPlugin::fetch()
 
     ui.listWidget->addItems(QStringList() << tr("This protocol supports no listing"));
     ui.listWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
+#ifndef Q_WS_MACX
     ui.listWidget->setFrameStyle(QFrame::NoFrame);
+#endif // Q_WS_MACX
+    QFont listFont = ui.listWidget->font();
+    listFont.setFamily("Courier");
+    listFont.setStyleHint(QFont::TypeWriter);
+    ui.listWidget->setFont(listFont);
     // ### TODO2: when we change the protocol, we need to relist
     foreach(Protocol *protocol, m_protocols) {
         if (protocol->name() == ui.protocolBox->currentText() && protocol->canList()) {
diff --git a/src/plugins/cpaster/pasteselect.ui b/src/plugins/cpaster/pasteselect.ui
index 05c6697cb51..5e6aad331c9 100644
--- a/src/plugins/cpaster/pasteselect.ui
+++ b/src/plugins/cpaster/pasteselect.ui
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>451</width>
-    <height>308</height>
+    <width>550</width>
+    <height>350</height>
    </rect>
   </property>
   <property name="sizePolicy">
@@ -55,7 +55,11 @@
     </layout>
    </item>
    <item>
-    <widget class="QListWidget" name="listWidget"/>
+    <widget class="QListWidget" name="listWidget">
+     <property name="alternatingRowColors">
+      <bool>true</bool>
+     </property>
+    </widget>
    </item>
    <item>
     <widget class="QDialogButtonBox" name="buttons">
-- 
GitLab