Add search help pop-up
* Support ! modifier (same as '-') * Create reusable PopupHelpWidget as self-contained popup that can be positioned around a parent widget and will follow the movement and sizing of the window * Eliminated KEEPASSXC_MAIN_WINDOW macro and replaced with getMainWindow() function * Add tests to cover search help show/hide
This commit is contained in:
@@ -148,8 +148,12 @@ private:
|
||||
bool m_appExiting;
|
||||
};
|
||||
|
||||
#define KEEPASSXC_MAIN_WINDOW \
|
||||
(qobject_cast<Application*>(qApp) ? qobject_cast<MainWindow*>(qobject_cast<Application*>(qApp)->mainWindow()) \
|
||||
: nullptr)
|
||||
/**
|
||||
* Return instance of MainWindow created on app load
|
||||
* non-gui instances will return nullptr
|
||||
*
|
||||
* @return MainWindow instance or nullptr
|
||||
*/
|
||||
MainWindow* getMainWindow();
|
||||
|
||||
#endif // KEEPASSX_MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user