add - function delete attachment
This commit is contained in:
parent
270f15c123
commit
b51fdea6fe
|
@ -370,7 +370,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
QtCore.SIGNAL("anchorClicked(const QUrl&)"), self.saveAttach)
|
QtCore.SIGNAL("anchorClicked(const QUrl&)"), self.saveAttach)
|
||||||
|
|
||||||
QtCore.QObject.connect(self.ui.AddAttach, QtCore.SIGNAL("clicked()"), self.AddAttach)
|
QtCore.QObject.connect(self.ui.AddAttach, QtCore.SIGNAL("clicked()"), self.AddAttach)
|
||||||
|
QtCore.QObject.connect(self.ui.DelAttach, QtCore.SIGNAL("clicked()"), self.DelAttach)
|
||||||
|
|
||||||
QtCore.QObject.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
|
||||||
"itemSelectionChanged ()"), self.tableWidgetSentItemClicked)
|
"itemSelectionChanged ()"), self.tableWidgetSentItemClicked)
|
||||||
|
@ -444,6 +444,16 @@ class MyForm(QtGui.QMainWindow):
|
||||||
# The most recent broadcast
|
# The most recent broadcast
|
||||||
newBroadcastItem = None
|
newBroadcastItem = None
|
||||||
|
|
||||||
|
def DelAttach(self):
|
||||||
|
|
||||||
|
item=self.ui.attachmentListSend.currentItem()
|
||||||
|
for x in range(len(attachArray) ):
|
||||||
|
if(attachArray[x]==item.text):
|
||||||
|
del attachArray[x]
|
||||||
|
break
|
||||||
|
|
||||||
|
del item
|
||||||
|
|
||||||
|
|
||||||
def saveAttach(self,link):
|
def saveAttach(self,link):
|
||||||
link=link.toString()
|
link=link.toString()
|
||||||
|
|
Reference in New Issue
Block a user