void Interface::connection(void) { QObject::connect(clearButton, SIGNAL(clicked()), this, SLOT(clearImage())); QObject::connect(saveButton, SIGNAL(clicked()), this, SLOT(saveImage())); QObject::connect(evaluateButton, SIGNAL(clicked()), this, SLOT(evaluateImage())); QObject::connect(penWidthSlider, SIGNAL(sliderReleased()), this, SLOT(penWidthChanged())); }
void PencilTool::keyReleaseEvent(QKeyEvent *event) { #ifdef K_DEBUG #ifdef Q_OS_WIN qDebug() << "[PencilTool::keyReleaseEvent()]"; #else T_FUNCINFO; #endif #endif Q_UNUSED(event); if (k->resize) { k->resize = false; k->scene->removeItem(k->penCircle); TCONFIG->beginGroup("BrushParameters"); TCONFIG->setValue("Thickness", k->penWidth); emit penWidthChanged(k->penWidth); } }
void RoundedRect::setpenWidth(int arg) { if (m_penWidth != arg) { m_penWidth = arg; emit penWidthChanged(arg); } }
void ReportLine::setpenWidth(int arg) { if (m_penWidth != arg) { m_penWidth = arg; emit penWidthChanged(arg); } }