Skip to content

Commit

Permalink
set names for QTimer in mainWindow, to find them from python
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored and wwmayer committed Jun 23, 2015
1 parent 18624df commit bc920f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gui/MainWindow.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit bc920f9

Please sign in to comment.