diff options
Diffstat (limited to 'src/modules/objects/class_checkbox.cpp')
| -rw-r--r-- | src/modules/objects/class_checkbox.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/modules/objects/class_checkbox.cpp b/src/modules/objects/class_checkbox.cpp index 031c71bdd..d808cc968 100644 --- a/src/modules/objects/class_checkbox.cpp +++ b/src/modules/objects/class_checkbox.cpp @@ -5,7 +5,7 @@ // // This file is part of the KVirc irc client distribution // Copyright (C) 2000 Krzysztof Godlewski -// Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net) +// Copyright (C) 2000-2009 Szymon Stefanek (pragma at kvirc dot net) // // This program is FREE software. You can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -105,6 +105,17 @@ KVSO_CLASS_FUNCTION(checkbox,setChecked) return true; } +KVSO_CLASS_FUNCTION(checkbox,setText) +{ + CHECK_INTERNAL_POINTER(widget()) + QString szText; + KVSO_PARAMETERS_BEGIN(c) + KVSO_PARAMETER("<text>",KVS_PT_STRING,0,szText) + KVSO_PARAMETERS_END(c) + ((QCheckBox *)widget())->setText(szText); + return true; +} + KVSO_CLASS_FUNCTION(checkbox,toggleEvent) { emitSignal("toggled",c,c->params()); |
