1 //============================================================================= 2 // MuseScore 3 // Music Composition & Notation 4 // 5 // Copyright (C) 2015 Werner Schweer 6 // 7 // This program is free software; you can redistribute it and/or modify 8 // it under the terms of the GNU General Public License version 2 9 // as published by the Free Software Foundation and appearing in 10 // the file LICENCE.GPL 11 //============================================================================= 12 13 #ifndef __HELP_H__ 14 #define __HELP_H__ 15 16 namespace Ms { 17 18 class HelpEngine; 19 20 //--------------------------------------------------------- 21 // HelpQuery 22 //--------------------------------------------------------- 23 24 class HelpQuery : public QWidgetAction { 25 Q_OBJECT 26 27 QWidget* w; 28 QLineEdit* entry; 29 QList<QAction*> actions; 30 QSignalMapper* mapper; 31 32 bool emptyState; 33 34 private slots: 35 void textChanged(const QString&); 36 void actionTriggered(QObject*); 37 void returnPressed(); 38 39 public slots: 40 void setFocus(); 41 42 public: 43 HelpQuery(QWidget* parent); 44 }; 45 46 47 } // end namespace Ms 48 49 50 #endif 51