set names for QTimer in mainWindow, to find them from python

This commit is contained in:
lorenz_l 2015-06-23 17:05:10 +02:00 committed by wmayer
parent 18624df555
commit bc920f9a24

View File

@ -285,16 +285,19 @@ MainWindow::MainWindow(QWidget * parent, Qt::WFlags f)
// clears the action label
d->actionTimer = new QTimer( this );
d->actionTimer->setObjectName(QString::fromAscii("actionTimer"));
connect(d->actionTimer, SIGNAL(timeout()), d->actionLabel, SLOT(clear()));
// update gui timer
d->activityTimer = new QTimer(this);
d->activityTimer->setObjectName(QString::fromAscii("activityTimer"));
connect(d->activityTimer, SIGNAL(timeout()),this, SLOT(updateActions()));
d->activityTimer->setSingleShot(true);
d->activityTimer->start(300);
// show main window timer
d->visibleTimer = new QTimer(this);
d->visibleTimer->setObjectName(QString::fromAscii("visibleTimer"));
connect(d->visibleTimer, SIGNAL(timeout()),this, SLOT(showMainWindow()));
d->visibleTimer->setSingleShot(true);