MCPcopy Create free account
hub / github.com/Gecode/gecode / flush

Method flush

gecode/gist/textoutput.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 QTextEdit* editor;
53 public:
54 void flush(void) {
55 QTextBlockFormat bf = editor->textCursor().blockFormat();
56 bf.setBottomMargin(0);
57 editor->textCursor().setBlockFormat(bf);
58 editor->append(buffer);
59 buffer.clear();
60 }
61 virtual int overflow(int v = std::char_traits<char>::eof()) {
62 if (v == '\n') {
63 flush();

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected