mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 03:48:22 +01:00
...
This commit is contained in:
parent
546995553a
commit
88c185aa67
2 changed files with 13 additions and 7 deletions
|
|
@ -6,7 +6,7 @@
|
|||
import re
|
||||
from functools import partial
|
||||
|
||||
from PyQt4.Qt import QDialog, Qt, QListWidgetItem, QVariant, QIcon
|
||||
from PyQt4.Qt import QDialog, Qt, QListWidgetItem, QVariant
|
||||
|
||||
from calibre.gui2.preferences.create_custom_column_ui import Ui_QCreateCustomColumn
|
||||
from calibre.gui2 import error_dialog
|
||||
|
|
@ -47,7 +47,8 @@ def __init__(self, parent, editing, standard_colheads, standard_colnames):
|
|||
QDialog.__init__(self, parent)
|
||||
Ui_QCreateCustomColumn.__init__(self)
|
||||
self.setupUi(self)
|
||||
self.setWindowIcon(QIcon(I('column.png')))
|
||||
self.setWindowTitle(_('Create a custom column'))
|
||||
self.heading_label.setText(_('Create a custom column'))
|
||||
# Remove help icon on title bar
|
||||
icon = self.windowIcon()
|
||||
self.setWindowFlags(self.windowFlags()&(~Qt.WindowContextHelpButtonHint))
|
||||
|
|
@ -79,6 +80,8 @@ def __init__(self, parent, editing, standard_colheads, standard_colnames):
|
|||
self.datatype_changed()
|
||||
self.exec_()
|
||||
return
|
||||
self.setWindowTitle(_('Edit a custom column'))
|
||||
self.heading_label.setText(_('Edit a custom column'))
|
||||
self.shortcuts.setVisible(False)
|
||||
idx = parent.opt_columns.currentRow()
|
||||
if idx < 0:
|
||||
|
|
|
|||
|
|
@ -19,8 +19,9 @@
|
|||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Create or edit custom columns</string>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../../../../resources/images.qrc">
|
||||
<normaloff>:/images/column.png</normaloff>:/images/column.png</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
|
@ -252,7 +253,7 @@ four values, the first of them being the empty value.</string>
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<widget class="QLabel" name="heading_label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
|
|
@ -260,7 +261,7 @@ four values, the first of them being the empty value.</string>
|
|||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Create or edit custom columns</string>
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
@ -300,6 +301,8 @@ four values, the first of them being the empty value.</string>
|
|||
<tabstop>composite_box</tabstop>
|
||||
<tabstop>button_box</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="../../../../resources/images.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
|||
Loading…
Reference in a new issue