diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-21 11:03:45 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-22 20:26:55 +0900 |
| commit | 16d42ec4616a84b046cd71f805a009b792a93ec9 (patch) | |
| tree | 1522d1dd06ecd32e6c61d142b88d4b4814b83950 /src/modules/objects/class_toolbutton.cpp | |
| parent | a09cecfffd5151adfc50e343c821ed8ebdd1ab87 (diff) | |
| download | kvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.tar.gz kvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.zip | |
Fix conversion of TQString to const char* (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/objects/class_toolbutton.cpp')
| -rw-r--r-- | src/modules/objects/class_toolbutton.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/objects/class_toolbutton.cpp b/src/modules/objects/class_toolbutton.cpp index 35a16c20..1a677e99 100644 --- a/src/modules/objects/class_toolbutton.cpp +++ b/src/modules/objects/class_toolbutton.cpp @@ -233,9 +233,11 @@ bool KviKvsObject_toolbutton::functionsetTextLabel(KviKvsObjectFunctionCall *c) KVSO_PARAMETER("tooltip",KVS_PT_STRING,KVS_PF_OPTIONAL,szTip) KVSO_PARAMETERS_END(c) if(!widget()) return true; - - if (szTip.isEmpty()) ((TQToolButton *)widget())->setTextLabel(szLabel); - else ((TQToolButton *)widget())->setTextLabel(szLabel,szTip); + ((TQToolButton *)widget())->setTextLabel(szLabel); + if (!szTip.isEmpty()) + { + TQToolTip::add(widget(), szTip); + } return true; } bool KviKvsObject_toolbutton::functiontextLabel(KviKvsObjectFunctionCall *c) |
