helloSystem / Menu

Global menu bar written in Qt
43 stars 14 forks source link

Populate search menu with the results of QCompleter/QFileSystemModel #144

Closed probonopd closed 1 year ago

probonopd commented 1 year ago

https://github.com/helloSystem/Menu/commit/c7d4f3818ed9023dd91005e2284a13332fd37878

adds the possibility for the user to open paths (beginning with / and ~ from the search box.

Note that the QCompleter (using a QFileSystemModel) is working; we can see a popup for a split-second coming from the completer, but it gets covered by our search results menu quickly. We want to put the search results into this menu instead of the popup drawn by the completer.

I tried to populate the search menu with the results of the completer, but this is not working yet. I also experimented with an event filter but didn't quite get it to work.

Maybe @jsm222 knows how to achieve this?

jsm222 commented 1 year ago

145 only tested on stock FreeBSD.

probonopd commented 1 year ago

Thanks @jsm222. Implemented.