summaryrefslogtreecommitdiffstats
path: root/src/xosd.cpp
diff options
context:
space:
mode:
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);
}