← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~raoul-snyman/openlp/uifixes into lp:openlp

 

Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/uifixes into lp:openlp.

    Requested reviews:
    OpenLP Core (openlp-core)

-- 
https://code.launchpad.net/~raoul-snyman/openlp/uifixes/+merge/13524
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/lib/mediamanageritem.py'
--- openlp/core/lib/mediamanageritem.py	2009-10-16 18:41:41 +0000
+++ openlp/core/lib/mediamanageritem.py	2009-10-17 19:00:29 +0000
@@ -113,8 +113,8 @@
             self.title = title
         self.Toolbar = None
         self.PageLayout = QtGui.QVBoxLayout(self)
-        self.PageLayout.setSpacing(4)
-        self.PageLayout.setMargin(0)
+        self.PageLayout.setSpacing(0)
+        self.PageLayout.setContentsMargins(4, 0, 4, 0)
         self.requiredIcons()
         self.setupUi()
         self.retranslateUi()

=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py	2009-10-17 18:16:27 +0000
+++ openlp/core/ui/mainwindow.py	2009-10-17 19:00:29 +0000
@@ -35,6 +35,22 @@
     buildIcon
 from openlp.core.utils import check_latest_version
 
+media_manager_style = """
+  QToolBox::tab {
+    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
+        stop: 0 palette(midlight), stop: 1.0 palette(dark));
+    border-width: 1px;
+    border-style: outset;
+    border-color: palette(midlight);
+    border-radius: 5px;
+  }
+  QToolBox::tab:selected {
+    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
+        stop: 0 palette(light), stop: 1.0 palette(dark));
+    border-color: palette(light);
+  }
+"""
+
 class Ui_MainWindow(object):
     def setupUi(self, MainWindow):
         """
@@ -107,15 +123,7 @@
         self.MediaManagerDock = OpenLPDockWidget(MainWindow)
         MediaManagerIcon = buildIcon(u':/system/system_mediamanager.png')
         self.MediaManagerDock.setWindowIcon(MediaManagerIcon)
-        self.MediaManagerDock.setStyleSheet("""
- QToolBox::tab {
-     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
-                                 stop: 0 palette(light), stop: 1.0 palette(dark));
-     border: none;
-     border-radius: 5px;
-     margin: 0;
- }
-        """)
+        self.MediaManagerDock.setStyleSheet(media_manager_style)
         self.MediaManagerDock.setMinimumWidth(
             self.settingsmanager.mainwindow_left)
         self.MediaManagerDock.setObjectName(u'MediaManagerDock')

=== modified file 'openlp/plugins/songs/lib/mediaitem.py'
--- openlp/plugins/songs/lib/mediaitem.py	2009-10-17 18:16:27 +0000
+++ openlp/plugins/songs/lib/mediaitem.py	2009-10-17 19:00:29 +0000
@@ -93,7 +93,7 @@
         self.SearchLayout.setWidget(
             1, QtGui.QFormLayout.FieldRole, self.SearchTypeComboBox)
         self.PageLayout.addLayout(self.SearchLayout)
-        self.SearchButtonLayout = QtGui.QHBoxLayout(self)
+        self.SearchButtonLayout = QtGui.QHBoxLayout()
         self.SearchButtonLayout.setMargin(0)
         self.SearchButtonLayout.setSpacing(4)
         self.SearchButtonLayout.setObjectName(u'SearchButtonLayout')


Follow ups