From 5756cddc64376c3ef36be9359a18e9fa3415c005 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Sun, 22 Apr 2007 10:05:17 +0000 Subject: [PATCH] * src/frontend/qt4/QLToolbar.C: fix translation of toolbar git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17907 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QLToolbar.C | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontends/qt4/QLToolbar.C b/src/frontends/qt4/QLToolbar.C index dea075ca17..dc539912f5 100644 --- a/src/frontends/qt4/QLToolbar.C +++ b/src/frontends/qt4/QLToolbar.C @@ -195,8 +195,8 @@ void QLToolbar::add(ToolbarItem const & item) QToolButton * tb = new QToolButton; tb->setCheckable(true); tb->setIcon(QPixmap(toqstr(getIcon(FuncRequest(LFUN_TABULAR_INSERT))))); - tb->setToolTip(toqstr(item.label_)); - tb->setStatusTip(toqstr(item.label_)); + tb->setToolTip(qt_(to_ascii(item.label_))); + tb->setStatusTip(qt_(to_ascii(item.label_))); InsertTableWidget * iv = new InsertTableWidget(owner_, tb); connect(tb, SIGNAL(clicked(bool)), iv, SLOT(show(bool))); connect(iv, SIGNAL(visible(bool)), tb, SLOT(setChecked(bool))); @@ -207,9 +207,9 @@ void QLToolbar::add(ToolbarItem const & item) case ToolbarItem::ICONPALETTE: { QToolButton * tb = new QToolButton(this); tb->setCheckable(true); - tb->setToolTip(toqstr(item.label_)); - tb->setStatusTip(toqstr(item.label_)); - tb->setText(toqstr(item.label_)); + tb->setToolTip(qt_(to_ascii(item.label_))); + tb->setStatusTip(qt_(to_ascii(item.label_))); + tb->setText(qt_(to_ascii(item.label_))); connect(this, SIGNAL(iconSizeChanged(const QSize &)), tb, SLOT(setIconSize(const QSize &))); @@ -239,15 +239,15 @@ void QLToolbar::add(ToolbarItem const & item) case ToolbarItem::POPUPMENU: { QToolButton * tb = new QToolButton; tb->setPopupMode(QToolButton::InstantPopup); - tb->setToolTip(toqstr(item.label_)); - tb->setStatusTip(toqstr(item.label_)); - tb->setText(toqstr(item.label_)); + tb->setToolTip(qt_(to_ascii(item.label_))); + tb->setStatusTip(qt_(to_ascii(item.label_))); + tb->setText(qt_(to_ascii(item.label_))); FileName icon_path = libFileSearch("images/math", item.name_, "xpm"); tb->setIcon(QIcon(toqstr(icon_path.absFilename()))); connect(this, SIGNAL(iconSizeChanged(const QSize &)), tb, SLOT(setIconSize(const QSize &))); - ButtonMenu * m = new ButtonMenu(toqstr(item.label_), tb); + ButtonMenu * m = new ButtonMenu(qt_(to_ascii(item.label_)), tb); connect(this, SIGNAL(updated()), m, SLOT(updateParent())); ToolbarInfo const & tbinfo = toolbarbackend.getToolbar(item.name_); ToolbarInfo::item_iterator it = tbinfo.items.begin();