Am Wed, 22. Apr 2015 um 09:45:23 +0200 schrieb Gerald: Hi Gerald,
> Sorry, forgot to commit :) git push did nothing, and I didn't see it. attached you find a patch to get rid of an other ugly warning message which also enables a slightly smarter frequency number display. Guido -- http://wie-im-flug.net/ http://www.lug-burghausen.org/
diff --git a/mainwindow.cpp b/mainwindow.cpp index fc31f9b..2082807 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -21,7 +21,7 @@ This file is part of GuitarSynth2. #include "gausssynth.h" #include <sawsynth.h> #include <QVBoxLayout> -#include <strstream> + MainWindow::MainWindow(QWidget *parent) : QWidget(parent), ui(new Ui::MainWindow) @@ -76,7 +76,7 @@ QWidget * MainWindow::getSynthArea() void MainWindow::updateFreqLabel(float val) { - strstream t; - t<<val<<std::endl; - ui->freqLab->setText(QString::fromStdString(t.str())); + QString t; + t.setNum(val); + ui->freqLab->setText(t); }
signature.asc
Description: Digital signature
_______________________________________________ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev