Esempio n. 1
0
void	FakePlayer::play()
{
  duration = optionValue["duration"].toInt();
  static bool first = true;
  if (first)
            connect(&timer, SIGNAL(timeout()), this, SLOT(newTick()));
  first = false;
  emit played();
  timer.start(interval);
}
Esempio n. 2
0
colorizer::colorizer(QWidget *parent):QWidget(parent)
{
	QSettings settings(QSettings::IniFormat, QSettings::UserScope, "$h@d0WFoXx","Julia");
	QDesktopWidget *desktop = new QDesktopWidget;
	move(desktop->screenGeometry().width()/2 - 390, desktop->screenGeometry().height()/2 + 100);
	restoreGeometry(settings.value("colorizer/geometry").toByteArray());
	img = QImage(QSize(40,210), QImage::Format_RGB32);
	inMotion = false;
	ticks.append(new check(this));
	ticks[0]->move(30,0);
	ticks[0]->setFixed(true);
	
	ticks.append(new check(this));
	ticks[1]->move(30,200);
	ticks[1]->setColor(QColor(Qt::blue));
	ticks[1]->setFixed(true);
	
	setFixedSize(40,210);
	connect(ticks[0], SIGNAL(onClick()), this, SLOT(newTick()));
	connect(ticks[0], SIGNAL(changed()), this, SIGNAL(changed()));
	connect(ticks[1], SIGNAL(changed()), this, SIGNAL(changed()));

}