QTfrontend/mapContainer.cpp
changeset 682 a37b6966de84
parent 679 8187912107ac
child 788 00720357601f
equal deleted inserted replaced
681:7a20c50988ec 682:a37b6966de84
    32 
    32 
    33 HWMapContainer::HWMapContainer(QWidget * parent) :
    33 HWMapContainer::HWMapContainer(QWidget * parent) :
    34   QWidget(parent), mainLayout(this)
    34   QWidget(parent), mainLayout(this)
    35 {
    35 {
    36 #if QT_VERSION >= 0x040300
    36 #if QT_VERSION >= 0x040300
    37   mainLayout.setContentsMargins (0, 1, 0, QApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
    37   mainLayout.setContentsMargins(QApplication::style()->pixelMetric(QStyle::PM_LayoutLeftMargin),
       
    38                 1,
       
    39                 QApplication::style()->pixelMetric(QStyle::PM_LayoutRightMargin),
       
    40                 QApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
    38 #endif
    41 #endif
    39   imageButt=new QPushButton(this);
    42   imageButt=new QPushButton(this);
    40   imageButt->setObjectName("imageButt");
    43   imageButt->setObjectName("imageButt");
    41   imageButt->setFixedSize(256, 128);
    44   imageButt->setFixedSize(256, 128);
    42   imageButt->setFlat(true);
    45   imageButt->setFlat(true);