#include <QPushButton>
#include <QAbstractListModel>
+#ifdef KeyPress
+#undef KeyPress
+#endif
+
+#ifdef ControlModifier
+#undef ControlModifier
+#endif
+
namespace lyx {
namespace frontend {
GuiSelectionManager::GuiSelectionManager(
- QListView * avail,
+ QAbstractItemView * avail,
QListView * sel,
QPushButton * add,
QPushButton * del,
QModelIndexList qmil =
selectedModel->match(selectedModel->index(0),
Qt::DisplayRole, str, 1,
- Qt::MatchExactly | Qt::MatchWrap);
+ Qt::MatchFlags(Qt::MatchExactly | Qt::MatchWrap));
return !qmil.empty();
}