|
|
|
@ -2,7 +2,6 @@
|
|
|
|
|
#include "regionmapsubview.hpp"
|
|
|
|
|
|
|
|
|
|
#include "regionmap.hpp"
|
|
|
|
|
#include "../../model/settings/usersettings.hpp"
|
|
|
|
|
|
|
|
|
|
CSVWorld::RegionMapSubView::RegionMapSubView (CSMWorld::UniversalId universalId,
|
|
|
|
|
CSMDoc::Document& document)
|
|
|
|
@ -10,13 +9,6 @@ CSVWorld::RegionMapSubView::RegionMapSubView (CSMWorld::UniversalId universalId,
|
|
|
|
|
{
|
|
|
|
|
mRegionMap = new RegionMap (universalId, document, this);
|
|
|
|
|
|
|
|
|
|
int minWidth = 325;
|
|
|
|
|
if(CSMSettings::UserSettings::instance().hasSettingDefinitions("SubView/minimum width"))
|
|
|
|
|
minWidth = CSMSettings::UserSettings::instance().settingValue("SubView/minimum width").toInt();
|
|
|
|
|
else
|
|
|
|
|
CSMSettings::UserSettings::instance().setDefinitions("SubView/minimum width", (QStringList() << "minWidth"));
|
|
|
|
|
mRegionMap->setMinimumWidth(minWidth);
|
|
|
|
|
|
|
|
|
|
setWidget (mRegionMap);
|
|
|
|
|
|
|
|
|
|
connect (mRegionMap, SIGNAL (editRequest (const CSMWorld::UniversalId&, const std::string&)),
|
|
|
|
|