Fix stuff that slipped in with 18812

* IconPalette.cpp : typo's
 * QLToolbar.cpp   : unused code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18813 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2007-06-17 18:24:27 +00:00
parent f0d56f56ef
commit 2b35bede3d
2 changed files with 2 additions and 3 deletions

View File

@ -116,8 +116,8 @@ IconPalette::IconPalette(QWidget * parent)
: QWidget(parent, Qt::Popup) : QWidget(parent, Qt::Popup)
{ {
layout_ = new QGridLayout(this); layout_ = new QGridLayout(this);
layout->setSpacing(0); layout_->setSpacing(0);
layout->setMargin(3); layout_->setMargin(3);
} }

View File

@ -269,7 +269,6 @@ void QLToolbar::add(ToolbarItem const & item)
ButtonMenu * m = new ButtonMenu(qt_(to_ascii(item.label_)), tb); ButtonMenu * m = new ButtonMenu(qt_(to_ascii(item.label_)), tb);
m->setWindowTitle(qt_(to_ascii(item.label_))); m->setWindowTitle(qt_(to_ascii(item.label_)));
m->setTearOffEnabled(true); m->setTearOffEnabled(true);
//m->setStyleSheet("padding-top: 2px");
connect(this, SIGNAL(updated()), m, SLOT(updateParent())); connect(this, SIGNAL(updated()), m, SLOT(updateParent()));
ToolbarInfo const & tbinfo = toolbarbackend.getToolbar(item.name_); ToolbarInfo const & tbinfo = toolbarbackend.getToolbar(item.name_);
ToolbarInfo::item_iterator it = tbinfo.items.begin(); ToolbarInfo::item_iterator it = tbinfo.items.begin();