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-21 20:54:51 +0900 |
| commit | 4d13f1a2267c6864b98c5a46631b1e2bbe3c024a (patch) | |
| tree | 72d524c66325b2c554bafcf86225d26664373444 /src/modules/options | |
| parent | f14a1c5c8c988ef6901545040aabedf8027ecc18 (diff) | |
| download | kvirc-feat/more-fixes-for-cmake.tar.gz kvirc-feat/more-fixes-for-cmake.zip | |
Fix conversion of TQString to const char* (modules)feat/more-fixes-for-cmake
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/options')
| -rw-r--r-- | src/modules/options/libkvioptions.cpp | 2 | ||||
| -rw-r--r-- | src/modules/options/optw_messages.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/options/libkvioptions.cpp b/src/modules/options/libkvioptions.cpp index bdca2099..8607a684 100644 --- a/src/modules/options/libkvioptions.cpp +++ b/src/modules/options/libkvioptions.cpp @@ -193,7 +193,7 @@ static bool options_kvs_cmd_edit(KviKvsModuleCommandCall * c) KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("option",KVS_PT_STRING,0,szOption) KVSM_PARAMETERS_END(c) - KviOptionsWidgetInstanceEntry * e = g_pOptionsInstanceManager->findInstanceEntry(szOption); + KviOptionsWidgetInstanceEntry * e = g_pOptionsInstanceManager->findInstanceEntry(szOption.utf8().data()); if(!e) { c->warning(__tr2qs_ctx("No such options page class name %Q","options"),&szOption); diff --git a/src/modules/options/optw_messages.cpp b/src/modules/options/optw_messages.cpp index 9eabcce6..efdec4eb 100644 --- a/src/modules/options/optw_messages.cpp +++ b/src/modules/options/optw_messages.cpp @@ -292,7 +292,7 @@ void KviMessageListViewItem::paintCell(TQPainter * p,const TQColorGroup &,int,in // skip the msgtype prefix TQString txt = (g_msgtypeOptionsTable[m_iOptId].name + 7); txt += " ("; - txt += __tr2qs_no_xgettext(TQString::fromUtf8(m_pMsgType->type())); + txt += __tr2qs_no_xgettext(m_pMsgType->type()); txt += ")"; p->drawText(24,listView()->itemMargin(),w - 24,height() - (listView()->itemMargin() * 2),TQt::AlignLeft | TQt::AlignVCenter,txt); if(isSelected()) @@ -615,7 +615,7 @@ void KviMessageColorsOptionsWidget::load() //tqDebug("SYMLINK RETURNS %d (%d)",::symlink(szGlobal.ptr(),szLocal.ptr())); //tqDebug("ERRNO (%d)",errno); // "int _ = " used to silence warning from compiler about unchecked returned values - int _ = symlink(szGlobal,szLocal); + int _ = symlink(szGlobal.utf8().data(),szLocal.utf8().data()); // FIXME: Do it also on windows... #endif |
