Skip to content

Commit

Permalink
adds SaveAs shortcut and closes Issue #194
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed May 3, 2018
1 parent 275e56a commit c9825f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/artisanlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10672,6 +10672,7 @@ def __init__(self, parent = None):
self.fileMenu.addAction(self.fileSaveAction)

self.fileSaveAsAction = QAction(UIconst.FILE_MENU_SAVEAS,self)
self.fileSaveAsAction.setShortcut(QKeySequence.SaveAs)
self.fileSaveAsAction.triggered.connect(lambda _:self.fileSave(None))
self.fileMenu.addAction(self.fileSaveAsAction)

Expand Down Expand Up @@ -43298,9 +43299,12 @@ def setalarmtablerow(self,i):
def markNotEnabledAlarmRows(self):
for i in range(self.alarmtable.rowCount()):
for j in range(11):
if aw.qmc.alarmstate[i]:
#self.alarmtable.setItem(i,j,QTableWidgetItem())
self.alarmtable.item(i,j).setBackground(QColor(191, 191, 191))
try:
if aw.qmc.alarmstate[i]:
#self.alarmtable.setItem(i,j,QTableWidgetItem())
self.alarmtable.item(i,j).setBackground(QColor(191, 191, 191))
except:
pass

def createalarmtable(self):
try:
Expand Down

0 comments on commit c9825f8

Please sign in to comment.