mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 11:23:45 +00:00
Remove workaround that is not needed anymore with Qt 5.12
See discussion at https://stackoverflow.com/questions/10755058/qflags-enum-type-conversion-fails-all-of-a-sudden
This commit is contained in:
parent
29c4e4706e
commit
8837f8ca8c
@ -613,12 +613,7 @@ void GuiLyXFiles::passParams(string const & data)
|
|||||||
|
|
||||||
void GuiLyXFiles::selectItem(QString const & item)
|
void GuiLyXFiles::selectItem(QString const & item)
|
||||||
{
|
{
|
||||||
/* Using an intermediary variable flags is needed up to at least
|
QList<QTreeWidgetItem *> twi = filesLW->findItems(item, Qt::MatchExactly | Qt::MatchRecursive);
|
||||||
* Qt 5.5 because of a subtle namespace issue. See:
|
|
||||||
* https://stackoverflow.com/questions/10755058/qflags-enum-type-conversion-fails-all-of-a-sudden
|
|
||||||
* for details.*/
|
|
||||||
Qt::MatchFlags const flags(Qt::MatchExactly|Qt::MatchRecursive);
|
|
||||||
QList<QTreeWidgetItem *> twi = filesLW->findItems(item, flags);
|
|
||||||
if (!twi.isEmpty())
|
if (!twi.isEmpty())
|
||||||
twi.first()->setSelected(true);
|
twi.first()->setSelected(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user