commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/01: qtgui: Fixes for edit_box_msg to wor


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: qtgui: Fixes for edit_box_msg to work with QT5.
Date: Thu, 28 Apr 2016 16:35:54 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch next-qt5
in repository gnuradio.

commit ff85dcbaa9a8e2464812f481c329e483d0454402
Author: Tom Rondeau <address@hidden>
Date:   Thu Apr 28 10:53:12 2016 -0400

    qtgui: Fixes for edit_box_msg to work with QT5.
---
 gr-qtgui/examples/c++/CMakeLists.txt | 5 +++--
 gr-qtgui/grc/qtgui_edit_box_msg.xml  | 2 +-
 gr-qtgui/lib/edit_box_msg_impl.cc    | 4 ----
 3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/gr-qtgui/examples/c++/CMakeLists.txt 
b/gr-qtgui/examples/c++/CMakeLists.txt
index ad84287..796c292 100644
--- a/gr-qtgui/examples/c++/CMakeLists.txt
+++ b/gr-qtgui/examples/c++/CMakeLists.txt
@@ -24,7 +24,7 @@ include_directories(
        ${GR_BLOCKS_INCLUDE_DIRS}
        ${GR_FFT_INCLUDE_DIRS}
        ${GNURADIO_RUNTIME_INCLUDE_DIRS}
-        ${QT_INCLUDE_DIRS}
+        ${Qt5Widgets_INCLUDE_DIRS}
         ${Boost_INCLUDE_DIRS}
 )
 
@@ -36,9 +36,10 @@ list(APPEND QTGUI_LIBRARIES
   gnuradio-fft
   gnuradio-runtime
   ${QWT_LIBRARY_DIRS}
+  ${Qt5Widgets_LIBRARIES}
 )
 
-QT4_WRAP_CPP(qtgui_moc_sources display_qt.h)
+QT5_WRAP_CPP(qtgui_moc_sources display_qt.h)
 add_executable(display_qt display_qt.cc ${qtgui_moc_sources})
 target_link_libraries(display_qt ${QTGUI_LIBRARIES})
 
diff --git a/gr-qtgui/grc/qtgui_edit_box_msg.xml 
b/gr-qtgui/grc/qtgui_edit_box_msg.xml
index c7c758a..d77a4b3 100644
--- a/gr-qtgui/grc/qtgui_edit_box_msg.xml
+++ b/gr-qtgui/grc/qtgui_edit_box_msg.xml
@@ -7,7 +7,7 @@
 <block>
   <name>QT GUI Message Edit Box</name>
   <key>qtgui_edit_box_msg</key>
-  <import>from PyQt4 import Qt</import>
+  <import>from PyQt5 import Qt</import>
   <import>from gnuradio import qtgui</import>
   <import>import sip</import>
   <make>#set $win = 'self._%s_win'%$id
diff --git a/gr-qtgui/lib/edit_box_msg_impl.cc 
b/gr-qtgui/lib/edit_box_msg_impl.cc
index e0c5f64..e0b5f25 100644
--- a/gr-qtgui/lib/edit_box_msg_impl.cc
+++ b/gr-qtgui/lib/edit_box_msg_impl.cc
@@ -65,10 +65,6 @@ namespace gr {
        d_qApplication = qApp;
       }
       else {
-#if QT_VERSION >= 0x040500
-        std::string style = prefs::singleton()->get_string("qtgui", "style", 
"raster");
-        QApplication::setGraphicsSystem(QString(style.c_str()));
-#endif
        d_qApplication = new QApplication(d_argc, &d_argv);
       }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]