2021-02-14 Fred Gleason <fredg@paravelsystems.com>

* Removed 'Q3Frame' dependencies from rdcatch(1).
	* Removed 'Q3ScrollView' dependencies from rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-14 12:56:10 -05:00
parent c654e24a29
commit ef9e33ca12
4 changed files with 19 additions and 15 deletions

View File

@@ -21115,3 +21115,6 @@
based API. based API.
2021-02-14 Fred Gleason <fredg@paravelsystems.com> 2021-02-14 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'CatchListView' widget from rdcatch(1). * Removed the 'CatchListView' widget from rdcatch(1).
2021-02-14 Fred Gleason <fredg@paravelsystems.com>
* Removed 'Q3Frame' dependencies from rdcatch(1).
* Removed 'Q3ScrollView' dependencies from rdcatch(1).

View File

@@ -94,7 +94,7 @@ DeckMon::DeckMon(QString station,unsigned channel,QWidget *parent)
mon_event_label=new QLabel(this); mon_event_label=new QLabel(this);
mon_event_label->setFont(labelFont()); mon_event_label->setFont(labelFont());
mon_event_label->setAlignment(Qt::AlignCenter); mon_event_label->setAlignment(Qt::AlignCenter);
mon_event_label->setFrameStyle(Q3Frame::Panel|Q3Frame::Sunken); mon_event_label->setFrameStyle(QFrame::Panel|QFrame::Sunken);
mon_event_label->setPalette(mon_dark_palette); mon_event_label->setPalette(mon_dark_palette);
mon_event_label->setText("--"); mon_event_label->setText("--");
mon_event_timer=new QTimer(this); mon_event_timer=new QTimer(this);

View File

@@ -20,9 +20,9 @@
#include <assert.h> #include <assert.h>
#include <qapplication.h> #include <QApplication>
#include <qmessagebox.h> #include <QMessageBox>
#include <qtranslator.h> #include <QTranslator>
#include <rdprofile.h> #include <rdprofile.h>
#include <rdconf.h> #include <rdconf.h>
@@ -172,10 +172,10 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
// //
// Deck Monitors // Deck Monitors
// //
catch_monitor_view=new Q3ScrollView(this,"",Qt::WNoAutoErase); catch_monitor_area=new QScrollArea(this);
catch_monitor_vbox=new VBox(catch_monitor_view); catch_monitor_vbox=new VBox(catch_monitor_area);
catch_monitor_vbox->setSpacing(2); catch_monitor_vbox->setSpacing(2);
catch_monitor_view->addChild(catch_monitor_vbox); catch_monitor_area->setWidget(catch_monitor_vbox);
QSignalMapper *mapper=new QSignalMapper(this); QSignalMapper *mapper=new QSignalMapper(this);
connect(mapper,SIGNAL(mapped(int)),this,SLOT(abortData(int))); connect(mapper,SIGNAL(mapped(int)),this,SLOT(abortData(int)));
@@ -255,7 +255,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
} }
delete q; delete q;
if(catch_monitor.size()==0) { if(catch_monitor.size()==0) {
catch_monitor_view->hide(); catch_monitor_area->hide();
} }
// //
@@ -1130,25 +1130,25 @@ void MainWidget::resizeEvent(QResizeEvent *e)
return; return;
} }
assert (e); assert (e);
assert (catch_monitor_view); assert (catch_monitor_area);
if(catch_monitor.size()<=RDCATCH_MAX_VISIBLE_MONITORS) { if(catch_monitor.size()<=RDCATCH_MAX_VISIBLE_MONITORS) {
catch_monitor_view-> catch_monitor_area->
setGeometry(10,10,e->size().width()-20,32*catch_monitor.size()+4); setGeometry(10,10,e->size().width()-20,32*catch_monitor.size()+4);
catch_monitor_vbox-> catch_monitor_vbox->
setGeometry(0,0,e->size().width()-25,32*catch_monitor.size()); setGeometry(0,0,e->size().width()-25,32*catch_monitor.size());
} }
else { else {
catch_monitor_view-> catch_monitor_area->
setGeometry(10,10,e->size().width()-20,32*RDCATCH_MAX_VISIBLE_MONITORS); setGeometry(10,10,e->size().width()-20,32*RDCATCH_MAX_VISIBLE_MONITORS);
catch_monitor_vbox-> catch_monitor_vbox->
setGeometry(0,0,e->size().width()- setGeometry(0,0,e->size().width()-
catch_monitor_view->verticalScrollBar()->geometry().width()- catch_monitor_area->verticalScrollBar()->geometry().width()-
25,32*catch_monitor.size()); 25,32*catch_monitor.size());
} }
int deck_height=0; int deck_height=0;
if (catch_monitor.size()>0){ if (catch_monitor.size()>0){
deck_height=catch_monitor_view->geometry().y()+ deck_height=catch_monitor_area->geometry().y()+
catch_monitor_view->geometry().height(); catch_monitor_area->geometry().height();
} }
catch_show_active_label->setGeometry(35,deck_height+4,155,20); catch_show_active_label->setGeometry(35,deck_height+4,155,20);
catch_show_active_box->setGeometry(15,deck_height+7,15,15); catch_show_active_box->setGeometry(15,deck_height+7,15,15);

View File

@@ -23,6 +23,7 @@
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox> #include <QComboBox>
#include <QScrollArea>
#include <rdcatch_connect.h> #include <rdcatch_connect.h>
#include <rdtableview.h> #include <rdtableview.h>
@@ -118,7 +119,7 @@ class MainWidget : public RDWidget
void LoadGeometry(); void LoadGeometry();
void SaveGeometry(); void SaveGeometry();
std::vector<CatchMonitor *> catch_monitor; std::vector<CatchMonitor *> catch_monitor;
Q3ScrollView *catch_monitor_view; QScrollArea *catch_monitor_area;
VBox *catch_monitor_vbox; VBox *catch_monitor_vbox;
std::vector<CatchConnector *> catch_connect; std::vector<CatchConnector *> catch_connect;
QSqlDatabase *catch_db; QSqlDatabase *catch_db;