Mercurial > hg > Feedworm
comparison MainWindow.py @ 113:04f8cf1558c1
Add a menu item to copy the selected article's link to the clipboard
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 29 Apr 2011 12:15:57 +0200 |
parents | 863599e84269 |
children | e9145e8dd698 |
comparison
equal
deleted
inserted
replaced
112:e4038dd8cc0e | 113:04f8cf1558c1 |
---|---|
6 from FeedEntryTableModel import FeedEntryTableModel | 6 from FeedEntryTableModel import FeedEntryTableModel |
7 from FeedSettings import FeedSettings | 7 from FeedSettings import FeedSettings |
8 from Preferences import Preferences | 8 from Preferences import Preferences |
9 from PreferencesDialog import PreferencesDialog | 9 from PreferencesDialog import PreferencesDialog |
10 from PyQt4.QtCore import QUrl | 10 from PyQt4.QtCore import QUrl |
11 from PyQt4.QtGui import QApplication | |
11 from PyQt4.QtGui import QMainWindow | 12 from PyQt4.QtGui import QMainWindow |
12 from PyQt4.QtGui import QWidget | 13 from PyQt4.QtGui import QWidget |
13 from Ui_MainWindow import Ui_MainWindow | 14 from Ui_MainWindow import Ui_MainWindow |
14 import FeedList | 15 import FeedList |
15 import subprocess | 16 import subprocess |
177 | 178 |
178 def close(self): | 179 def close(self): |
179 # save all uncommitted state, just in case | 180 # save all uncommitted state, just in case |
180 self.session.commit() | 181 self.session.commit() |
181 QMainWindow.close(self) | 182 QMainWindow.close(self) |
183 | |
184 def copyArticleURLToClipboard(self): | |
185 clipboard = QApplication.clipboard() | |
186 clipboard.setText(self.selectedEntry.link) |