diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 237e3176a74d4f300525067e122ea9841d165920..eab39770542bb5c8f125c22765075add7176174f 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -125,6 +125,11 @@ public: /// @brief Restore (and connects) the last used connection (if any) void restoreLastUsedConnection(); + +#ifdef UNITTEST_BUILD + // Returns a pointer to the MainToolBar so that unit tests can change views. + MainToolBar* getMainToolBar(void) { return _mainToolBar; } +#endif public slots: