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:33:36 +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 5b61e962f84d80f5117b013c735f4ab6f6ff1feb
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 | 2 +-
 gr-qtgui/grc/qtgui_edit_box_msg.xml  | 2 +-
 gr-qtgui/lib/edit_box_msg_impl.cc    | 4 ----
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/gr-qtgui/examples/c++/CMakeLists.txt 
b/gr-qtgui/examples/c++/CMakeLists.txt
index ad84287..abbce39 100644
--- a/gr-qtgui/examples/c++/CMakeLists.txt
+++ b/gr-qtgui/examples/c++/CMakeLists.txt
@@ -38,7 +38,7 @@ list(APPEND QTGUI_LIBRARIES
   ${QWT_LIBRARY_DIRS}
 )
 
-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]