diff MainWindow.py @ 226:016c89dfd488

use our generic PyQtLib instead of custom Qt models in this project
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 22 May 2014 06:10:05 +0200
parents 699d8f1cebd4
children 94a902de5266
line wrap: on
line diff
--- a/MainWindow.py	Thu May 22 05:49:46 2014 +0200
+++ b/MainWindow.py	Thu May 22 06:10:05 2014 +0200
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 import subprocess
 from AddFeed import AddFeed
-from DisplayModel import DisplayModel
+from PyQtLib.GenericListModel import GenericListModel
 from FeedEntryItemDelegate import FeedEntryItemDelegate
 from FeedEntryTableModel import FeedEntryTableModel
 from FeedSettings import FeedSettings
@@ -24,7 +24,7 @@
 
     def updateFeedList(self):
         allFeeds = self.backend.getFeeds()
-        feedModel = DisplayModel(self, allFeeds, "title")
+        feedModel = GenericListModel(self,  allFeeds, 'title')
         self.ui.feedList.setModel(feedModel)
         self.ui.feedList.update()