#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,
QVariant const & str = availableModel->data(idx, Qt::DisplayRole);
QModelIndexList qmil =
selectedModel->match(selectedModel->index(0),
- Qt::DisplayRole, str,
- Qt::MatchExactly | Qt::MatchWrap);
+ Qt::DisplayRole, str, 1,
+ Qt::MatchFlags(Qt::MatchExactly | Qt::MatchWrap));
return !qmil.empty();
}
} // namespace frontend
} // namespace lyx
-#include "GuiSelectionManager_moc.cpp"
+#include "moc_GuiSelectionManager.cpp"