From fed5c1dbf6a6c01719efc686a3d966f810ab0ade Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 24 Mar 2005 16:47:23 +0000 Subject: Made the configurationfile parser --- src/cprquerydialog.cc | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'src/cprquerydialog.cc') diff --git a/src/cprquerydialog.cc b/src/cprquerydialog.cc index 23f508c..8ae2c60 100644 --- a/src/cprquerydialog.cc +++ b/src/cprquerydialog.cc @@ -34,9 +34,8 @@ CPRQueryDialog::CPRQueryDialog(QLabel *lcpr, QLabel *lname, QWidget *parent, - const char *name, - bool modal) - : QDialog( parent, name, modal) + const char *name) + : QDialog(parent, name, TRUE) { MiavConfig cfg("cprquery.conf"); @@ -53,28 +52,11 @@ CPRQueryDialog::CPRQueryDialog(QLabel *lcpr, cprSocket = new QSocket(this); connect(cprSocket, SIGNAL(readyRead()), SLOT(cprSocket_readyRead())); connect(cprSocket, SIGNAL(connected()), SLOT(cprSocket_connected())); - /* - - // connect(btn_cpr, SIGNAL(clicked()), SLOT(bcancel_clicked())); - - //show(); - //run(0); - */ lbl_cpr->setText("Indtast CPR"); // Generate input buttons - //digits = pos; - - QHBoxLayout *bl = new QHBoxLayout(this); - /* - QFrame *topf = new QFrame(this); - topf->setFrameStyle(QFrame::Box | QFrame::Raised); - topf->setLineWidth(3); - bl->addWidget(topf); - */ QGridLayout *gl = new QGridLayout(this, 4, 3, 10, 2); - bl->addLayout(gl); QButton *b1 = createButton(this, "1", 1); QButton *b2 = createButton(this, "2", 2); @@ -102,7 +84,7 @@ CPRQueryDialog::CPRQueryDialog(QLabel *lcpr, gl->addWidget(bbs, 3,2); gl->addWidget(bca, 3,0); - /* Setup signals */ + // Setup signals connect(b1, SIGNAL(clicked()), SLOT(b_1_clicked())); connect(b2, SIGNAL(clicked()), SLOT(b_2_clicked())); connect(b3, SIGNAL(clicked()), SLOT(b_3_clicked())); -- cgit v1.2.3