mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 06:58:01 +02:00
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:
parent
c654e24a29
commit
ef9e33ca12
@ -21115,3 +21115,6 @@
|
||||
based API.
|
||||
2021-02-14 Fred Gleason <fredg@paravelsystems.com>
|
||||
* 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).
|
||||
|
@ -94,7 +94,7 @@ DeckMon::DeckMon(QString station,unsigned channel,QWidget *parent)
|
||||
mon_event_label=new QLabel(this);
|
||||
mon_event_label->setFont(labelFont());
|
||||
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->setText("--");
|
||||
mon_event_timer=new QTimer(this);
|
||||
|
@ -20,9 +20,9 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qtranslator.h>
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
#include <QTranslator>
|
||||
|
||||
#include <rdprofile.h>
|
||||
#include <rdconf.h>
|
||||
@ -172,10 +172,10 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
//
|
||||
// Deck Monitors
|
||||
//
|
||||
catch_monitor_view=new Q3ScrollView(this,"",Qt::WNoAutoErase);
|
||||
catch_monitor_vbox=new VBox(catch_monitor_view);
|
||||
catch_monitor_area=new QScrollArea(this);
|
||||
catch_monitor_vbox=new VBox(catch_monitor_area);
|
||||
catch_monitor_vbox->setSpacing(2);
|
||||
catch_monitor_view->addChild(catch_monitor_vbox);
|
||||
catch_monitor_area->setWidget(catch_monitor_vbox);
|
||||
|
||||
QSignalMapper *mapper=new QSignalMapper(this);
|
||||
connect(mapper,SIGNAL(mapped(int)),this,SLOT(abortData(int)));
|
||||
@ -255,7 +255,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
}
|
||||
delete q;
|
||||
if(catch_monitor.size()==0) {
|
||||
catch_monitor_view->hide();
|
||||
catch_monitor_area->hide();
|
||||
}
|
||||
|
||||
//
|
||||
@ -1130,25 +1130,25 @@ void MainWidget::resizeEvent(QResizeEvent *e)
|
||||
return;
|
||||
}
|
||||
assert (e);
|
||||
assert (catch_monitor_view);
|
||||
assert (catch_monitor_area);
|
||||
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);
|
||||
catch_monitor_vbox->
|
||||
setGeometry(0,0,e->size().width()-25,32*catch_monitor.size());
|
||||
}
|
||||
else {
|
||||
catch_monitor_view->
|
||||
catch_monitor_area->
|
||||
setGeometry(10,10,e->size().width()-20,32*RDCATCH_MAX_VISIBLE_MONITORS);
|
||||
catch_monitor_vbox->
|
||||
setGeometry(0,0,e->size().width()-
|
||||
catch_monitor_view->verticalScrollBar()->geometry().width()-
|
||||
catch_monitor_area->verticalScrollBar()->geometry().width()-
|
||||
25,32*catch_monitor.size());
|
||||
}
|
||||
int deck_height=0;
|
||||
if (catch_monitor.size()>0){
|
||||
deck_height=catch_monitor_view->geometry().y()+
|
||||
catch_monitor_view->geometry().height();
|
||||
deck_height=catch_monitor_area->geometry().y()+
|
||||
catch_monitor_area->geometry().height();
|
||||
}
|
||||
catch_show_active_label->setGeometry(35,deck_height+4,155,20);
|
||||
catch_show_active_box->setGeometry(15,deck_height+7,15,15);
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QScrollArea>
|
||||
|
||||
#include <rdcatch_connect.h>
|
||||
#include <rdtableview.h>
|
||||
@ -118,7 +119,7 @@ class MainWidget : public RDWidget
|
||||
void LoadGeometry();
|
||||
void SaveGeometry();
|
||||
std::vector<CatchMonitor *> catch_monitor;
|
||||
Q3ScrollView *catch_monitor_view;
|
||||
QScrollArea *catch_monitor_area;
|
||||
VBox *catch_monitor_vbox;
|
||||
std::vector<CatchConnector *> catch_connect;
|
||||
QSqlDatabase *catch_db;
|
||||
|
Loading…
x
Reference in New Issue
Block a user