Implement methods to change padding
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
e331bd4c67
commit
8eba2e2d3b
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user