From 8daee5ab8d878fb1819ba6b615e6ee96a4a11742 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Mar 2006 19:14:16 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 0978120..e813d00 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -186,7 +186,7 @@ void MainWindow::createGui() QGridLayout *g1 = new QGridLayout(); g0->addLayout(g1, 0, 0); - QGroupBox *gb = new QGroupBox(this); + QGroupBox *gb = new QGroupBox(); /* gb->setColumns(1); gb->setInsideMargin(HISTORY_LIST_MARGIN); @@ -209,7 +209,7 @@ void MainWindow::createGui() g1->margin() * 5 - g0->margin() * 3; - img_recedge = new QLabel(this); + img_recedge = new QLabel(); QPalette palette; palette.setColor(img_recedge->backgroundRole(), QColor(160,160,160)); img_recedge->setPalette(palette); @@ -218,11 +218,11 @@ void MainWindow::createGui() img_live = new VideoWidget(img_recedge, camera); img_live->setFixedSize(output_width - 20, output_height - 20); img_live->move(10,10); - g1->addWidget( img_recedge, 0, 0, 0, 3, Qt::AlignHCenter); + g1->addWidget( img_recedge, 0, 0, 1, 3, Qt::AlignHCenter); // CPR/NAME LABEL + CPR button lbl_cpr = createLabel("", output_width - (int)(BUTTON_WIDTH * unit), BUTTON_HEIGHT); - g1->addWidget( lbl_cpr, 1, 1, 0, 2); + g1->addWidget( lbl_cpr, 1, 0, 1, 2); btn_cpr = createButton(""); btn_cpr->setFocus(); @@ -233,7 +233,7 @@ void MainWindow::createGui() g1->addWidget(btn_cpr, 1, 3); lbl_name = createLabel("", output_width, (int)(BUTTON_HEIGHT * 0.8f)); - g1->addWidget( lbl_name, 2, 2, 0, 3); + g1->addWidget( lbl_name, 2, 0, 1, 2); /* btn_clear = createButton(""); btn_clear->setPixmap(*img_clear); @@ -292,7 +292,7 @@ void MainWindow::createGui() status = new QStatusBar(this); status->setSizeGripEnabled(FALSE); // status->setFont(QFont( "Sans Serif", (int)(unit * height / 3), QFont::Normal )); - g0->addWidget(status, 4, 4, 0, 1); + g0->addWidget(status, 4, 0, 4, 1); lbl_recordtime = createLabel("", BUTTON_WIDTH, 1); lbl_recordtime->setFixedWidth((int)(BUTTON_WIDTH * unit) + @@ -302,7 +302,7 @@ void MainWindow::createGui() status->addWidget(lbl_recordtime, 0); // About button - btn_about = new QPushButton("", this); + btn_about = new QPushButton(); btn_about->setFixedHeight((int)unit); pixmap.fromImage(*img_logo); btn_about->setIcon(pixmap); -- cgit v1.2.3