- Timestamp:
- Dec 4, 2007, 6:46:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r633 r635 80 80 QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this); 81 81 QVBoxLayout *imageGroupBoxLayout = new QVBoxLayout(imageGroupBox); 82 QWidget *sliderBox = new QWidget ;83 84 QHBoxLayout *hSlider = new QHBoxLayout(sliderBox);82 QWidget *sliderBox = new QWidget(); 83 84 QHBoxLayout *hSliderLayout = new QHBoxLayout(sliderBox); 85 85 86 86 // qualityLabel = new QLabel( tr( "Image quality" ) ); 87 87 // imageGroupBoxLayout->addWidget(qualityLabel); 88 qualitySlider= new QSlider(Qt::Horizontal, this);88 qualitySlider= new QSlider(Qt::Horizontal,sliderBox); 89 89 #if QT_VERSION < 0x040000 90 90 qualitySlider->setMinValue(0); … … 97 97 #endif 98 98 qualitySlider->setValue(60); 99 hSlider ->addWidget(new QLabel("low",this));100 hSlider ->addWidget(qualitySlider);101 hSlider ->addWidget(new QLabel("Maximum",this));102 #if QT_VERSION >= 0x040000 103 sliderBox->setLayout(hSlider );99 hSliderLayout->addWidget(new QLabel("low",sliderBox)); 100 hSliderLayout->addWidget(qualitySlider); 101 hSliderLayout->addWidget(new QLabel("Maximum",sliderBox)); 102 #if QT_VERSION >= 0x040000 103 sliderBox->setLayout(hSliderLayout); 104 104 #endif 105 105 imageGroupBoxLayout->addWidget(sliderBox); … … 117 117 // transparencyEPS->setChecked( true ); 118 118 119 colorButton = new QRadioButton("Color",this);120 BWButton = new QRadioButton("Grayscale",this);121 122 119 QWidget * EPSWidgetGroupBox; // widget containing group button 123 120 QButtonGroup * EPSButtonGroupBox; // group button 124 #if QT_VERSION < 0x040000 121 122 123 #if QT_VERSION < 0x040000 124 colorButton = new QRadioButton("Color",EPSWidgetGroupBox); 125 BWButton = new QRadioButton("Grayscale",EPSWidgetGroupBox); 125 126 EPSButtonGroupBox = new QButtonGroup( 2,Qt::Vertical, tr("EPS options"),this); 126 127 EPSButtonGroupBox->insert(colorButton); 127 128 EPSButtonGroupBox->insert(BWButton); 128 129 EPSButtonGroupBox->setExclusive(true); 129 colorButton->setChecked( true );130 130 EPSWidgetGroupBox = EPSButtonGroupBox; 131 131 … … 133 133 EPSWidgetGroupBox = new QGroupBox(tr("EPS options")); 134 134 QVBoxLayout *EPSGroupBoxLayout = new QVBoxLayout(EPSWidgetGroupBox); 135 136 colorButton = new QRadioButton("Color",EPSWidgetGroupBox); 137 BWButton = new QRadioButton("Grayscale",EPSWidgetGroupBox); 138 135 139 EPSButtonGroupBox = new QButtonGroup(); 136 colorButton->setChecked( true );137 140 EPSButtonGroupBox->addButton(colorButton); 138 141 EPSButtonGroupBox->addButton(BWButton); … … 144 147 145 148 #endif 149 colorButton->setChecked( true ); 146 150 147 151 // EPSGroupBoxLayout->addWidget(transparencyEPS); … … 159 163 QVBoxLayout *transparencyGroupBoxLayout = new QVBoxLayout(transparencyGroupBox); 160 164 161 boxTransparency = new QCheckBox("Save transparency",t his);165 boxTransparency = new QCheckBox("Save transparency",transparencyGroupBox); 162 166 boxTransparency->setChecked( false ); 163 167 // boxTransparency->setEnabled(false); … … 172 176 173 177 // size box 174 QWidget* modifyAndRatioWidget = new QWidget ;178 QWidget* modifyAndRatioWidget = new QWidget(); 175 179 176 180 QHBoxLayout *modifyAndRatioLayout = new QHBoxLayout(modifyAndRatioWidget); 177 178 // original button179 original = new QRadioButton("Original",this);180 // modify and ratio181 modify = new QRadioButton("Modify",this);182 181 183 182 QWidget * sizeWidgetGroupBox; // widget containing group button … … 193 192 sizeButtonGroupBox->insert(modify); 194 193 sizeButtonGroupBox->setExclusive(true); 195 original->setChecked( true );196 194 sizeWidgetGroupBox = sizeButtonGroupBox; 197 195 sizeGroupBoxLayout = sizeWidgetGroupBox->layout(); … … 202 200 sizeGroupBoxLayout = new QVBoxLayout(sizeWidgetGroupBox); 203 201 sizeButtonGroupBox = new QButtonGroup(); 204 original->setChecked( true );205 202 206 203 original = new QRadioButton("Original"); … … 216 213 sizeWidgetGroupBox->setLayout(sizeGroupBoxLayout); 217 214 #endif 215 original->setChecked( true ); 218 216 219 217 … … 244 242 245 243 // height 246 heightWidget = new QWidget ;244 heightWidget = new QWidget(); 247 245 248 246 QHBoxLayout *heightLineLayout = new QHBoxLayout(heightWidget); … … 250 248 QString tmp; 251 249 252 heightLineLayout->addWidget(new QLabel("Height", this));253 height = new QLineEdit(tmp.setNum(originalHeight), this);250 heightLineLayout->addWidget(new QLabel("Height",heightWidget)); 251 height = new QLineEdit(tmp.setNum(originalHeight),heightWidget); 254 252 height->setMaxLength(5); 255 253 #if QT_VERSION < 0x040000 … … 270 268 271 269 // width 272 widthWidget = new QWidget ;270 widthWidget = new QWidget(); 273 271 274 272 QHBoxLayout *widthLineLayout = new QHBoxLayout(widthWidget); … … 279 277 widthLineLayout->addWidget(new QLabel("Width ",widthWidget)); 280 278 #endif 281 width = new QLineEdit(tmp.setNum(originalWidth), this);279 width = new QLineEdit(tmp.setNum(originalWidth),widthWidget); 282 280 width->setMaxLength(5); 283 281 #if QT_VERSION < 0x040000
Note: See TracChangeset
for help on using the changeset viewer.