mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-04-24 15:03:44 +02:00
2019-10-01 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDDialog' class. * Added an 'RDWidget' class. * Refactored rdadmin(1) to use 'RDDialog' and 'RDWidget' base classes.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Display help for audio ports (edit_audios.*)
|
||||
//
|
||||
// (C) Copyright 2006-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2006-2019 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
|
||||
@@ -20,33 +20,25 @@
|
||||
|
||||
#include <qpushbutton.h>
|
||||
|
||||
#include <help_audios.h>
|
||||
#include "help_audios.h"
|
||||
|
||||
HelpAudioPorts::HelpAudioPorts(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
: RDDialog(parent)
|
||||
{
|
||||
setModal(true);
|
||||
|
||||
//
|
||||
// Fix the Window Size
|
||||
//
|
||||
setMinimumWidth(sizeHint().width());
|
||||
setMaximumWidth(sizeHint().width());
|
||||
setMinimumHeight(sizeHint().height());
|
||||
setMaximumHeight(sizeHint().height());
|
||||
setMinimumSize(sizeHint());
|
||||
setMaximumSize(sizeHint());
|
||||
|
||||
setWindowTitle("RDAdmin - "+tr("Audio Ports Help"));
|
||||
|
||||
//
|
||||
// Create Fonts
|
||||
//
|
||||
QFont button_font=QFont("Helvetica",14,QFont::Bold);
|
||||
button_font.setPixelSize(14);
|
||||
|
||||
// Help Text
|
||||
help_edit=new Q3TextEdit(this,"help_edit");
|
||||
help_edit->
|
||||
setGeometry(10,10,sizeHint().width()-20,sizeHint().height()-70);
|
||||
setGeometry(10,10,sizeHint().width()-20,sizeHint().height()-80);
|
||||
help_edit->setTextFormat(Qt::RichText);
|
||||
help_edit->setReadOnly(true);
|
||||
// FIXME: add context sensitive help for other options on the Audio Port screen.
|
||||
@@ -69,7 +61,7 @@ HelpAudioPorts::HelpAudioPorts(QWidget *parent)
|
||||
//
|
||||
QPushButton *button=new QPushButton(this);
|
||||
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,80,50);
|
||||
button->setFont(button_font);
|
||||
button->setFont(buttonFont());
|
||||
button->setText(tr("&Close"));
|
||||
connect(button,SIGNAL(clicked()),this,SLOT(closeData()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user