mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
As of workshop RW/KB, improved / fixed text messages
Also refs #351 * messages can be formatted with style sheet * fixed: removed command from message * added originator to command line * msg parsing now in core * using ITimestampBased for text messages and status messages * allow to resize rows to content (view base) * model / views for text messages * removed old qt stylesheets
This commit is contained in:
@@ -154,7 +154,7 @@ namespace BlackGui
|
||||
{
|
||||
QString c(this->ui->le_CommandLineInput->text().trimmed().simplified());
|
||||
if (c.isEmpty()) { return; }
|
||||
emit this->commandEntered(c);
|
||||
emit this->commandEntered(c, keypadOriginator());
|
||||
this->ui->le_CommandLineInput->clear();
|
||||
}
|
||||
|
||||
@@ -236,5 +236,13 @@ namespace BlackGui
|
||||
ui->pb_MainWeather->setChecked(false);
|
||||
}
|
||||
|
||||
const QString &CMainKeypadAreaComponent::keypadOriginator()
|
||||
{
|
||||
// string is generated once, the timestamp allows to use multiple
|
||||
// components (as long as they are not generated at the same ms)
|
||||
static const QString o = QString("KEYPADAREACOMPONENT:").append(QString::number(QDateTime::currentMSecsSinceEpoch()));
|
||||
return o;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user