mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Removed all CVS tags. * Removed 'const char *name' parameter from all QObject contructors.
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
##
|
||||
## Automake.am for utils/rdhpiinfo
|
||||
##
|
||||
## (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
|
||||
##
|
||||
## $Id: Makefile.am,v 1.4.8.1 2012/11/29 01:37:38 cvs Exp $
|
||||
## (C) Copyright 2002-2007,2016 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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Change the mode of an AudioScience Adapter.
|
||||
//
|
||||
// (C) Copyright 2002-2014 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2014,2016 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
|
||||
@@ -25,8 +25,8 @@
|
||||
#include <change_mode.h>
|
||||
|
||||
ChangeMode::ChangeMode(unsigned short card,unsigned short type,int mode,
|
||||
QWidget *parent,const char *name)
|
||||
: QDialog(parent,name,true)
|
||||
QWidget *parent)
|
||||
: QDialog(parent,"",true)
|
||||
{
|
||||
QString str;
|
||||
|
||||
@@ -147,7 +147,7 @@ ChangeMode::ChangeMode(unsigned short card,unsigned short type,int mode,
|
||||
//
|
||||
// Cancel Button
|
||||
//
|
||||
QPushButton *cancel_button=new QPushButton(this,"cancel_button");
|
||||
QPushButton *cancel_button=new QPushButton(this);
|
||||
cancel_button->setGeometry(sizeHint().width()-70,sizeHint().height()-40,
|
||||
60,30);
|
||||
cancel_button->setFont(font);
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
//
|
||||
// Change the mode of an AudioScience Adapter
|
||||
//
|
||||
// (C) Copyright 2002-2005 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: change_mode.h,v 1.5 2011/05/18 14:38:14 cvs Exp $
|
||||
// (C) Copyright 2002-2005,2016 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
|
||||
@@ -33,13 +31,12 @@
|
||||
#define HPI_ADAPTER_MODE_MULTICHANNEL (9)
|
||||
#endif
|
||||
|
||||
|
||||
class ChangeMode : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ChangeMode(unsigned short card,unsigned short type,int mode,
|
||||
QWidget *parent=0,const char *name=0);
|
||||
QWidget *parent=0);
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for display information on ASI cards.
|
||||
//
|
||||
// (C) Copyright 2002-2014 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2014,2016 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
|
||||
@@ -34,8 +34,8 @@
|
||||
#include "change_mode.h"
|
||||
#include "virtdetails.h"
|
||||
|
||||
MainWidget::MainWidget(QWidget *parent,const char *name)
|
||||
:QWidget(parent,name)
|
||||
MainWidget::MainWidget(QWidget *parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
setCaption(tr("RDHPIInfo")+" v"+VERSION);
|
||||
|
||||
@@ -357,8 +357,7 @@ void MainWidget::changeModeData()
|
||||
QString str;
|
||||
hpi_err_t hpi_err;
|
||||
char hpi_text[100];
|
||||
ChangeMode *dialog=new ChangeMode(card,hpi_type[card],hpi_mode[card],
|
||||
this,"change_mode_dialog");
|
||||
ChangeMode *dialog=new ChangeMode(card,hpi_type[card],hpi_mode[card],this);
|
||||
if((mode=dialog->exec())<0) {
|
||||
delete dialog;
|
||||
return;
|
||||
@@ -474,7 +473,7 @@ int main(int argc,char *argv[])
|
||||
//
|
||||
// Start Event Loop
|
||||
//
|
||||
MainWidget *w=new MainWidget(NULL,"main");
|
||||
MainWidget *w=new MainWidget();
|
||||
a.setMainWidget(w);
|
||||
w->setGeometry(QRect(QPoint(0,0),w->sizeHint()));
|
||||
w->show();
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for display info about ASI cards.
|
||||
//
|
||||
// (C) Copyright 2002-2005 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: rdhpiinfo.h,v 1.5.6.1 2012/05/04 14:56:23 cvs Exp $
|
||||
// (C) Copyright 2002-2005,2016 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,7 +18,6 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
|
||||
#ifndef RDHPIINFO_H
|
||||
#define RDHPIINFO_H
|
||||
|
||||
@@ -43,7 +40,7 @@ class MainWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWidget(QWidget *parent=0,const char *name=0);
|
||||
MainWidget(QWidget *parent=0);
|
||||
~MainWidget();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
Reference in New Issue
Block a user