From 91eb941de992c53b9fb783c431d0e07c01d90302 Mon Sep 17 00:00:00 2001 From: Blaine Date: Sun, 14 Jun 2020 18:38:38 +0530 Subject: remove edge cases --- src/main/python/utils/streamTable.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/python/utils/streamTable.py b/src/main/python/utils/streamTable.py index c582e98..c9faef7 100644 --- a/src/main/python/utils/streamTable.py +++ b/src/main/python/utils/streamTable.py @@ -14,10 +14,6 @@ class streamTable(QTableWidget): col = self.getCol(point.x()) row = self.getRow(point.y()) menu = QMenu("Context Menu", self) - if col == 1: - menu.addAction("Insert Coulumn to Left", lambda x=col-1:self.insertColRight(col)) - if row == 1: - menu.addAction("Insert Row up", lambda x=row-1:self.insertRowBottom(row)) menu.addAction("Insert Column to right", lambda x=col: self.insertColRight(col)) menu.addAction("Insert Row to bottom", lambda x=point: self.insertRowBottom(row)) menu.exec_(self.mapToGlobal(point)+ QPoint(20, 25)) -- cgit