Exemplo n.º 1
0
void
TimeEditor::textChanged()
{
	int v = atoi(text.text().toStdString().c_str());
	slider.setValue(v);
	emit newTimeStep(v);
}
Exemplo n.º 2
0
Cdata::Cdata(vector<Cparticle> &in_ps) : ps(in_ps) {
    //make sure key type is correct
    if (sizeof(keytype)*8<KEYSIZE) {
       cout << "Size of keytype not big enough for KEYSIZE (" << KEYSIZE << "). sizeof(keytype)*8="<<sizeof(keytype)*8<<endl;
       exit(-1);
    }
    newTimeStep();
}
Exemplo n.º 3
0
void
TimeEditor::sliderChanged(int v)
{
	text.setText(QString::number(v));
	emit newTimeStep(v);
}