mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
fix town hints
This commit is contained in:
@@ -65,7 +65,7 @@ TownHintSelector::TownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & t
|
||||
|
||||
std::map<modes, QString> values = {
|
||||
{ LIKE_ZONE, tr("Like Zone") },
|
||||
{ NOT_LIKE_ZONE, tr("Not like zone (comma seperated)") },
|
||||
{ NOT_LIKE_ZONE, tr("Not like zone (comma separated)") },
|
||||
{ RELATED_TO_ZONE_TERRAIN, tr("Related to zone terrain") }
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ TownHintSelector::TownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & t
|
||||
|
||||
ui->tableWidgetTownHints->resizeColumnsToContents();
|
||||
ui->tableWidgetTownHints->setColumnWidth(0, 300);
|
||||
ui->tableWidgetTownHints->setColumnWidth(1, 100);
|
||||
ui->tableWidgetTownHints->setColumnWidth(1, 150);
|
||||
|
||||
show();
|
||||
}
|
||||
@@ -169,6 +169,7 @@ void TownHintSelector::on_buttonBoxResult_accepted()
|
||||
hint.relatedToZoneTerrain = values.at(0);
|
||||
break;
|
||||
}
|
||||
townHints.push_back(hint);
|
||||
}
|
||||
|
||||
close();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>550</width>
|
||||
<width>600</width>
|
||||
<height>329</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user