2020-05-17 Fred Gleason <fredg@paravelsystems.com>

* Dropped the 'RSS_SCHEMAS' table from the database.
	* Incremented the database version to 325.
	* Moved RSS template definitions to 'lib/rdfeed.h'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-05-17 17:29:51 -04:00
parent 2e9f8b7608
commit 66a2924c6b
12 changed files with 113 additions and 96 deletions

View File

@@ -39,9 +39,6 @@
EditFeed::EditFeed(const QString &feed,QWidget *parent)
: RDDialog(parent)
{
QString sql;
RDSqlQuery *q=NULL;
//
// Fix the Window Size
//
@@ -385,17 +382,11 @@ EditFeed::EditFeed(const QString &feed,QWidget *parent)
// RSS Schema
//
feed_rss_schema_box=new QComboBox(this);
sql=QString("select ")+
"ID,"+ // 00
"NAME "+ // 01
"from RSS_SCHEMAS order by NAME";
q=new RDSqlQuery(sql);
while(q->next()) {
for(int i=0;i<RDFeed::LastSchema;i++) {
feed_rss_schema_box->
insertItem(feed_rss_schema_box->count(),q->value(1).toString(),
q->value(0).toUInt());
insertItem(feed_rss_schema_box->count(),
RDFeed::rssSchemaString((RDFeed::RssSchema)i),i);
}
delete q;
connect(feed_rss_schema_box,SIGNAL(activated(int)),
this,SLOT(comboboxActivatedData(int)));
feed_rss_schema_label=new QLabel(tr("RSS Schema")+":",this);