예제 #1
0
 def slotBrowseConflict(self):
     lvi = self.lvConflicts.selectedItem()
     if not lvi:
         return
     dia = DependencyDialog(
         (str(lvi.text(0)), str(lvi.text(1))), parent=self, title="Conflicts", secondLabel="Package:"
     )
     if dia.exec_loop() == QDialog.Accepted:
         cond, dep = dia.getResult()
         lvi.setText(0, cond)
         lvi.setText(1, dep)
예제 #2
0
        def slotBrowseRuntimeDep(self):
            lvi = self.lvRuntimeDep.selectedItem()
            if not lvi:
                return
            dia = DependencyDialog((str(lvi.text(0)), str(lvi.text(1))), parent=self, title="Runtime Dependencies")
            if dia.exec_loop() == QDialog.Accepted:
                cond, dep = dia.getResult()
                lvi.setText(0, cond)
                lvi.setText(1, dep)

            self.syncRuntimeDep()
예제 #3
0
 def slotAddConflict(self):
     dia = DependencyDialog(parent=self, title="Conflicts", secondLabel="Package:")
     if dia.exec_loop() == QDialog.Accepted:
         cond, dep = dia.getResult()
         KListViewItem(self.lvConflicts, cond, dep)
예제 #4
0
 def slotAddRuntimeDep(self):
     dia = DependencyDialog(parent=self, title="Runtime Dependencies")
     if dia.exec_loop() == QDialog.Accepted:
         cond, dep = dia.getResult()
         KListViewItem(self.lvRuntimeDep, cond, dep)
     self.syncRuntimeDep()