diff options
Diffstat (limited to 'src/modules/objects/class_label.cpp')
-rw-r--r-- | src/modules/objects/class_label.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/modules/objects/class_label.cpp b/src/modules/objects/class_label.cpp index 4411a26d..f160565e 100644 --- a/src/modules/objects/class_label.cpp +++ b/src/modules/objects/class_label.cpp @@ -44,16 +44,6 @@ const char * const align_tbl[] = { "Bottom", "WordBreak" }; -#ifdef COMPILE_USE_QT4 - #define TQT_LABEL_ALIGNLEFT TQt::AlignLeft - #define TQT_LABEL_ALIGNRIGHT TQt::AlignRight - #define TQT_LABEL_ALIGNHCENTER TQt::AlignHCenter - #define TQT_LABEL_ALIGNVCENTER TQt::AlignVCenter - #define TQT_LABEL_ALIGNCENTER TQt::AlignCenter - #define TQT_LABEL_ALIGNTOP TQt::AlignTop - #define TQT_LABEL_ALIGNBOTTOM TQt::AlignBottom - #define TQT_LABEL_JUSTIFY TQt::AlignJustify -#else #define TQT_LABEL_ALIGNLEFT TQLabel::AlignLeft #define TQT_LABEL_ALIGNRIGHT TQLabel::AlignRight #define TQT_LABEL_ALIGNHCENTER TQLabel::AlignHCenter @@ -62,7 +52,6 @@ const char * const align_tbl[] = { #define TQT_LABEL_ALIGNTOP TQLabel::AlignTop #define TQT_LABEL_ALIGNBOTTOM TQLabel::AlignBottom #define TQT_LABEL_JUSTIFY TQLabel::WordBreak -#endif const int align_cod[] = { TQT_LABEL_ALIGNLEFT, @@ -276,21 +265,13 @@ bool KviKvsObject_label::functionSetAutoResize(KviKvsObjectFunctionCall *c) KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled) KVSO_PARAMETERS_END(c) - #ifdef COMPILE_USE_QT4 - return true; - #else if(widget()) ((TQLabel *)widget())->setAutoResize(bEnabled); return true; - #endif } bool KviKvsObject_label::functionAutoResize(KviKvsObjectFunctionCall *c) { - #ifdef COMPILE_USE_QT4 - if (widget()) c->returnValue()->setBoolean(true); - #else if (widget()) c->returnValue()->setBoolean(((TQLabel *)widget())->autoResize()); - #endif return true; } // |