mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 02:12:52 +00:00
kdesktopspy: reduce refresh time to half second
works like a charm for ~200 LOC: https://ibb.co/5GGdGL3 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
03bed80ff8
commit
dc4e02dcb2
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void KDesktopSpy::handleRequest()
|
|||
block.append("Server: KDestopSpy\r\n");
|
||||
|
||||
QByteArray data;
|
||||
data.append(QString("<html><img src=\"image.png\" width=\"%1\" height=\"%2\"><meta http-equiv=\"refresh\" content=\"1\"></html>").arg(desktopwidget->width()).arg(desktopwidget->height()).toAscii());
|
||||
data.append(QString("<html><img src=\"image.png\" width=\"%1\" height=\"%2\"><meta http-equiv=\"refresh\" content=\"0.5\"></html>").arg(desktopwidget->width()).arg(desktopwidget->height()).toAscii());
|
||||
|
||||
block.append("Content-Type: text/html; charset=UTF-8\r\n");
|
||||
block.append(QString("Content-Length: %1\r\n\r\n").arg(data.length()).toAscii());
|
||||
|
|
Loading…
Add table
Reference in a new issue