Commit ee11f417 authored by Robert Knight's avatar Robert Knight
Browse files

Remove the last of the printing code given that Konsole no longer has direct...

Remove the last of the printing code given that Konsole no longer has direct printing support.  The web page export facility can be used instead.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=708827
parent d346a2cc
......@@ -266,9 +266,6 @@ TerminalDisplay::TerminalDisplay(QWidget *parent)
,_hasBlinkingCursor(false)
,_ctrlDrag(false)
,_cutToBeginningOfLine(false)
,_isPrinting(false)
,_printerFriendly(false)
,_printerBold(false)
,_isFixedSize(false)
,_possibleTripleClick(false)
,_resizeWidget(0)
......@@ -1088,42 +1085,6 @@ void TerminalDisplay::drawInputMethodPreeditString(QPainter& painter , const QRe
_inputMethodData.previousPreeditRect = rect;
}
void TerminalDisplay::print(QPainter &paint, bool friendly, bool exact)
{
bool saveFixedFont = _fixedFont;
bool saveBlinking = _blinking;
_fixedFont = false;
_blinking = false;
paint.setFont(font());
_isPrinting = true;
_printerFriendly = friendly;
_printerBold = !exact;
if (exact)
{
QPixmap pm(contentsRect().right(), contentsRect().bottom());
pm.fill();
QPainter pm_paint;
pm_paint.begin(&pm);
drawContents(pm_paint, contentsRect());
pm_paint.end();
paint.drawPixmap(0, 0, pm);
}
else
{
drawContents(paint, contentsRect());
}
_printerFriendly = false;
_isPrinting = false;
_printerBold = false;
_fixedFont = saveFixedFont;
_blinking = saveBlinking;
}
FilterChain* TerminalDisplay::filterChain() const
{
return _filterChain;
......
......@@ -351,8 +351,6 @@ public:
void setBidiEnabled(bool set) { _bidiEnabled=set; }
bool isBidiEnabled() { return _bidiEnabled; }
void print(QPainter &paint, bool friendly, bool exact);
/**
* Sets the margin between the top-left edge of the terminal display
* and the rendered text.
......@@ -652,9 +650,6 @@ private:
bool _hasBlinkingCursor; // has blinking cursor enabled
bool _ctrlDrag; // require Ctrl key for drag
bool _cutToBeginningOfLine; // triple click only selects forward
bool _isPrinting; // Paint job is intended for printer
bool _printerFriendly; // paint printer friendly, save ink
bool _printerBold; // Use a bold font instead of overstrike for bold
bool _isFixedSize; //Columns / lines are locked.
QTimer* _blinkTimer; // active when hasBlinker
QTimer* _blinkCursorTimer; // active when hasBlinkingCursor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment