// 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"
#include <QToolTip>
#include <QPushButton>
-using lyx::support::LibFileSearch;
+using lyx::support::libFileSearch;
using std::vector;
using std::string;
|| 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")));
- QPixmap qpdown(toqstr(LibFileSearch("images", "down", "xpm")));
+ QPixmap qpup(toqstr(libFileSearch("images", "up", "xpm")));
+ QPixmap qpdown(toqstr(libFileSearch("images", "down", "xpm")));
QVBoxLayout * top = new QVBoxLayout(this);
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"