2021-01-24 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDIconEngine::applicationIcon()' method.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-24 14:49:25 -05:00
parent d6be662898
commit be3fcfd4ef
30 changed files with 595 additions and 126 deletions

View File

@@ -45,11 +45,6 @@
RDAudioPort *rdaudioport_conf;
RDCartDialog *panel_cart_dialog;
//
// Icons
//
#include "../icons/rdpanel-22x22.xpm"
MainWidget::MainWidget(RDConfig *c,QWidget *parent)
: RDWidget(c,parent)
{
@@ -64,12 +59,6 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
setMaximumSize(sizeHint());
#endif // RESIZABLE
//
// Create Icons
//
lib_rivendell_map=new QPixmap(rdpanel_22x22_xpm);
setWindowIcon(*lib_rivendell_map);
//
// Open the Database
//
@@ -78,6 +67,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
QMessageBox::critical(this,"RDPanel - "+tr("Error"),err_msg);
exit(1);
}
setWindowIcon(rda->iconEngine()->applicationIcon(RDIconEngine::RdPanel,22));
//
// Read Command Options