Skip to content
Snippets Groups Projects
Commit 8cb9e38e authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

cmd button management qDebug

parent f4ef0bb2
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,8 @@ void Alarmmanager::m_tag_written(QObject *writer) {
QString t = b->target();
static QRegularExpression re("[tango://]{0,1}[a-zA-Z0-9\\.\\-_]+:\\d+/(.*)/[a-zA-Z0-9\\.\\-_]+");
QRegularExpressionMatch ma = re.match(t);
qDebug() << __PRETTY_FUNCTION__ << "button" << b->objectName() << "captured texts" << ma.capturedTexts();
qDebug() << __PRETTY_FUNCTION__ << "button" << b->objectName() << "captured texts" << ma.capturedTexts()
<< "target " << t << "regex " << re.pattern();
if(ma.capturedTexts().size() == 2) {
const QString &tgtd = ma.capturedTexts()[1];
printf("current dev is %s target dev is %s\n", qstoc(dev), qstoc(tgtd));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment