repository for casafeather app
Source
67
67
ui.planeMaxLabel->setText("");
68
68
ui.planeLineEdit->setText( "0");
69
69
QButtonGroup* bGroup = new QButtonGroup( this );
70
70
bGroup->addButton( ui.singlePlaneRadio );
71
71
bGroup->addButton( ui.averagedPlaneRadio );
72
72
connect( ui.singlePlaneRadio, SIGNAL(clicked()), this, SLOT(planeModeChanged()) );
73
73
connect( ui.averagedPlaneRadio, SIGNAL(clicked()), this, SLOT(planeModeChanged()) );
74
74
QIntValidator* planeValidator = new QIntValidator( 0, std::numeric_limits<int>::max(),this );
75
75
ui.planeLineEdit->setValidator( planeValidator );
76
76
QPalette palette = ui.planeMaxLabel->palette();
77
+
#if QT_VERSION >= 0x060000
78
+
palette.setColor(QPalette::WindowText, Qt::red );
79
+
#else
77
80
palette.setColor(QPalette::Foreground, Qt::red );
81
+
#endif
78
82
ui.planeMaxLabel->setPalette( palette );
79
83
80
84
ui.lineThicknessSpinBox->setMinimum( 1 );
81
85
ui.lineThicknessSpinBox->setMaximum( 5 );
82
86
ui.dotSizeSpinBox->setMinimum( 1 );
83
87
ui.dotSizeSpinBox->setMaximum( 10 );
84
88
85
89
//xAxis Units
86
90
QButtonGroup* xAxisGroup = new QButtonGroup( this );
87
91
xAxisGroup->addButton( ui.axisUVRadio );