Implement methods to change padding

This commit is contained in:
Ecmel B. CANLIER
2018-08-27 10:55:41 +03:00
committed by Chih-Hsuan Yen
parent e331bd4c67
commit 8eba2e2d3b
3 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -3219,8 +3219,8 @@ int TerminalDisplay::margin() const
void TerminalDisplay::setMargin(int i)
{
_topMargin = i;
_leftMargin = i;
_topBaseMargin = i;
_leftBaseMargin = i;
}
AutoScrollHandler::AutoScrollHandler(QWidget* parent)
+10
View File
@@ -764,3 +764,13 @@ void QTermWidget::cursorChanged(Konsole::Emulation::KeyboardCursorShape cursorSh
setKeyboardCursorShape(cursorShape);
setBlinkingCursor(blinkingCursorEnabled);
}
void QTermWidget::setMargin(int margin)
{
m_impl->m_terminalDisplay->setMargin(margin);
}
int QTermWidget::getMargin() const
{
return m_impl->m_terminalDisplay->margin();
}
+6
View File
@@ -221,6 +221,12 @@ public:
/** change and wrap text corresponding to paste mode **/
void bracketText(QString& text);
/** Set the empty space outside the terminal */
void setMargin(int);
/** Get the empty space outside the terminal */
int getMargin() const;
signals:
void finished();
void copyAvailable(bool);