Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

void qmapcontrol::MapControl::resize ( const QSize  newSize  )  [slot]

Resizes the map to the given size.

Parameters:
newSize The new size

Definition at line 406 of file mapcontrol.cpp.

References qmapcontrol::LayerManager::resize().

    {
        this->size = newSize;
        screen_middle = QPoint(newSize.width()/2, newSize.height()/2);

        this->setMaximumSize(newSize.width()+1, newSize.height()+1);
        layermanager->resize(newSize);
    }


Generated by  Doxygen 1.6.0   Back to index