Changeset 641 for trunk/geant4/visualization/OpenGL
- Timestamp:
- Dec 6, 2007, 6:43:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r640 r641 74 74 // global layout 75 75 QVBoxLayout* globalVLayout = new QVBoxLayout(this); 76 76 77 77 78 78 if ((format == "jpg") || … … 80 80 81 81 QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this); 82 QVBoxLayout *imageGroupBoxLayout = new QVBoxLayout(imageGroupBox); 83 QWidget *sliderBox = new QWidget(); 84 85 QHBoxLayout *hSliderLayout = new QHBoxLayout(sliderBox); 86 87 // qualityLabel = new QLabel( tr( "Image quality" ) ); 88 // imageGroupBoxLayout->addWidget(qualityLabel); 89 qualitySlider= new QSlider(Qt::Horizontal,sliderBox); 82 QHBoxLayout *imageGroupBoxLayout = new QHBoxLayout(imageGroupBox); 83 84 85 qualitySlider= new QSlider(Qt::Horizontal,imageGroupBox); 90 86 #if QT_VERSION < 0x040000 91 87 qualitySlider->setMinValue(0); … … 98 94 #endif 99 95 qualitySlider->setValue(60); 100 hSliderLayout->addWidget(new QLabel("low",sliderBox)); 101 hSliderLayout->addWidget(qualitySlider); 102 hSliderLayout->addWidget(new QLabel("Maximum",sliderBox)); 103 #if QT_VERSION >= 0x040000 104 sliderBox->setLayout(hSliderLayout); 105 #endif 106 imageGroupBoxLayout->addWidget(sliderBox); 107 96 imageGroupBoxLayout->addWidget(new QLabel("low",imageGroupBox)); 97 imageGroupBoxLayout->addWidget(qualitySlider); 98 imageGroupBoxLayout->addWidget(new QLabel("Maximum",imageGroupBox)); 99 108 100 #if QT_VERSION >= 0x040000 109 101 imageGroupBox->setLayout(imageGroupBoxLayout); 110 102 #endif 103 104 #if QT_VERSION >= 0x040000 105 imageGroupBox->setLayout(imageGroupBoxLayout); 106 #endif 107 111 108 globalVLayout->addWidget(imageGroupBox); 112 109 } 113 110 111 114 112 // FIXME : L. Garnier 4/12/07 115 113 // This is not working for PS and PDF images, it does nothing. … … 182 180 183 181 QWidget * sizeWidget = new QWidget(this); // widget containing group button 184 Q Layout *sizeWidgetLayout = new QVBoxLayout(sizeWidget);182 QVBoxLayout * sizeWidgetLayout = new QVBoxLayout(sizeWidget); 185 183 186 184 // original and modify radiobuttons … … 200 198 201 199 QGroupBox * sizeGroupBox = new QGroupBox(tr("Size")); 202 Q Layout *sizeGroupBoxLayout = new QVBoxLayout(sizeGroupBox);200 QVBoxLayout *sizeGroupBoxLayout = new QVBoxLayout(sizeGroupBox); 203 201 QButtonGroup * sizeButtonGroupBox = new QButtonGroup(); 204 202 … … 309 307 // button ok/cancel box 310 308 311 Q GroupBox *buttonGroupBox = new QGroupBox(this);312 313 QHBoxLayout *button GroupBoxLayout = new QHBoxLayout(buttonGroupBox);314 315 buttonOk = new QPushButton( tr( "&OK" ),button GroupBox );309 QWidget *buttonBox = new QWidget(this); 310 311 QHBoxLayout *buttonBoxLayout = new QHBoxLayout(buttonBox); 312 313 buttonOk = new QPushButton( tr( "&OK" ),buttonBox ); 316 314 buttonOk->setAutoDefault( TRUE ); 317 315 buttonOk->setDefault( TRUE ); 318 button GroupBoxLayout->addWidget(buttonOk);319 320 buttonCancel = new QPushButton( tr( "&Cancel" ),button GroupBox );316 buttonBoxLayout->addWidget(buttonOk); 317 318 buttonCancel = new QPushButton( tr( "&Cancel" ),buttonBox ); 321 319 buttonCancel->setAutoDefault( TRUE ); 322 buttonGroupBoxLayout->addWidget(buttonCancel); 323 324 #if QT_VERSION >= 0x040000 325 buttonGroupBox->setLayout(buttonGroupBoxLayout); 326 #endif 327 globalVLayout->addWidget(buttonGroupBox); 320 buttonBoxLayout->addWidget(buttonCancel); 321 322 #if QT_VERSION >= 0x040000 323 buttonBox->setLayout(buttonBoxLayout); 324 #endif 325 globalVLayout->addWidget(buttonBox); 326 328 327 329 328
Note: See TracChangeset
for help on using the changeset viewer.