2021-07-27 Fred Gleason <fredg@paravelsystems.com>

* Added type icons to the 'Location' dropdowns in rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-07-27 13:16:17 -04:00
parent c189ff0b77
commit 341e3844b7
2 changed files with 14 additions and 0 deletions

View File

@@ -22090,3 +22090,5 @@
modularity.
2021-07-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a layout glitch in the 'Add Event' dialog in rdcatch(1).
2021-07-27 Fred Gleason <fredg@paravelsystems.com>
* Added type icons to the 'Location' dropdowns in rdcatch(1).

View File

@@ -23,6 +23,7 @@
#include <rdconf.h>
#include <rddb.h>
#include <rdescape_string.h>
#include <rdiconengine.h>
#include "eventwidget.h"
@@ -85,6 +86,10 @@ EventWidget::EventWidget(EventWidget::EventType type,QWidget *parent)
QString().sprintf(" : %dR",q->value(1).toInt()),
q->value(0).toString()+"\t"+
QString().sprintf("%d",q->value(1).toInt()));
d_location_box->
setItemData(d_location_box->count()-1,
rda->iconEngine()->
catchIcon(RDRecording::Recording),Qt::DecorationRole);
}
delete q;
break;
@@ -106,6 +111,10 @@ EventWidget::EventWidget(EventWidget::EventType type,QWidget *parent)
QString().sprintf(" : %dP",q->value(1).toInt()-128),
q->value(0).toString()+"\t"+
QString().sprintf("%d",q->value(1).toInt()-128));
d_location_box->
setItemData(d_location_box->count()-1,
rda->iconEngine()->
catchIcon(RDRecording::Playout),Qt::DecorationRole);
}
delete q;
break;
@@ -119,6 +128,9 @@ EventWidget::EventWidget(EventWidget::EventType type,QWidget *parent)
while(q->next()) {
d_location_box->
insertItem(d_location_box->count(),q->value(0).toString());
d_location_box->
setItemData(d_location_box->count()-1,
rda->iconEngine()->stationIcon(),Qt::DecorationRole);
}
delete q;
break;