mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Compare commits
2 Commits
7d8c1fcf64
...
a8afca4de0
Author | SHA1 | Date | |
---|---|---|---|
|
a8afca4de0 | ||
|
e30758166e |
@ -613,7 +613,12 @@ void GuiLyXFiles::passParams(string const & data)
|
||||
|
||||
void GuiLyXFiles::selectItem(QString const & item)
|
||||
{
|
||||
QList<QTreeWidgetItem *> twi = filesLW->findItems(item, Qt::MatchExactly | Qt::MatchRecursive);
|
||||
/* Using an intermediary variable flags is needed up to at least
|
||||
* 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())
|
||||
twi.first()->setSelected(true);
|
||||
}
|
||||
|
@ -14,8 +14,6 @@
|
||||
|
||||
#include "InsetCaptionable.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class InsetListingsParams {
|
||||
|
Loading…
Reference in New Issue
Block a user