• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ossia / score / 30213925900

26 Jul 2026 06:03PM UTC coverage: 15.298% (-0.01%) from 15.311%
30213925900

push

github

jcelerier
3rdparty: bump libossia for the network-context poll fix

Brings in ossia/libossia#913: SDL joystick init no longer requires haptic
support (which the Emscripten SDL2 port does not have), and
network_context::poll() restarts the io_context, without which the
WebAssembly polling path stops after its first tick.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019oPj1zRcxSQX7FNni7EHM6

30400 of 198713 relevant lines covered (15.3%)

997.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/lib/score/graphics/widgets/QGraphicsLineEdit.cpp
1
#include "QGraphicsLineEdit.hpp"
2

3
#include <QTextDocument>
4

5
#include <private/qwidgettextcontrol_p.h>
6

7
#include <wobjectimpl.h>
8

9
#if defined(__EMSCRIPTEN__)
10
#include <score/application/GUIApplicationContext.hpp>
11
#include <score/graphics/GraphicsItem.hpp>
12
#endif
13

14
W_OBJECT_IMPL(score::QGraphicsLineEdit)
×
15
namespace score
16
{
17

18
QGraphicsLineEdit::QGraphicsLineEdit(QGraphicsItem* parent)
×
19
    : QGraphicsTextItem{parent}
×
20
{
×
21
  setTextInteractionFlags(Qt::TextEditorInteraction);
×
22
  auto ctl = this->findChild<QWidgetTextControl*>();
×
23
  if(ctl)
×
24
  {
25
    ctl->setAcceptRichText(false);
×
26
  }
×
27

28
  QObject::connect(
×
29
      this->document(), &QTextDocument::contentsChanged, this,
×
30
      &QGraphicsLineEdit::checkSize);
31
}
×
32

33
void QGraphicsLineEdit::focusInEvent(QFocusEvent* e)
×
34
{
35
  QGraphicsTextItem::focusInEvent(e);
×
36
#if defined(__EMSCRIPTEN__)
37
  score::reclaimMainWindowFocus();
38
  score::retargetInputMethod(getView(*this));
39
#endif
40
}
×
41

42
void QGraphicsLineEdit::dropEvent(QGraphicsSceneDragDropEvent* drop)
×
43
{
44
  QGraphicsTextItem::dropEvent(drop);
×
45
  const auto& urlList = drop->mimeData()->urls();
×
46

47
  if(!urlList.isEmpty())
×
48
  {
49
    this->setPlainText(urlList[0].toLocalFile());
×
50
  }
×
51
}
×
52

53
void QGraphicsLineEdit::focusOutEvent(QFocusEvent* e)
×
54
{
55
  QGraphicsTextItem::focusOutEvent(e);
×
56
  editingFinished();
×
57
}
×
58

59
QVariant QGraphicsLineEdit::itemChange(GraphicsItemChange change, const QVariant& value)
×
60
{
61
  return QGraphicsTextItem::itemChange(change, value);
×
62
}
63

64
void QGraphicsLineEdit::checkSize()
×
65
{
66
  if(auto rect = boundingRect(); m_previousSize != rect)
×
67
  {
68
    m_previousSize = rect;
×
69
    sizeChanged(rect.size());
×
70
  }
×
71
}
×
72
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc