Changeset View
Changeset View
Standalone View
Standalone View
kcmkgamma/gammactrl.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 32 | { | |||
---|---|---|---|---|---|
43 | mgamma = mingamma; | 43 | mgamma = mingamma; | ||
44 | oldpos = setslider; | 44 | oldpos = setslider; | ||
45 | gchannel = channel; | 45 | gchannel = channel; | ||
46 | xv = xvid; | 46 | xv = xvid; | ||
47 | 47 | | |||
48 | QHBoxLayout *layout = new QHBoxLayout(this); | 48 | QHBoxLayout *layout = new QHBoxLayout(this); | ||
49 | 49 | | |||
50 | slider = new QSlider(Qt::Horizontal, this); | 50 | slider = new QSlider(Qt::Horizontal, this); | ||
51 | slider->setFixedHeight(24); | | |||
52 | slider->setTickPosition(QSlider::TicksBelow); | 51 | slider->setTickPosition(QSlider::TicksBelow); | ||
53 | slider->setRange(0, maxslider); | 52 | slider->setRange(0, maxslider); | ||
54 | slider->setTickInterval(2); | 53 | slider->setTickInterval(2); | ||
55 | slider->setValue(setslider); | 54 | slider->setValue(setslider); | ||
56 | layout->addWidget(slider); | 55 | layout->addWidget(slider); | ||
57 | connect(slider, SIGNAL(valueChanged(int)), SLOT(setGamma(int))); | 56 | connect(slider, SIGNAL(valueChanged(int)), SLOT(setGamma(int))); | ||
58 | connect(slider, SIGNAL(sliderPressed()), SLOT(pressed())); | 57 | connect(slider, SIGNAL(sliderPressed()), SLOT(pressed())); | ||
59 | 58 | | |||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |