summaryrefslogtreecommitdiffstats
path: root/src/xosd.cpp
diff options
context:
space:
mode:
authorPascal Viandier <midi-pascal@videotron.ca>2015-10-01 18:01:36 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-10-01 19:32:33 +0200
commit77649eee774e6f71da886d5c72a616a0b46e08fa (patch)
tree324dcd5623d54c64365aedaa8607ae691cfbddd5 /src/xosd.cpp
parent01fd55b43a0d9420591544e6bea4fa171fe177b3 (diff)
downloadkooldock-77649eee774e6f71da886d5c72a616a0b46e08fa.tar.gz
kooldock-77649eee774e6f71da886d5c72a616a0b46e08fa.zip
Fix FTBFS with newer GCC
Signed-off-by: Pascal Viandier <midi-pascal@videotron.ca>
Diffstat (limited to 'src/xosd.cpp')
-rw-r--r--src/xosd.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xosd.cpp b/src/xosd.cpp
index 656be2d..45d0799 100644
--- a/src/xosd.cpp
+++ b/src/xosd.cpp
@@ -13,6 +13,7 @@
#include <kwin.h>
#include <kdebug.h>
+#include <stdlib.h>
xosd::xosd(QWidget *parent, const char *name) : QWidget(parent, name, WStyle_Customize | WRepaintNoErase | WStyle_NoBorder | WDestructiveClose | WResizeNoErase | WMouseNoMask | WStyle_StaysOnTop | WX11BypassWM)
{
@@ -27,12 +28,12 @@ xosd::~xosd()
{
}
-void xosd::setColor(QString color)
+void xosd::setColor(const QString& color)
{
fontColor=color;
}
-void xosd::setShadowColor(QString color)
+void xosd::setShadowColor(const QString& color)
{
shadowColor=color;
}
@@ -68,7 +69,7 @@ void xosd::setShadowOffset(int off)
shadowOffset=off;
}
-void xosd::setText(QString t)
+void xosd::setText(const QString& t)
{
//setMask(QRegion(0,0,0,0));
// NOTICE: it appears that with WX11BypassWM, resize() doesn't flick the widget anymore :)
@@ -84,7 +85,7 @@ void xosd::setText(QString t)
update();
}
-void xosd::setFont(QString font)
+void xosd::setFont(const QString& font)
{
f.setFamily(font);
}