The shortcut is added to the new Find menubar item and dispatches a MessageFind, which is handled by the SearchController. QtSearchView assures via the ViewLayout that the view is visible when setting focus on the search box.
23 lines
380 B
C++
23 lines
380 B
C++
#ifndef VIEW_LAYOUT_H
|
|
#define VIEW_LAYOUT_H
|
|
|
|
class View;
|
|
|
|
class ViewLayout
|
|
{
|
|
public:
|
|
ViewLayout();
|
|
virtual ~ViewLayout();
|
|
|
|
virtual void addView(View* view) = 0;
|
|
virtual void removeView(View* view) = 0;
|
|
|
|
virtual void showView(View* view) = 0;
|
|
virtual void hideView(View* view) = 0;
|
|
|
|
virtual void loadLayout() = 0;
|
|
virtual void saveLayout() = 0;
|
|
};
|
|
|
|
#endif // VIEW_LAYOUT_H
|