aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_combobox.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2008-10-12 17:09:38 +0000
committerGravatar Noldor2008-10-12 17:09:38 +0000
commitbbc34838a62b4ae200ad5c8e8c2ba4b2c10b5051 (patch)
treed795186cb19b7b7d5393f54bb93212e0d9b8dde2 /src/modules/objects/class_combobox.cpp
parentfix macro (diff)
downloadKVIrc-bbc34838a62b4ae200ad5c8e8c2ba4b2c10b5051.tar.gz
KVIrc-bbc34838a62b4ae200ad5c8e8c2ba4b2c10b5051.tar.bz2
KVIrc-bbc34838a62b4ae200ad5c8e8c2ba4b2c10b5051.zip
more object module code cleaning.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2715 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_combobox.cpp')
-rw-r--r--src/modules/objects/class_combobox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/objects/class_combobox.cpp b/src/modules/objects/class_combobox.cpp
index 6a2b54ea3..7a2686341 100644
--- a/src/modules/objects/class_combobox.cpp
+++ b/src/modules/objects/class_combobox.cpp
@@ -171,11 +171,11 @@ KVSO_CLASS_FUNCTION(combobox,changeItem)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szText)
KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,uIndex)
KVSO_PARAMETERS_END(c)
- if (szText.isEmpty()) c->warning(__tr2qs("No string parameter given - using empty string"));
+ if (szText.isEmpty()) c->warning(__tr2qs_ctx("No string parameter given - using empty string","object"));
if(uIndex >= (cnt = ((QComboBox *)widget())->count()))
{
- c->warning(__tr2qs("Item index [%d] is too big - defaulting to " \
- "$count() - 1 [%d]"), uIndex, cnt);
+ c->warning(__tr2qs_ctx("Item index [%d] is too big - defaulting to " \
+ "$count() - 1 [%d]","object"), uIndex, cnt);
uIndex = cnt - 1;
}
((QComboBox *)widget())->setItemText( uIndex,szText);
@@ -191,8 +191,8 @@ KVSO_CLASS_FUNCTION(combobox,removeItem)
KVSO_PARAMETERS_END(c)
if(uIndex >= (cnt = ((QComboBox *)widget())->count()))
{
- c->warning(__tr2qs("Item index [%d] is too big - defaulting to " \
- "$count() - 1 [%d]"), uIndex, cnt);
+ c->warning(__tr2qs_ctx("Item index [%d] is too big - defaulting to " \
+ "$count() - 1 [%d]","object"), uIndex, cnt);
uIndex = cnt - 1;
}
@@ -328,7 +328,7 @@ KVSO_CLASS_FUNCTION(combobox,setInsertionPolicy)
((QComboBox *)widget())->setInsertPolicy(QComboBox::InsertAfterCurrent);
else if(KviQString::equalCI(szPolicy,"BeforeCurrent"))
((QComboBox *)widget())->setInsertPolicy(QComboBox::InsertBeforeCurrent);
- else c->warning(__tr2qs("Invalid insertion Policy %Q"),&szPolicy);
+ else c->warning(__tr2qs_ctx("Invalid insertion Policy %Q","object"),&szPolicy);
return true;
}