mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
trans: Fix Network and Results table translate.
This commit is contained in:
1 parent
47bcf8a748
commit
f5046858c8
6 files changed
+94
-51
No files matched your search
@@ -16,6 +16,8 @@
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
|
||||
from PyQt5.QtGui import (
|
||||
QKeySequence,
|
||||
)
|
||||
@@ -37,11 +39,17 @@ from Model.River import RiverNode, RiverReach, River
|
||||
from View.ASubWindow import ASubMainWindow
|
||||
from View.Network.GraphWidget import GraphWidget
|
||||
from View.Network.UndoCommand import *
|
||||
from View.Network.translate import *
|
||||
from View.Network.translate import (
|
||||
table_headers_node, table_headers_edge,
|
||||
retranslate,
|
||||
)
|
||||
from View.Network.Table import (
|
||||
ComboBoxDelegate, NodeTableModel, EdgeTableModel,
|
||||
)
|
||||
|
||||
_translate = QCoreApplication.translate
|
||||
|
||||
|
||||
class NetworkWindow(ASubMainWindow):
|
||||
def __init__(self, model=None, title="River network", parent=None):
|
||||
self._title = title
|
||||
@@ -70,6 +78,8 @@ class NetworkWindow(ASubMainWindow):
|
||||
self.redo_sc = QShortcut(QKeySequence.Redo, self)
|
||||
|
||||
def setup_table(self):
|
||||
retranslate()
|
||||
|
||||
# Nodes table
|
||||
table = self.find(QTableView, "tableView_nodes")
|
||||
self._nodes_model = NodeTableModel(
|
||||
|
||||
Reference in new issue
Block a user