diff options
| author | 2008-11-08 12:50:00 +0000 | |
|---|---|---|
| committer | 2008-11-08 12:50:00 +0000 | |
| commit | 66ff2329ae6f045f18edae5ec22cec64c7905572 (patch) | |
| tree | e182fa359512df0d44db91fa49576d13c186de8d /src/modules/objects/class_hbox.cpp | |
| parent | applied wRAR patch for #285 (diff) | |
| download | KVIrc-66ff2329ae6f045f18edae5ec22cec64c7905572.tar.gz KVIrc-66ff2329ae6f045f18edae5ec22cec64c7905572.tar.bz2 KVIrc-66ff2329ae6f045f18edae5ec22cec64c7905572.zip | |
second round of misc compilation noise reduction
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2838 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_hbox.cpp')
| -rw-r--r-- | src/modules/objects/class_hbox.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/objects/class_hbox.cpp b/src/modules/objects/class_hbox.cpp index bba750723..db16a2bfb 100644 --- a/src/modules/objects/class_hbox.cpp +++ b/src/modules/objects/class_hbox.cpp @@ -29,7 +29,7 @@ #include "kvi_tal_hbox.h" const char * const align_tbl[] = { - "Left", + "Left", "Right", "HCenter", "VCenter", @@ -78,8 +78,8 @@ const int align_cod[] = { !fn: $addStretch(<stretch:integer>) Adds a stretchable space with zero minimum size and stretch factor stretch to the end of this box layout. !fn: $setAlignment(<flag1:string>, <flag2:string>, ...) - Sets the alignment for widget w to flags, given as parameters. - Valid flags are:Right,Left,Top,Bottom,HCenter,VCenter,Center + Sets the alignment for widget w to flags, given as parameters. + Valid flags are:Right,Left,Top,Bottom,HCenter,VCenter,Center */ @@ -100,9 +100,9 @@ KVSO_BEGIN_DESTRUCTOR(KviKvsObject_hbox) KVSO_END_CONSTRUCTOR(KviKvsObject_hbox) -bool KviKvsObject_hbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams) +bool KviKvsObject_hbox::init(KviKvsRunTimeContext *,KviKvsVariantList *) { - + setObject(new KviTalHBox(parentScriptWidget()), true); return true; } @@ -179,7 +179,7 @@ KVSO_CLASS_FUNCTION(hbox,setAlignment) int align,sum=0; for ( QStringList::Iterator it = alignment.begin(); it != alignment.end(); ++it ) { - + align = 0; for(unsigned int j = 0; j < align_num; j++) { @@ -193,7 +193,7 @@ KVSO_CLASS_FUNCTION(hbox,setAlignment) sum = sum | align; else c->warning(__tr2qs("Unknown alignment: '%Q'"),&(*it)); - + } if (widget()) ((KviTalHBox *)widget())->setAlignment(((QWidget *)(pObject->object())),(Qt::Alignment)sum); return true; |
