diff options
| author | 2008-10-16 12:28:36 +0000 | |
|---|---|---|
| committer | 2008-10-16 12:28:36 +0000 | |
| commit | 9e0effdc52a48f6ffe9ee04451b762c639fff688 (patch) | |
| tree | 164e8410bc97a71420dcfef8a9b018e8adb7ee2f /src/modules/objects/class_groupbox.cpp | |
| parent | some fixes on the notifier (diff) | |
| download | KVIrc-9e0effdc52a48f6ffe9ee04451b762c639fff688.tar.gz KVIrc-9e0effdc52a48f6ffe9ee04451b762c639fff688.tar.bz2 KVIrc-9e0effdc52a48f6ffe9ee04451b762c639fff688.zip | |
more works on objects module (locale stuff+some fixes+code clean)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2742 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_groupbox.cpp')
| -rw-r--r-- | src/modules/objects/class_groupbox.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/objects/class_groupbox.cpp b/src/modules/objects/class_groupbox.cpp index 50c3a86e0..f9be717d4 100644 --- a/src/modules/objects/class_groupbox.cpp +++ b/src/modules/objects/class_groupbox.cpp @@ -189,17 +189,18 @@ bool KviKvsObject_groupbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantLi KVSO_CLASS_FUNCTION(groupbox,setTitle) { + CHECK_INTERNAL_POINTER(widget()) QString szTitle; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("title",KVS_PT_STRING,0,szTitle) KVSO_PARAMETERS_END(c) - if (widget()) - ((KviTalGroupBox *)widget())->setTitle(szTitle); + ((KviTalGroupBox *)widget())->setTitle(szTitle); return true; } KVSO_CLASS_FUNCTION(groupbox,title) { - if (widget()) c->returnValue()->setString(((KviTalGroupBox *)widget())->title()); + CHECK_INTERNAL_POINTER(widget()) + c->returnValue()->setString(((KviTalGroupBox *)widget())->title()); return true; } KVSO_CLASS_FUNCTION(groupbox,setFlat) @@ -309,7 +310,7 @@ KVSO_CLASS_FUNCTION(groupbox,setAlignment) return true; } } - c->warning(__tr2qs("Unknown alignment")); + c->warning(__tr2qs_ctx("Unknown alignment: 'Q'","objets"),&szAlign); return true; } @@ -342,7 +343,7 @@ KVSO_CLASS_FUNCTION(groupbox,setOrientation) else if(KviQString::equalCI(szMode, "Vertical")) ((KviTalGroupBox *)widget())->setOrientation(Qt::Horizontal); - else c->warning( __tr2qs("Unknown orientation: ")); + else c->warning( __tr2qs_ctx("Unknown orientation: 'Q'","objects"),&szMode); return true; } |
