Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@gmail.com>2013-04-05 19:08:21 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:52:49 +0300
commit4e2156d602564c24e00c8ffc8fa773369761b38a (patch)
treea73f664e5a17c4cb74810ea97161d8189de81b6c /qt_tstfrm
parentae5cd5e86c9faf561269fdc3a25069c57203a70b (diff)
Test for CountryStatusDisplay
Diffstat (limited to 'qt_tstfrm')
-rw-r--r--qt_tstfrm/gui_test_widget.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt_tstfrm/gui_test_widget.hpp b/qt_tstfrm/gui_test_widget.hpp
index baad545787..24ffe14241 100644
--- a/qt_tstfrm/gui_test_widget.hpp
+++ b/qt_tstfrm/gui_test_widget.hpp
@@ -2,6 +2,7 @@
#include "gl_test_widget.hpp"
#include "../../gui/controller.hpp"
+#include "../../base/strings_bundle.hpp"
#include <QMouseEvent>
template <class T, void (T::*)(gui::Controller*)>
@@ -31,6 +32,7 @@ private:
shared_ptr<gui::Controller> m_controller;
shared_ptr<graphics::Screen> m_cacheScreen;
+ shared_ptr<StringsBundle> m_stringBundle;
public:
@@ -66,6 +68,11 @@ public:
rp.m_InvalidateFn = bind(&GUITestWidget<TTest>::invalidate, this);
rp.m_Density = graphics::EDensityMDPI;
+ m_stringBundle.reset(new StringsBundle());
+ m_stringBundle->SetDefaultString("country_status_download", "Download^");
+
+ m_controller->SetStringsBundle(m_stringBundle.get());
+
InitImpl(m_controller, bool_tag<has_init_with_controller<TTest, TTest>::value >());
m_controller->SetRenderParams(rp);