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

@@ -2,7 +2,7 @@
//
// The Administrator Utility for Rivendell.
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// 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
@@ -54,11 +54,6 @@
#include "login.h"
#include "rdadmin.h"
//
// Icons
//
#include "../icons/rdadmin-22x22.xpm"
//
// Global Classes
//
@@ -86,16 +81,13 @@ MainWidget::MainWidget(RDConfig *config,RDWidget *parent)
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
//
// Create And Set Icon
//
admin_rivendell_map=new QPixmap(rdadmin_22x22_xpm);
setWindowIcon(*admin_rivendell_map);
setWindowIcon(rda->iconEngine()->applicationIcon(RDIconEngine::RdAdmin,22));
//
// Open the Database

View File

@@ -2,7 +2,7 @@
//
// The Administration Utility for Rivendell.
//
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// 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
@@ -18,14 +18,11 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef RDADMIN_H
#define RDADMIN_H
#include <qsize.h>
#include <qsizepolicy.h>
#include <qsqldatabase.h>
#include <qpixmap.h>
#include <rdwidget.h>
@@ -56,7 +53,6 @@ class MainWidget : public RDWidget
void ClearTables();
QString admin_username;
QString admin_password;
QPixmap *admin_rivendell_map;
QString admin_filter;
QString admin_group;
QString admin_schedcode;