Sort out terminal resizing

This commit is contained in:
Paulo Lieuthier
2015-11-06 09:13:21 -03:00
parent f792b5f5ca
commit 186b8eaba7
4 changed files with 21 additions and 5 deletions
+5 -3
View File
@@ -95,8 +95,10 @@ Session::Session(QObject* parent) :
connect( _emulation, SIGNAL(profileChangeCommandReceived(const QString &)),
this, SIGNAL( profileChangeCommandReceived(const QString &)) );
connect(_emulation, SIGNAL(imageResizeRequest(QSize)),
this, SLOT(onEmulationSizeChange(QSize)));
connect(_emulation, SIGNAL(imageSizeChanged(int, int)),
this, SLOT(onEmulationSizeChange(int, int)));
this, SLOT(onViewSizeChange(int, int)));
//connect teletype to emulation backend
_shellProcess->setUtf8Mode(_emulation->utf8());
@@ -517,9 +519,9 @@ void Session::onViewSizeChange(int /*height*/, int /*width*/)
{
updateTerminalSize();
}
void Session::onEmulationSizeChange(int lines , int columns)
void Session::onEmulationSizeChange(QSize size)
{
setSize( QSize(lines,columns) );
setSize(size);
}
void Session::updateTerminalSize()