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:27:14 +0900 |
| commit | dc40ab2b60be916a25f3ab41aa8a51133a0e5d97 (patch) | |
| tree | cf51f154b8fb571fe875e705e22216b00d189d79 /src/modules/objects/class_toolbutton.cpp | |
| parent | 3870c5a99cb72327413318919b4ff5cd69f2baa6 (diff) | |
| download | kvirc-dc40ab2b60be916a25f3ab41aa8a51133a0e5d97.tar.gz kvirc-dc40ab2b60be916a25f3ab41aa8a51133a0e5d97.zip | |
Fix conversion of TQString to const char* (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 16d42ec4616a84b046cd71f805a009b792a93ec9)
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 35a16c2..1a677e9 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) |
