Couple minor improvements #1

Merged
neuron303 merged 9 commits from master into master 2019-08-30 19:12:07 +02:00
5 changed files with 40 additions and 22 deletions
Showing only changes of commit b0ee466c32 - Show all commits

View File

@@ -132,15 +132,21 @@ void OsciWidget::resizeEvent(QResizeEvent *event)
resizePixmap();
}
void OsciWidget::restartTimer()
void OsciWidget::stop()
{
if (m_timerId != -1)
killTimer(m_timerId);
}
void OsciWidget::start()
{
m_timerId = startTimer(1000/m_framerate);
}
void OsciWidget::restartTimer()
{
stop();
start();
}
void OsciWidget::resizePixmap()

View File

@@ -22,6 +22,8 @@ public:
int framerate() const;
int blend() const;
float factor() const;
void start();
void stop();
public slots:
void setFramerate(int framerate);