2016-06-01 01:59:31 +00:00
|
|
|
# Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
#
|
|
|
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
2015-01-03 21:33:16 +00:00
|
|
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2013-10-20 19:15:09 +00:00
|
|
|
from PyQt5.QtCore import QSize
|
2020-07-14 15:37:48 +00:00
|
|
|
from PyQt5.QtWidgets import QVBoxLayout, QAbstractItemView, QWidget
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-11-01 19:44:18 +00:00
|
|
|
from hscommon.trans import trget
|
2016-06-01 01:59:31 +00:00
|
|
|
from ..details_dialog import DetailsDialog as DetailsDialogBase
|
|
|
|
from ..details_table import DetailsTable
|
2010-10-04 13:29:00 +00:00
|
|
|
|
2020-01-01 02:16:27 +00:00
|
|
|
tr = trget("ui")
|
|
|
|
|
2011-11-01 19:44:18 +00:00
|
|
|
|
2010-10-04 13:29:00 +00:00
|
|
|
class DetailsDialog(DetailsDialogBase):
|
2010-02-05 20:09:04 +00:00
|
|
|
def _setupUi(self):
|
2011-01-21 12:57:54 +00:00
|
|
|
self.setWindowTitle(tr("Details"))
|
2010-10-04 13:29:00 +00:00
|
|
|
self.resize(502, 295)
|
|
|
|
self.setMinimumSize(QSize(250, 250))
|
|
|
|
self.verticalLayout = QVBoxLayout(self)
|
|
|
|
self.verticalLayout.setSpacing(0)
|
2013-11-16 18:38:07 +00:00
|
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
2010-10-04 13:29:00 +00:00
|
|
|
self.tableView = DetailsTable(self)
|
|
|
|
self.tableView.setAlternatingRowColors(True)
|
|
|
|
self.tableView.setSelectionBehavior(QAbstractItemView.SelectRows)
|
|
|
|
self.tableView.setShowGrid(False)
|
|
|
|
self.verticalLayout.addWidget(self.tableView)
|
2020-07-14 15:37:48 +00:00
|
|
|
self.centralWidget = QWidget()
|
|
|
|
self.centralWidget.setLayout(self.verticalLayout)
|
|
|
|
self.setWidget(self.centralWidget)
|