|
|
@ -483,8 +483,6 @@ MapInstructions::MapInstructions(QWidget * parent) : QWidget(parent) { |
|
|
|
lane_layout = new QHBoxLayout; |
|
|
|
lane_layout = new QHBoxLayout; |
|
|
|
layout->addLayout(lane_layout); |
|
|
|
layout->addLayout(lane_layout); |
|
|
|
|
|
|
|
|
|
|
|
layout->addStretch(); // Make sure the word-wrapped labels are as small as possible
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main_layout->addWidget(w); |
|
|
|
main_layout->addWidget(w); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -551,6 +549,10 @@ void MapInstructions::updateInstructions(QMap<QString, QVariant> banner, bool fu |
|
|
|
// the size can only be changed afterwards
|
|
|
|
// the size can only be changed afterwards
|
|
|
|
adjustSize(); |
|
|
|
adjustSize(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Word wrap widgets neet fixed width
|
|
|
|
|
|
|
|
primary->setFixedWidth(width() - 250); |
|
|
|
|
|
|
|
secondary->setFixedWidth(width() - 250); |
|
|
|
|
|
|
|
|
|
|
|
if (banner == last_banner) return; |
|
|
|
if (banner == last_banner) return; |
|
|
|
QString primary_str, secondary_str; |
|
|
|
QString primary_str, secondary_str; |
|
|
|
|
|
|
|
|
|
|
|