2016-05-31 20:59:31 -05: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 15:33:16 -06:00
|
|
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
2009-06-01 04:55:11 -05:00
|
|
|
|
2013-10-20 14:15:09 -05:00
|
|
|
from PyQt5.QtCore import QSize
|
2013-11-16 12:38:07 -06:00
|
|
|
from PyQt5.QtWidgets import QVBoxLayout, QAbstractItemView
|
2009-06-01 04:55:11 -05:00
|
|
|
|
2011-11-01 14:44:18 -05:00
|
|
|
from hscommon.trans import trget
|
2016-05-31 20:59:31 -05:00
|
|
|
from ..details_dialog import DetailsDialog as DetailsDialogBase
|
|
|
|
from ..details_table import DetailsTable
|
2010-10-04 08:29:00 -05:00
|
|
|
|
2011-11-01 14:44:18 -05:00
|
|
|
tr = trget('ui')
|
|
|
|
|
2010-10-04 08:29:00 -05:00
|
|
|
class DetailsDialog(DetailsDialogBase):
|
2010-02-05 14:09:04 -06:00
|
|
|
def _setupUi(self):
|
2011-01-21 06:57:54 -06:00
|
|
|
self.setWindowTitle(tr("Details"))
|
2010-10-04 08:29:00 -05:00
|
|
|
self.resize(502, 295)
|
|
|
|
self.setMinimumSize(QSize(250, 250))
|
|
|
|
self.verticalLayout = QVBoxLayout(self)
|
|
|
|
self.verticalLayout.setSpacing(0)
|
2013-11-16 12:38:07 -06:00
|
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
2010-10-04 08:29:00 -05:00
|
|
|
self.tableView = DetailsTable(self)
|
|
|
|
self.tableView.setAlternatingRowColors(True)
|
|
|
|
self.tableView.setSelectionBehavior(QAbstractItemView.SelectRows)
|
|
|
|
self.tableView.setShowGrid(False)
|
|
|
|
self.verticalLayout.addWidget(self.tableView)
|
2016-05-31 20:59:31 -05:00
|
|
|
|