set names for QTimer in mainWindow, to find them from python
This commit is contained in:
parent
18624df555
commit
bc920f9a24
|
@ -285,16 +285,19 @@ MainWindow::MainWindow(QWidget * parent, Qt::WFlags f)
|
||||||
|
|
||||||
// clears the action label
|
// clears the action label
|
||||||
d->actionTimer = new QTimer( this );
|
d->actionTimer = new QTimer( this );
|
||||||
|
d->actionTimer->setObjectName(QString::fromAscii("actionTimer"));
|
||||||
connect(d->actionTimer, SIGNAL(timeout()), d->actionLabel, SLOT(clear()));
|
connect(d->actionTimer, SIGNAL(timeout()), d->actionLabel, SLOT(clear()));
|
||||||
|
|
||||||
// update gui timer
|
// update gui timer
|
||||||
d->activityTimer = new QTimer(this);
|
d->activityTimer = new QTimer(this);
|
||||||
|
d->activityTimer->setObjectName(QString::fromAscii("activityTimer"));
|
||||||
connect(d->activityTimer, SIGNAL(timeout()),this, SLOT(updateActions()));
|
connect(d->activityTimer, SIGNAL(timeout()),this, SLOT(updateActions()));
|
||||||
d->activityTimer->setSingleShot(true);
|
d->activityTimer->setSingleShot(true);
|
||||||
d->activityTimer->start(300);
|
d->activityTimer->start(300);
|
||||||
|
|
||||||
// show main window timer
|
// show main window timer
|
||||||
d->visibleTimer = new QTimer(this);
|
d->visibleTimer = new QTimer(this);
|
||||||
|
d->visibleTimer->setObjectName(QString::fromAscii("visibleTimer"));
|
||||||
connect(d->visibleTimer, SIGNAL(timeout()),this, SLOT(showMainWindow()));
|
connect(d->visibleTimer, SIGNAL(timeout()),this, SLOT(showMainWindow()));
|
||||||
d->visibleTimer->setSingleShot(true);
|
d->visibleTimer->setSingleShot(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user