summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_label.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-24 21:28:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-31 16:31:47 +0900
commit7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch)
treed92d61649487df1a2fbd200d4ead11a7f16ba63f /src/modules/objects/class_label.cpp
parentcafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff)
downloadkvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.tar.gz
kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.zip
Drop USE_QT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31)
Diffstat (limited to 'src/modules/objects/class_label.cpp')
-rw-r--r--src/modules/objects/class_label.cpp19
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;
}
//