Torus::Torus(GLfloat inner, GLfloat outer, GLint slices, GLint loops) { setInner(inner); setOuter(outer); setSlices(slices); setLoops(loops); }
void ControlDoublePrivate::set(double value, QObject* pSender) { // If the behavior says to ignore the set, ignore it. QSharedPointer<ControlNumericBehavior> pBehavior = m_pBehavior; if (!pBehavior.isNull() && !pBehavior->setFilter(&value)) { return; } if (m_confirmRequired) { emit(valueChangeRequest(value)); } else { setInner(value, pSender); } }
SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) { setupUi(this); qDebug()<< settings.fileName(); loadSettings(); connect (penPB,SIGNAL(clicked()),this, SLOT( setPenColor())); connect (brushPB,SIGNAL(clicked()),this, SLOT( setBrushColor())); ///@todo create own button to change color //connect (sheetPenPB,SIGNAL(clicked()),this, SLOT( setMyColor())); //connect (sheetBrushPB,SIGNAL(clicked()),this, SLOT( setMyColor())); connect (sheetPenPB,SIGNAL(clicked()),this, SLOT( setSheetPenColor())); connect (sheetBrushPB,SIGNAL(clicked()),this, SLOT( setSheetBrushColor())); connect (setTextPB,SIGNAL(clicked()),this, SLOT( setTextFont())); connect (texturePB,SIGNAL(clicked()),this, SLOT( setInner())); connect (okButton,SIGNAL(clicked()),this, SLOT( save())); }
void ControlDoublePrivate::setAndConfirm(double value, QObject* pSender) { setInner(value, pSender); }
void BoxContent::setInner(object_ptr<TWidget> inner) { setInner(std::move(inner), st::boxLayerScroll); }