31 connect(
stages[i].xBox, SIGNAL(valueChanged(
int)), &
boxXMapper, SLOT(map()));
32 connect(
stages[i].yBox, SIGNAL(valueChanged(
int)), &
boxYMapper, SLOT(map()));
83 colorLink = !!(qApp->keyboardModifiers() & Qt::AltModifier);
106 double val = (value -
min) / (
double)(max -
min);
114 return round(val * (max - min) + min);
119 return round(value / 100.) * 100;
121 return round(value / 50.) * 50;
125 #define SET_START if(isSetting) return; isSetting = true
126 #define SET_END isSetting = false
131 int value =
dpiRound(
dpiExp(slider->value(), slider->minimum(), slider->maximum()));
145 int value =
dpiRound(
dpiExp(slider->value(), slider->minimum(), slider->maximum()));
154 stages[index].xSlider->setValue(slider->value());
161 int value = box->value();
162 slider->setValue(
dpiLog(value, slider->minimum(), slider->maximum()));
176 int value = box->value();
177 slider->setValue(
dpiLog(value, slider->minimum(), slider->maximum()));
211 if(dialog.exec() != QDialog::Accepted)
213 QList<KbMode*> selectedModes = dialog.
selection();
214 foreach(
KbMode* mode, selectedModes){
KbMode * currentMode() const
const ModeList & modes() const
static void set(const QString &key, const QVariant &value)
bool dpiEnabled(int index) const
QColor dpiColor(int index) const
height liftHeight() const
bool dpiIndicator() const
QPoint dpi(int index) const
QList< KbMode * > selection()