This commit is contained in:
Kovid Goyal 2008-03-29 20:53:33 +00:00
parent 1e680d7fda
commit c804605699
3 changed files with 24 additions and 23 deletions

View File

@ -2,8 +2,8 @@ __license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
import os import os
from PyQt4.QtGui import QDialog, QMessageBox, QListWidgetItem, QVBoxLayout from PyQt4.QtGui import QDialog, QMessageBox, QListWidgetItem
from PyQt4.QtCore import QVariant, SIGNAL, QStringList, QTimer, Qt from PyQt4.QtCore import QVariant, SIGNAL, QStringList, QTimer, Qt, QSize
from libprs500 import islinux, Settings from libprs500 import islinux, Settings
from libprs500.gui2.dialogs.config_ui import Ui_Dialog from libprs500.gui2.dialogs.config_ui import Ui_Dialog
@ -51,10 +51,9 @@ class ConfigDialog(QDialog, Ui_Dialog):
else: else:
item.setCheckState(Qt.Checked) item.setCheckState(Qt.Checked)
self.mbl = QVBoxLayout() self.filename_pattern = FilenamePattern(self)
self.metadata_box.setLayout(self.mbl) self.metadata_box.layout().insertWidget(0, self.filename_pattern)
self.filename_pattern = FilenamePattern(None)
self.mbl.addChildWidget(self.filename_pattern)
def compact(self, toggled): def compact(self, toggled):

View File

@ -5,8 +5,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>667</width> <width>709</width>
<height>630</height> <height>685</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
@ -360,6 +360,21 @@
<property name="title" > <property name="title" >
<string>&amp;Metadata from file name</string> <string>&amp;Metadata from file name</string>
</property> </property>
<layout class="QVBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -5,27 +5,14 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>498</width> <width>349</width>
<height>452</height> <height>441</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QLabel" name="label" > <widget class="QLabel" name="label" >
<property name="text" > <property name="text" >