2023-08-02 Fred Gleason <fredg@paravelsystems.com>

* Changed the tree view widget on the main window of rdcastmananger(1)
	to be a table view.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-08-02 14:21:37 -04:00
parent 983f1394e5
commit 9c5c9a0b77
3 changed files with 8 additions and 4 deletions

View File

@ -24311,3 +24311,6 @@
2023-08-02 Fred Gleason <fredg@paravelsystems.com> 2023-08-02 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Last Played' column to the library list in rdlibrary(1). * Added a 'Last Played' column to the library list in rdlibrary(1).
* Added a 'Ingested On' column to the library list in rdlibrary(1). * Added a 'Ingested On' column to the library list in rdlibrary(1).
2023-08-02 Fred Gleason <fredg@paravelsystems.com>
* Changed the tree view widget on the main window of rdcastmananger(1)
to be a table view.

View File

@ -98,7 +98,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
// //
// Feed List // Feed List
// //
cast_feed_view=new RDTreeView(this); cast_feed_view=new RDTableView(this);
cast_feed_model=new RDFeedListModel(false,false,this); cast_feed_model=new RDFeedListModel(false,false,this);
cast_feed_model->setFont(font()); cast_feed_model->setFont(font());
cast_feed_model->setPalette(palette()); cast_feed_model->setPalette(palette());
@ -185,6 +185,7 @@ void MainWidget::modelResetData()
for(int i=0;i<cast_feed_model->columnCount();i++) { for(int i=0;i<cast_feed_model->columnCount();i++) {
cast_feed_view->resizeColumnToContents(i); cast_feed_view->resizeColumnToContents(i);
} }
cast_feed_view->resizeRowsToContents();
} }

View File

@ -2,7 +2,7 @@
// //
// A RSS Feed Management Utility for Rivendell. // A RSS Feed Management Utility for Rivendell.
// //
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as // it under the terms of the GNU General Public License version 2 as
@ -28,7 +28,7 @@
#include <rdfeedlistmodel.h> #include <rdfeedlistmodel.h>
#include <rdlog_line.h> #include <rdlog_line.h>
#include <rdmainwindow.h> #include <rdmainwindow.h>
#include <rdtreeview.h> #include <rdtableview.h>
#include <rdtempdirectory.h> #include <rdtempdirectory.h>
#include <rdwidget.h> #include <rdwidget.h>
#include <rdxsltengine.h> #include <rdxsltengine.h>
@ -59,7 +59,7 @@ class MainWidget : public RDMainWindow
void closeEvent(QCloseEvent *e); void closeEvent(QCloseEvent *e);
private: private:
RDTreeView *cast_feed_view; RDTableView *cast_feed_view;
RDFeedListModel *cast_feed_model; RDFeedListModel *cast_feed_model;
QPushButton *cast_open_button; QPushButton *cast_open_button;
QPushButton *cast_copy_button; QPushButton *cast_copy_button;