Skip to content
Permalink
Browse files

fix copying to clipboard in fTools (closes #8442)

  • Loading branch information
alexbruy committed Aug 12, 2013
1 parent 1cadc25 commit 7b57676f02fefac2aa764528204d5fb09720c57a
Showing with 3 additions and 4 deletions.
  1. +1 −2 python/plugins/fTools/tools/doValidate.py
  2. +2 −2 python/plugins/fTools/tools/doVisual.py
@@ -113,8 +113,7 @@ def keyPressEvent( self, e ):
e.key() == Qt.Key_C:
items = ""
for row in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( row, 0 ).text()
+ "," + self.tblUnique.item( row, 1 ).text() + "\n" )
items += self.tblUnique.item( row, 0 ).text() + "," + self.tblUnique.item( row, 1 ).text() + "\n"
if items:
clip_board = QApplication.clipboard()
clip_board.setText( items )
@@ -68,10 +68,10 @@ def keyPressEvent( self, e ):
items = ""
if self.myFunction in ( 1, 2 ):
for rec in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( rec, 0 ).text() + "\n" )
items += self.tblUnique.item( rec, 0 ).text() + "\n"
else:
for rec in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( rec, 0 ).text() + ":" + self.tblUnique.item( rec, 1 ).text() + "\n" )
items += self.tblUnique.item( rec, 0 ).text() + ":" + self.tblUnique.item( rec, 1 ).text() + "\n"
if items:
clip_board = QApplication.clipboard()
clip_board.setText( items )

0 comments on commit 7b57676

Please sign in to comment.
You can’t perform that action at this time.