Esempio n. 1
0
Torus::Torus(GLfloat inner, GLfloat outer, GLint slices, GLint loops)
{
	setInner(inner);
	setOuter(outer);
	setSlices(slices);
	setLoops(loops);
}
Esempio n. 2
0
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);
    }
}
Esempio n. 3
0
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()));
 }
Esempio n. 4
0
void ControlDoublePrivate::setAndConfirm(double value, QObject* pSender) {
    setInner(value, pSender);
}
Esempio n. 5
0
void BoxContent::setInner(object_ptr<TWidget> inner) {
	setInner(std::move(inner), st::boxLayerScroll);
}