[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10704 - gnuradio/branches/developers/trondeau/qtdevel
From: |
trondeau |
Subject: |
[Commit-gnuradio] r10704 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib |
Date: |
Sun, 29 Mar 2009 19:23:48 -0600 (MDT) |
Author: trondeau
Date: 2009-03-29 19:23:48 -0600 (Sun, 29 Mar 2009)
New Revision: 10704
Modified:
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/qtgui_sink_c.cc
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumdisplayform.cc
Log:
wip: sometimes, global pointers are nice. This allows non PyQt apps to be
self-contained.
Modified:
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/qtgui_sink_c.cc
===================================================================
---
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/qtgui_sink_c.cc
2009-03-30 01:06:05 UTC (rev 10703)
+++
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/qtgui_sink_c.cc
2009-03-30 01:23:48 UTC (rev 10704)
@@ -90,7 +90,14 @@
void
qtgui_sink_c::initialize()
{
- d_qApplication = qApp;
+ if(qApp != NULL) {
+ d_qApplication = qApp;
+ }
+ else {
+ int argc;
+ char **argv = NULL;
+ d_qApplication = new QApplication(argc, argv);
+ }
uint64_t maxBufferSize = 32768;
d_main_gui = new SpectrumGUIClass(maxBufferSize, d_fftsize,
Modified:
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumdisplayform.cc
===================================================================
---
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumdisplayform.cc
2009-03-30 01:06:05 UTC (rev 10703)
+++
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumdisplayform.cc
2009-03-30 01:23:48 UTC (rev 10704)
@@ -8,7 +8,6 @@
SpectrumDisplayForm::SpectrumDisplayForm(QWidget* parent)
: QDialog(parent)
{
- printf("SpectrumDisplayForm\n");
setupUi(this);
_systemSpecifiedFlag = false;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10704 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib,
trondeau <=