예제 #1
0
void ConsoleLineBuffer::refreshSingleHighlighting(ConsoleLine& line)
{
    QColor color = highlightingsModel_->lineColor(line.text());

    if (color != line.color())
    {
        line.setColor(color);
        emit dataChanged(QAbstractListModel::index(list_.count()), QAbstractListModel::index(list_.count()));
    }
}
예제 #2
0
void drawBorder(){
	ConsoleLine line;
	line.setColor(6);
	line.setText("\x04");
	// X Axis
	line.setLength(70);
	line.setDirection(ConsoleLine::DIRECTION_X);
	// upper-x
	line.setStartPos(5, 1);
	line.render();
	// lower-x
	line.setStartPos(5, 23);
	line.render();
	// Y Axis
	line.setLength(23);
	line.setDirection(ConsoleLine::DIRECTION_Y);
	// left-y
	line.setStartPos(5, 1);
	line.render();
	// right-y
	line.setStartPos(75, 1);
	line.render();
}