mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Merge branch 'develop' of github.com:mapmapteam/mapmap into develop
This commit is contained in:
+2
-10
@@ -28,11 +28,7 @@
|
||||
MainWindow::MainWindow()
|
||||
{
|
||||
// Create model.
|
||||
#if QT_VERSION >= 0x050500
|
||||
QMessageLogger(__FILE__, __LINE__, 0).info() << "Video support: " << (Video::hasVideoSupport() ? "yes" : "no");
|
||||
#else
|
||||
QMessageLogger(__FILE__, __LINE__, 0).debug() << "Video support: " << (Video::hasVideoSupport() ? "yes" : "no");
|
||||
#endif
|
||||
qDebug() << "Video support: " << (Video::hasVideoSupport() ? "yes" : "no");
|
||||
|
||||
mappingManager = new MappingManager;
|
||||
|
||||
@@ -2898,11 +2894,7 @@ void MainWindow::startOscReceiver()
|
||||
int port = config_osc_receive_port;
|
||||
std::ostringstream os;
|
||||
os << port;
|
||||
#if QT_VERSION >= 0x050500
|
||||
QMessageLogger(__FILE__, __LINE__, 0).info() << "OSC port: " << port ;
|
||||
#else
|
||||
QMessageLogger(__FILE__, __LINE__, 0).debug() << "OSC port: " << port ;
|
||||
#endif
|
||||
qDebug() << "OSC port: " << port ;
|
||||
osc_interface.reset(new OscInterface(os.str()));
|
||||
if (port != 0)
|
||||
{
|
||||
|
||||
+3
-3
@@ -41,7 +41,7 @@ OscInterface::OscInterface(
|
||||
//if (listen_port != OSC_PORT_NONE)
|
||||
receiving_enabled_ = true;
|
||||
if (receiving_enabled_) {
|
||||
QMessageLogger(__FILE__, __LINE__, 0).debug() << "Listening osc.udp://localhost:" << listen_port.c_str();
|
||||
qDebug() << "Listening osc.udp://localhost:" << listen_port.c_str();
|
||||
// receiver_.addHandler("/ping", "", ping_cb, this);
|
||||
// receiver_.addHandler("/pong", "", pong_cb, this);
|
||||
//receiver_.addHandler("/image/path", "ss", image_path_cb, this);
|
||||
@@ -60,7 +60,7 @@ int OscInterface::pong_cb(const char *path, const char * /*types*/,
|
||||
lo_arg ** /*argv*/, int /*argc*/, void * /*data*/, void *user_data) {
|
||||
OscInterface* context = static_cast<OscInterface*>(user_data);
|
||||
if (context->is_verbose())
|
||||
QMessageLogger(__FILE__, __LINE__, 0).debug() << "Got " << path;
|
||||
qDebug() << "Got " << path;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ int OscInterface::ping_cb(const char *path, const char * /*types*/,
|
||||
lo_arg ** /*argv*/, int /*argc*/, void * /*data*/, void *user_data) {
|
||||
OscInterface* context = static_cast<OscInterface*>(user_data);
|
||||
if (context->is_verbose())
|
||||
QMessageLogger(__FILE__, __LINE__, 0).debug() << "Got " << path;
|
||||
qDebug() << "Got " << path;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user