Advertisement
Guest User

Untitled

a guest
May 4th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. g++ -c -pipe -O2 -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/local/include -I/usr/local/include/gnuradio -D_REENTRANT -D_REENTRANT -I/usr/include/libusb-1.0 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DVERSION="\"0.0\"" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o dockaudio.o qtgui/dockaudio.cpp
  2. qtgui/dockaudio.cpp: In member function ‘void DockAudio::on_audioRecButton_clicked(bool)’:
  3. qtgui/dockaudio.cpp:100: error: ‘currentDateTimeUtc’ is not a member of ‘QDateTime’
  4. make: *** [dockaudio.o] Error 1
  5.  
  6.  
  7. /*! \brief Record button clicked.
  8. * \param checked Whether recording is ON or OFF.
  9. *
  10. * We use the clicked signal instead of the toggled which allows us to change the
  11. * state programatically using toggle() without triggering the signal.
  12. */
  13. void DockAudio::on_audioRecButton_clicked(bool checked)
  14. {
  15. if (checked) {
  16. // FIXME: option to use local time
  17. lastAudio = QDateTime::currentDateTimeUtc().toString("gqrx-yyyyMMdd-hhmmss.'wav'");
  18.  
  19. // emit signal and start timer
  20. emit audioRecStarted(lastAudio);
  21.  
  22. ui->audioRecButton->setToolTip(tr("Stop audio recorder"));
  23. ui->audioPlayButton->setEnabled(false); /* prevent playback while recording */
  24. }
  25. else {
  26. ui->audioRecButton->setToolTip(tr("Start audio recorder"));
  27. emit audioRecStopped();
  28.  
  29. ui->audioPlayButton->setEnabled(true);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement