Enable terminal resizing from the emulator
The pieces were all already there, but not connected.
This commit is contained in:
+3
-3
@@ -94,9 +94,9 @@ Session::Session(QObject* parent) :
|
||||
this, SIGNAL( changeTabTextColorRequest( int ) ) );
|
||||
connect( _emulation, SIGNAL(profileChangeCommandReceived(const QString &)),
|
||||
this, SIGNAL( profileChangeCommandReceived(const QString &)) );
|
||||
// TODO
|
||||
// connect( _emulation,SIGNAL(imageSizeChanged(int,int)) , this ,
|
||||
// SLOT(onEmulationSizeChange(int,int)) );
|
||||
|
||||
connect(_emulation, SIGNAL(imageSizeChanged(int, int)),
|
||||
this, SLOT(onEmulationSizeChange(int, int)));
|
||||
|
||||
//connect teletype to emulation backend
|
||||
_shellProcess->setUtf8Mode(_emulation->utf8());
|
||||
|
||||
+3
-2
@@ -299,6 +299,7 @@ void QTermWidget::init(int startnow)
|
||||
|
||||
m_impl->m_session->addView(m_impl->m_terminalDisplay);
|
||||
|
||||
connect(m_impl->m_session, SIGNAL(resizeRequest(QSize)), this, SLOT(setSize(QSize)));
|
||||
connect(m_impl->m_session, SIGNAL(finished()), this, SLOT(sessionFinished()));
|
||||
}
|
||||
|
||||
@@ -431,11 +432,11 @@ QStringList QTermWidget::availableColorSchemes()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void QTermWidget::setSize(int h, int v)
|
||||
void QTermWidget::setSize(const QSize &size)
|
||||
{
|
||||
if (!m_impl->m_terminalDisplay)
|
||||
return;
|
||||
m_impl->m_terminalDisplay->setSize(h, v);
|
||||
m_impl->m_terminalDisplay->setSize(size.width(), size.height());
|
||||
}
|
||||
|
||||
void QTermWidget::setHistorySize(int lines)
|
||||
|
||||
+3
-3
@@ -99,9 +99,6 @@ public:
|
||||
void setColorScheme(const QString & name);
|
||||
static QStringList availableColorSchemes();
|
||||
|
||||
//set size
|
||||
void setSize(int h, int v);
|
||||
|
||||
// History size for scrolling
|
||||
void setHistorySize(int lines); //infinite if lines < 0
|
||||
|
||||
@@ -216,6 +213,9 @@ public slots:
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
|
||||
// Set size
|
||||
void setSize(const QSize &);
|
||||
|
||||
/*! Set named key binding for given widget
|
||||
*/
|
||||
void setKeyBindings(const QString & kb);
|
||||
|
||||
Reference in New Issue
Block a user