QTfrontend/ui/widget/mapContainer.cpp
changeset 8424 225ede46e3dc
parent 8401 87410ae372f6
child 8430 5a5c34a75e1a
equal deleted inserted replaced
8423:8aa450f6cf2c 8424:225ede46e3dc
    63     linearGrad = QLinearGradient(QPoint(128, 0), QPoint(128, 128));
    63     linearGrad = QLinearGradient(QPoint(128, 0), QPoint(128, 128));
    64     linearGrad.setColorAt(1, QColor(0, 0, 192));
    64     linearGrad.setColorAt(1, QColor(0, 0, 192));
    65     linearGrad.setColorAt(0, QColor(66, 115, 225));
    65     linearGrad.setColorAt(0, QColor(66, 115, 225));
    66 
    66 
    67     mainLayout.setContentsMargins(HWApplication::style()->pixelMetric(QStyle::PM_LayoutLeftMargin),
    67     mainLayout.setContentsMargins(HWApplication::style()->pixelMetric(QStyle::PM_LayoutLeftMargin),
    68                                   1,
    68                                   10,
    69                                   HWApplication::style()->pixelMetric(QStyle::PM_LayoutRightMargin),
    69                                   HWApplication::style()->pixelMetric(QStyle::PM_LayoutRightMargin),
    70                                   HWApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
    70                                   HWApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
    71 
    71 
    72     m_staticMapModel = DataManager::instance().staticMapModel();
    72     m_staticMapModel = DataManager::instance().staticMapModel();
    73     m_missionMapModel = DataManager::instance().missionMapModel();
    73     m_missionMapModel = DataManager::instance().missionMapModel();
   129 
   129 
   130     /* Map preview label */
   130     /* Map preview label */
   131 
   131 
   132     QLabel * lblMapPreviewText = new QLabel(this);
   132     QLabel * lblMapPreviewText = new QLabel(this);
   133     lblMapPreviewText->setText(tr("Map preview:"));
   133     lblMapPreviewText->setText(tr("Map preview:"));
   134     leftLayout->addWidget(lblMapPreviewText, 0, Qt::AlignLeft);
   134     leftLayout->addWidget(lblMapPreviewText, 0);
       
   135     leftLayout->addSpacing(2);
   135 
   136 
   136     /* Map Preview */
   137     /* Map Preview */
   137 
   138 
   138     mapPreview = new QLabel(this);
   139     mapPreview = new QLabel(this);
   139     mapPreview->setObjectName("mapPreview");
   140     mapPreview->setObjectName("mapPreview");