summaryrefslogtreecommitdiff
authorzecke <zecke>2005-03-01 20:04:21 (UTC)
committer zecke <zecke>2005-03-01 20:04:21 (UTC)
commitbb6be9cbe75892a7cc1d7c234f1c48023f9c9592 (patch) (side-by-side diff)
tree0d517350be5926a2ac8bc5dc4c1bbf61f734ca2f
parent09c95ae28f4500ae0bb81f6ed305f877950626e8 (diff)
downloadopie-bb6be9cbe75892a7cc1d7c234f1c48023f9c9592.zip
opie-bb6be9cbe75892a7cc1d7c234f1c48023f9c9592.tar.gz
opie-bb6be9cbe75892a7cc1d7c234f1c48023f9c9592.tar.bz2
Allow to wait 6 seconds (instead of three) when initialising the modem
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/modemcmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/modemcmds.cpp b/noncore/settings/networksettings/ppp/modemcmds.cpp
index e797795..3d15b96 100644
--- a/noncore/settings/networksettings/ppp/modemcmds.cpp
+++ b/noncore/settings/networksettings/ppp/modemcmds.cpp
@@ -28,97 +28,97 @@
#include <qslider.h>
#include <qbuttongroup.h>
#include <qscrollview.h>
#include <qapplication.h>
#include <stdlib.h>
#include "modemcmds.h"
#include "pppdata.h"
#define ADJUSTEDIT(e) //e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); /*e->setFixedHeight(e->sizeHint().height());*/ e->setText(""); e->setMaxLength(MODEMSTR_SIZE);
// a little trick to make the label look like a disabled lineedit
#define FORMATSLIDERLABEL(l) //l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(QLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(QFrame::WinPanel|QFrame::Sunken); l->setLineWidth(2);
ModemCommands::ModemCommands(PPPData *pd, QWidget *parent, const char *name , bool modal, WFlags f)
: QDialog( parent, name, modal, f ), _pppdata(pd)
{
setCaption(QObject::tr("Edit Modem Commands"));
const int GRIDROWS = 22;
int row = 0;
QVBoxLayout *main = new QVBoxLayout( this );
QScrollView *sv = new QScrollView( this );
QWidget *mainW = new QWidget( sv->viewport() );
sv->setResizePolicy( QScrollView::AutoOneFit );
sv->setHScrollBarMode( QScrollView::AlwaysOff );
sv->setFrameShape( QFrame::NoFrame );
sv->addChild( mainW );
main->addWidget( sv );
// evil hack
mainW->setMaximumWidth( QApplication::desktop()->width() - 10 );
// toplevel layout
QVBoxLayout *tl = new QVBoxLayout( mainW, 10, 4);
// add grid + frame
QGridLayout *l1 = new QGridLayout(GRIDROWS, 4);
tl->addLayout(l1);
box = new QGroupBox(mainW, "box");
box->setMargin( 0 );
l1->addMultiCellWidget(box, row++, GRIDROWS, 0, 3);
// put slider and label into a separate H-Box
QHBoxLayout *l2 = new QHBoxLayout;
l1->addLayout(l2, row, 2);
lpreinitslider = new QLabel("MMMM", mainW);
FORMATSLIDERLABEL(lpreinitslider);
- QSlider *preinitslider = new QSlider(0, 300, 1, 0,
+ QSlider *preinitslider = new QSlider(0, 600, 1, 0,
QSlider::Horizontal, mainW);
// preinitslider->setFixedHeight(preinitslider->sizeHint().height());
connect(preinitslider, SIGNAL(valueChanged(int)),
lpreinitslider, SLOT(setNum(int)));
l2->addWidget(lpreinitslider, 0);
l2->addWidget(preinitslider, 1);
lpreinit = new QLabel(QObject::tr("Pre-init delay (sec/100):"), mainW);
l1->addWidget(lpreinit, row++, 1);
for(int i = 0; i < PPPData::NumInitStrings; i++) {
initstr[i] = new QLineEdit(mainW);
QLabel *initLabel = new QLabel(QObject::tr("Initialization string %1:").arg(i + 1),
mainW);
ADJUSTEDIT(initstr[i]);
l1->addWidget(initLabel, row, 1);
l1->addWidget(initstr[i], row++, 2);
}
QHBoxLayout *l3 = new QHBoxLayout;
l1->addLayout(l3, row, 2);
linitslider = new QLabel("MMMM", mainW);
FORMATSLIDERLABEL(linitslider);
QSlider *initslider = new QSlider(1, 300, 1, 0,
QSlider::Horizontal, mainW);
// initslider->setFixedHeight(initslider->sizeHint().height());
connect(initslider, SIGNAL(valueChanged(int)),
linitslider, SLOT(setNum(int)));
l3->addWidget(linitslider, 0);
l3->addWidget(initslider, 1);
label3 = new QLabel(QObject::tr("Post-init delay (sec/100):"), mainW);
l1->addWidget(label3, row++, 1);
/* Set ATS11 (Dial tone duration) between 0-255 (Default ~ 70) */
QHBoxLayout *l4 = new QHBoxLayout;
l1->addLayout(l4, row, 2);
ldurationslider = new QLabel("MMMM", mainW);
FORMATSLIDERLABEL(ldurationslider);
QSlider *durationslider = new QSlider(1, 255, 1, 0,
QSlider::Horizontal, mainW);
// durationslider->setFixedHeight(durationslider->sizeHint().height());
connect(durationslider, SIGNAL(valueChanged(int)),
ldurationslider, SLOT(setNum(int)));
l4->addWidget(ldurationslider, 0);
l4->addWidget(durationslider, 1);
lduration = new QLabel(QObject::tr("Dialing speed (sec/100):"), mainW);