MCPcopy Create free account
hub / github.com/clementgallet/libTAS / getReadableColor

Method getReadableColor

src/external/qhexview/src/qhexview.cpp:1527–1532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525}
1526
1527QColor QHexView::getReadableColor(QColor c) const {
1528 QPalette palette = this->palette();
1529 return QHexView::isColorLight(c)
1530 ? palette.color(QPalette::Normal, QPalette::WindowText)
1531 : palette.color(QPalette::Normal, QPalette::HighlightedText);
1532}
1533
1534QByteArray QHexView::selectedBytes() const {
1535 return m_hexcursor->hasSelection()

Callers 1

drawFormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected