fix tooltips in toolbar

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4779 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-25 05:04:01 +00:00
parent d8a3c3c0f3
commit 07e56bf085
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2002-07-25 John Levon <levon@movementarian.org>
* Toolbar_pimpl.C: fix tooltips
2002-07-25 John Levon <levon@movementarian.org>
* QCommandEdit.C:

View File

@ -249,16 +249,12 @@ void Toolbar::Pimpl::add(int action)
break;
}
default: {
char const * tooltip = _(lyxaction.helpText(action)).c_str();
QToolButton * tb =
new QToolButton(getIconPixmap(action),
tooltip, tooltip,
_(lyxaction.helpText(action)).c_str(), "",
proxy_.get(), SLOT(button_selected()), toolbars_.back());
map_[tb] = action;
QToolTip::add(tb, tooltip);
break;
}
}