mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 19:06:02 +01:00
more pyqt6 enum goodness
This commit is contained in:
parent
5ad6a21581
commit
a48b3ed6c4
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
from qt.core import (
|
||||
QApplication, QFont, QFontInfo, QFontDialog, QColorDialog, QPainter, QDialog,
|
||||
QAbstractListModel, Qt, QIcon, QKeySequence, QColor, pyqtSignal, QCursor, QListWidgetItem,
|
||||
QAbstractListModel, Qt, QIcon, QKeySequence, QColor, pyqtSignal, QCursor, QHeaderView, QListWidgetItem,
|
||||
QWidget, QSizePolicy, QBrush, QPixmap, QSize, QPushButton, QVBoxLayout, QItemSelectionModel,
|
||||
QTableWidget, QTableWidgetItem, QLabel, QFormLayout, QLineEdit, QComboBox, QDialogButtonBox
|
||||
)
|
||||
|
|
@ -180,7 +180,7 @@ def setup_ui(self):
|
|||
t.setItem(r, 1, QTableWidgetItem(val))
|
||||
t.setItem(r, 2, QTableWidgetItem(template))
|
||||
l.addWidget(t)
|
||||
t.horizontalHeader().setSectionResizeMode(2, t.horizontalHeader().Stretch)
|
||||
t.horizontalHeader().setSectionResizeMode(2, QHeaderView.ResizeMode.Stretch)
|
||||
self.cb = b = QPushButton(QIcon.ic('plus.png'), _('&Add rule'), self)
|
||||
connect_lambda(b.clicked, self, lambda self: self.edit_rule())
|
||||
self.bb.addButton(b, QDialogButtonBox.ButtonRole.ActionRole)
|
||||
|
|
|
|||
Loading…
Reference in a new issue