diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-03-07 20:24:08 +0100 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2021-03-11 15:04:46 +0100 |
commit | 70defe5e6d9498c5c6011eee50c4dc506abebd61 (patch) | |
tree | c2d269ffeaf389637607efa6547ff8eb2d41cd45 /kommander/editor/newformimpl.cpp | |
parent | 4c43d1fbb66a296958ed1d0dbddf3f8ac4466130 (diff) | |
download | tdewebdev-70defe5e6d9498c5c6011eee50c4dc506abebd61.tar.gz tdewebdev-70defe5e6d9498c5c6011eee50c4dc506abebd61.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kommander/editor/newformimpl.cpp')
-rw-r--r-- | kommander/editor/newformimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kommander/editor/newformimpl.cpp b/kommander/editor/newformimpl.cpp index 7b8e330b..5aeafc5d 100644 --- a/kommander/editor/newformimpl.cpp +++ b/kommander/editor/newformimpl.cpp @@ -56,7 +56,7 @@ void FormItem::insert() TQString n = "Form" + TQString::number(++_forms); FormWindow *fw = 0; FormFile *ff = new FormFile(FormFile::createUnnamedFileName(), true); - fw = new FormWindow(ff, MainWindow::self, MainWindow::self->qWorkspace(), n); + fw = new FormWindow(ff, MainWindow::self, MainWindow::self->qWorkspace(), n.utf8()); MetaDataBase::addEntry(TQT_TQOBJECT(fw)); TQWidget *w = 0L; if (fType == Dialog) @@ -107,7 +107,7 @@ static void unifyFormName(FormWindow *fw, TQWorkspace *qworkspace) int i = 1; while (lst.findIndex(n) != -1) n = origName + TQString::number(i++); - fw->setName(n); + fw->setName(n.utf8()); fw->setCaption(n); } |