aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_lcd.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2012-09-25 13:15:57 +0000
committerGravatar Fabio Bas2012-09-25 13:15:57 +0000
commit4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c (patch)
tree2a36735ae8685b0d6011f1bfdf0d27ec6211089b /src/modules/objects/KvsObject_lcd.cpp
parentProperly sort the console windows when sorting by name is selected in the tre... (diff)
downloadKVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.tar.gz
KVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.tar.bz2
KVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.zip
qt5 support (sip): code only, no touch to build system by now
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6251 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/KvsObject_lcd.cpp')
-rw-r--r--src/modules/objects/KvsObject_lcd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/objects/KvsObject_lcd.cpp b/src/modules/objects/KvsObject_lcd.cpp
index ab4664bdc..3bc333bf1 100644
--- a/src/modules/objects/KvsObject_lcd.cpp
+++ b/src/modules/objects/KvsObject_lcd.cpp
@@ -164,7 +164,11 @@ KVSO_CLASS_FUNCTION(lcd,setNumDigits)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("digit",KVS_PT_DOUBLE,0,digit)
KVSO_PARAMETERS_END(c)
+#if (QT_VERSION >= 0x050000)
+ ((QLCDNumber *)widget())->setDigitCount((int)digit);
+#else
((QLCDNumber *)widget())->setNumDigits((int)digit);
+#endif
return true;
}