summaryrefslogtreecommitdiff
path: root/widgets/displaytext.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
committerChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
commitde18fc13175a5bf0e2b48a042d2fc06e87c88d24 (patch)
treef517074cd603d30eb7ba7e2122d38051e4c1439c /widgets/displaytext.cpp
parentb76e8361909e47f0937d4a64a5a4cb5939f51eb7 (diff)
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
Update upstream source from tag 'upstream/3.0.2+dfsg'
Update to upstream version '3.0.2+dfsg' with Debian dir 90381fe7be9f5ea84d9b16c9cccf200a3fbe138b
Diffstat (limited to 'widgets/displaytext.cpp')
-rw-r--r--widgets/displaytext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/displaytext.cpp b/widgets/displaytext.cpp
index 2494928a..5c8e4233 100644
--- a/widgets/displaytext.cpp
+++ b/widgets/displaytext.cpp
@@ -208,7 +208,7 @@ void DisplayText::insertText(QString const& text, QColor bg, QColor fg
{
temp_format = format;
cursor.insertText(text.mid (text_index, call_index - text_index), format);
- if (pos.value ().second.isValid ())
+ if (pos.value ().first.isValid ())
{
temp_format.setBackground (pos.value ().first);
}
@@ -872,7 +872,7 @@ void DisplayText::highlight_callsign (QString const& callsign, QColor const& bg,
}
else
{
- auto pos = highlighted_calls_.find (callsign);
+ auto pos = highlighted_calls_.find (callsign.toUpper ());
if (bg.isValid () || fg.isValid ())
{
auto colours = qMakePair (bg, fg);
@@ -918,7 +918,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
if(m_config->alert_Enabled()) {
QAudioOutput info(QAudioDeviceInfo::defaultOutputDevice());
- QString audioPath = QCoreApplication::applicationDirPath() + "/sounds" + m_config->voicesPath() + "/";
+ QString audioPath = app_sounds_directory (m_config->voicesPath());
QAudioFormat format;
format.setCodec("audio/pcm");
format.setSampleRate (48000);
@@ -930,7 +930,7 @@ void DisplayText::AudioAlerts()
connect(audio, SIGNAL(stateChanged(QAudio::State)), this, SLOT(handleStateChanged(QAudio::State)));
#else
if(m_config->alert_Enabled()) {
- QString audioPath = QCoreApplication::applicationDirPath() + "/sounds" + m_config->voicesPath() + "/";
+ QString audioPath = app_sounds_directory (m_config->voicesPath());
#endif
QFile *effect2 = new QFile(this);
QFile *effect3 = new QFile(this);