projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Session: Fixed header guard
[pulseview.git]
/
pv
/
view
/
signal.cpp
diff --git
a/pv/view/signal.cpp
b/pv/view/signal.cpp
index afd9ca7413f4a8b426dc3f6a3a17970f6723fbdf..bbabcc1b7709d62818a280d76c5f5ee887f95e4f 100644
(file)
--- a/
pv/view/signal.cpp
+++ b/
pv/view/signal.cpp
@@
-21,7
+21,7
@@
#include <extdef.h>
#include <assert.h>
#include <extdef.h>
#include <assert.h>
-#include <
math.
h>
+#include <
cmat
h>
#include <QApplication>
#include <QFormLayout>
#include <QApplication>
#include <QFormLayout>
@@
-29,7
+29,7
@@
#include <QLineEdit>
#include <QMenu>
#include <QLineEdit>
#include <QMenu>
-#include <libsigrok
/libsigrok
.hpp>
+#include <libsigrok
cxx/libsigrokcxx
.hpp>
#include "signal.hpp"
#include "view.hpp"
#include "signal.hpp"
#include "view.hpp"
@@
-60,7
+60,7
@@
const char *const ChannelNames[] = {
Signal::Signal(pv::Session &session,
std::shared_ptr<sigrok::Channel> channel) :
Signal::Signal(pv::Session &session,
std::shared_ptr<sigrok::Channel> channel) :
- Trace(
channel->name().c_str(
)),
+ Trace(
QString::fromUtf8(channel->name().c_str()
)),
session_(session),
channel_(channel),
name_widget_(NULL),
session_(session),
channel_(channel),
name_widget_(NULL),
@@
-78,7
+78,7
@@
void Signal::set_name(QString name)
// Store the channel name in sigrok::Channel so that it
// will end up in the .sr file upon save.
// Store the channel name in sigrok::Channel so that it
// will end up in the .sr file upon save.
- channel_->set_name(name.to
StdString
());
+ channel_->set_name(name.to
Utf8().constData
());
}
bool Signal::enabled() const
}
bool Signal::enabled() const