chg: write serial port in window title (plot/slider)

This commit is contained in:
iceman1001
2020-01-29 15:16:50 +01:00
parent 60b444d5d8
commit 996b41dce7
5 changed files with 28 additions and 2 deletions

View File

@@ -197,11 +197,22 @@ ProxWidget::ProxWidget(QWidget *parent, ProxGuiQT *master) : QWidget(parent) {
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(plot);
setLayout(layout);
show(); // places the window on the screen.
// plot window title
QString pt = QString("[*]Plot [ %1 ]").arg((char*)gui_serial_port_name);
setWindowTitle(pt);
// shows plot window on the screen.
show();
// Move controller widget below plot
controlWidget->move(x(), y() + frameSize().height());
controlWidget->resize(size().width(), 200);
// Olverlays / slider window title
QString ct = QString("[*]Slider [ %1 ]").arg((char*)gui_serial_port_name);
controlWidget->setWindowTitle(ct);
controlWidget->show();
}