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-31 20:37:18 +00:00
|
|
|
from PyQt5.QtWidgets import QAbstractItemView
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2011-11-01 19:44:18 +00:00
|
|
|
from hscommon.trans import trget
|
2022-05-09 06:40:08 +00:00
|
|
|
from qt.details_dialog import DetailsDialog as DetailsDialogBase
|
|
|
|
from qt.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):
|
2022-07-01 03:52:54 +00:00
|
|
|
def _setupUi(self) -> None:
|
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.tableView = DetailsTable(self)
|
|
|
|
self.tableView.setAlternatingRowColors(True)
|
|
|
|
self.tableView.setSelectionBehavior(QAbstractItemView.SelectRows)
|
|
|
|
self.tableView.setShowGrid(False)
|
2020-07-31 20:37:18 +00:00
|
|
|
self.setWidget(self.tableView)
|