// Qt defines a macro 'signals' that clashes with a boost namespace.
// All is well if the namespace is visible first.
-#include "QtView.h"
+#include "GuiView.h"
#include "QCommandBuffer.h"
#include "QCommandEdit.h"
|| e->x() > width() || e->y() > height()) {
hide();
} else {
- emit itemPressed(currentItem());
+ // emit signal
+ itemPressed(currentItem());
}
}
} // end of anon
-QCommandBuffer::QCommandBuffer(QtView * view, ControlCommandBuffer & control, QWidget * parent)
+QCommandBuffer::QCommandBuffer(GuiView * view, ControlCommandBuffer & control, QWidget * parent)
: QWidget(parent), view_(view), controller_(control)
{
QPixmap qpup(toqstr(libFileSearch("images", "up", "xpm")));
QHBoxLayout * layout = new QHBoxLayout(0);
QPushButton * up = new QPushButton(qpup, "", this);
- QToolTip::add(up, qt_("Previous command"));
+ up->setToolTip(qt_("Previous command"));
connect(up, SIGNAL(clicked()), this, SLOT(up()));
QPushButton * down = new QPushButton(qpdown, "", this);
- QToolTip::add(down, qt_("Next command"));
+ down->setToolTip(qt_("Next command"));
connect(down, SIGNAL(clicked()), this, SLOT(down()));
edit_ = new QCommandEdit(this);
} // namespace frontend
} // namespace lyx
+
+#include "QCommandBuffer_moc.cpp"