summaryrefslogtreecommitdiffstats
path: root/src/sq_glwidget_stuff.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-02-16 11:30:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-09 21:06:22 +0900
commitcaf01321779aee7b959c29a74f15fdc23a81c527 (patch)
treed63baeb7a8bb39899db1eee077ab71df37149f9e /src/sq_glwidget_stuff.cpp
parent37453a729671f7c92987a3cce03cf540de067f9c (diff)
downloadksquirrel-caf01321.tar.gz
ksquirrel-caf01321.zip
Fix bad code, this was highlighted when building with cmake and ninja
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 591ce28f0128f324165b19f6ff653d158711614b)
Diffstat (limited to 'src/sq_glwidget_stuff.cpp')
-rw-r--r--src/sq_glwidget_stuff.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sq_glwidget_stuff.cpp b/src/sq_glwidget_stuff.cpp
index bde87c4..1101d60 100644
--- a/src/sq_glwidget_stuff.cpp
+++ b/src/sq_glwidget_stuff.cpp
@@ -229,7 +229,7 @@ void SQ_GLWidget::slotProperties()
{
for(std::vector<fmt_metaentry>::iterator it = tab->finfo.meta.begin();it != tab->finfo.meta.end();++it)
{
- meta.append(TQPair<TQString,TQString>((*it).group, (*it).data));
+ meta.append(TQPair<TQString,TQString>((*it).group.c_str(), (*it).data.c_str()));
}
}
@@ -238,8 +238,8 @@ void SQ_GLWidget::slotProperties()
list << tab->quickImageInfo
<< TQString::fromLatin1("%1x%2").arg(tab->finfo.image[tab->current].w).arg(tab->finfo.image[tab->current].h)
<< TQString::fromLatin1("%1").arg(tab->finfo.image[tab->current].bpp)
- << tab->finfo.image[tab->current].colorspace
- << tab->finfo.image[tab->current].compression
+ << tab->finfo.image[tab->current].colorspace.c_str()
+ << tab->finfo.image[tab->current].compression.c_str()
<< sz
<< TQString::fromLatin1("%1").arg((double)real_size / tab->fmt_size, 0, 'f', 2)
<< ((tab->finfo.image[tab->current].interlaced) ? i18n("yes") : i18n("no"))
@@ -871,7 +871,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu->insertItem(i18n("Image"), menuImage);
#define SQ_ADD_KACTION(b) \
- (new TDEAction(TQString(), b, this, TQ_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b)))
+ (new TDEAction(TQString(), b, this, TQ_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b).local8Bit()))
id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("document-save-as", TDEIcon::Desktop, TDEIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQ_SLOT(activate()));