18 #ifndef QGSLOCATORWIDGET_H 
   19 #define QGSLOCATORWIDGET_H 
   26 #include <QFocusEvent> 
   27 #include <QHeaderView> 
   32 class QgsLocatorResultsView;
 
   72     void search( 
const QString &
string );
 
   78     void invalidateResults();
 
   85     void configTriggered();
 
   88     bool eventFilter( QObject *obj, QEvent *event ) 
override;
 
   93     void triggerSearchAndShowList();
 
   94     void configMenuAboutToShow();
 
   95     void scheduleDelayedPopup();
 
   97     void showContextMenu( 
const QPoint &point );
 
  103     QgsLocatorResultsView *mResultsView = 
nullptr;
 
  105     QList<QMetaObject::Connection> mCanvasConnections;
 
  106     QMenu *mMenu = 
nullptr;
 
  110     bool mHasSelectedResult = 
false;
 
  112     void acceptCurrentEntry();
 
  125     QgsLocatorFilterFilter( 
QgsLocatorWidget *widget, QObject *parent = 
nullptr );
 
  130     QString name()
 const override { 
return QStringLiteral( 
"filters" );}
 
  131     QString 
displayName()
 const override { 
return QString(); }
 
  146 class GUI_EXPORT QgsLocatorResultsView : 
public QTreeView
 
  155     QgsLocatorResultsView( QWidget *parent = 
nullptr );
 
  160     void recalculateSize();
 
  165     void selectNextResult();
 
  170     void selectPreviousResult();
 
  179 #endif // QGSLOCATORWIDGET_H