break;
case ToolbarItem::LAYOUTS:
layout_ = new LayoutBox(this, owner_);
+ QObject::connect(this, SIGNAL(iconSizeChanged(QSize)),
+ layout_, SLOT(setIconSize(QSize)));
addWidget(layout_);
break;
case ToolbarItem::MINIBUFFER:
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTextFrame>
-#include <QToolBar>
using namespace std;
using namespace lyx::support;
}
-LayoutBox::LayoutBox(QToolBar * bar, GuiView & owner)
+LayoutBox::LayoutBox(GuiView & owner)
: d(new Private(this, owner))
{
setSizeAdjustPolicy(QComboBox::AdjustToContents);
QObject::connect(this, SIGNAL(activated(int)),
this, SLOT(selected(int)));
- QObject::connect(bar, SIGNAL(iconSizeChanged(QSize)),
- this, SLOT(setIconSize(QSize)));
d->owner_.setLayoutDialog(this);
updateContents(true);
#include <QComboBox>
-class QToolBar;
-
namespace lyx {
class DocumentClass;
{
Q_OBJECT
public:
- LayoutBox(QToolBar *, GuiView &);
+ LayoutBox(GuiView &);
/// select the right layout in the combobox.
void set(docstring const & layout);