1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

Use new connect syntax

And a few warning fixes
This commit is contained in:
Albert Astals Cid
2015-10-10 13:09:11 +02:00
parent 05b6105be8
commit 0b9ed26137
11 changed files with 47 additions and 48 deletions

View File

@@ -24,7 +24,7 @@ QtFrameBuffer::QtFrameBuffer(WId id, QObject *parent)
fbImage = QPixmap::grabWindow(win).toImage();
fb = new char[fbImage.byteCount()];
t = new QTimer(this);
connect(t, SIGNAL(timeout()), SLOT(updateFrameBuffer()));
connect(t, &QTimer::timeout, this, &QtFrameBuffer::updateFrameBuffer);
}
@@ -67,6 +67,7 @@ void QtFrameBuffer::getServerFormat(rfbPixelFormat &format)
void QtFrameBuffer::updateFrameBuffer()
{
QImage img = QPixmap::grabWindow(win).toImage();
#if 0 // This is actually slower than updating the whole desktop...
QSize imgSize = img.size();
@@ -74,8 +75,6 @@ void QtFrameBuffer::updateFrameBuffer()
// fbImage is the previous version of the image,
// img is the current one
#if 0 // This is actually slower than updating the whole desktop...
QImage map(imgSize, QImage::Format_Mono);
map.fill(0);