mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-14 16:46:30 +01:00
2018-08-07 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'pam_rd' plug-in. * Removed rdchunk(1). * Upgraded Qt3 to Qt4.
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
#include <qapplication.h>
|
||||
#include <qwindowsstyle.h>
|
||||
#include <qmessagebox.h>
|
||||
//Added by qt3to4:
|
||||
#include <QCloseEvent>
|
||||
#include <QResizeEvent>
|
||||
#include <QLabel>
|
||||
|
||||
#include <rdcmd_switch.h>
|
||||
|
||||
@@ -80,12 +84,12 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
// Available Devices
|
||||
//
|
||||
alsa_system_list=new QListBox(this);
|
||||
alsa_system_list=new Q3ListBox(this);
|
||||
alsa_system_list->setFont(font);
|
||||
alsa_system_label=
|
||||
new QLabel(alsa_system_list,tr("Available Sound Devices"),this);
|
||||
alsa_system_label->setFont(label_font);
|
||||
alsa_system_label->setAlignment(AlignLeft|AlignVCenter);
|
||||
alsa_system_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Up Button
|
||||
@@ -103,11 +107,11 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
// Selected Devices
|
||||
//
|
||||
alsa_config_list=new QListBox(this);
|
||||
alsa_config_list=new Q3ListBox(this);
|
||||
alsa_config_list->setFont(font);
|
||||
alsa_config_label=new QLabel(alsa_config_list,tr("Active Sound Devices"),this);
|
||||
alsa_config_label->setFont(label_font);
|
||||
alsa_config_label->setAlignment(AlignLeft|AlignVCenter);
|
||||
alsa_config_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Save Button
|
||||
@@ -254,7 +258,7 @@ void MainWidget::closeEvent(QCloseEvent *e)
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::LoadList(QListBox *system,QListBox *config)
|
||||
void MainWidget::LoadList(Q3ListBox *system,Q3ListBox *config)
|
||||
{
|
||||
for(unsigned i=0;i<alsa_alsa->cards();i++) {
|
||||
for(int j=0;j<alsa_alsa->pcmDevices(i);j++) {
|
||||
@@ -297,7 +301,7 @@ bool MainWidget::PcmUnused(int card,int device)
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::MoveItem(QListBox *src,QListBox *dest)
|
||||
void MainWidget::MoveItem(Q3ListBox *src,Q3ListBox *dest)
|
||||
{
|
||||
AlsaItem *item=(AlsaItem *)src->selectedItem();
|
||||
if(item==NULL) {
|
||||
|
||||
Reference in New Issue
Block a user