#include <QHBoxLayout>
#include <QKeyEvent>
-#include <QLayout>
#include <QListWidget>
#include <QMouseEvent>
#include <QPixmap>
#include <QVBoxLayout>
using namespace std;
+using namespace lyx::support;
namespace lyx {
namespace frontend {
-using support::prefixIs;
-
-
namespace {
class QTempListBox : public QListWidget {
void GuiCommandBuffer::dispatch()
{
- dispatch(fromqstr(edit_->text()));
+ QString cmd = edit_->text();
view_->setFocus();
edit_->setText(QString());
edit_->clearFocus();
+ dispatch(fromqstr(cmd));
}
list->resize(list->sizeHint());
QPoint const pos = edit_->mapToGlobal(QPoint(0, 0));
- int const y = std::max(0, pos.y() - list->height());
+ int const y = max(0, pos.y() - list->height());
list->move(pos.x(), y);