Ejemplo n.º 1
0
Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    QHBoxLayout *mainLayout = new QHBoxLayout();
    _mapView = new QMMapView(QMMapView::RoadMap,
                             QMCoordinate(55.8495931,4.3640841),
                             15);//15 = niveau du zoom
    _controls = new QWidget();

    _addr = new QTextEdit();
    _button = new QPushButton();

    buildControls();
    mainLayout->addWidget(_mapView, 1);
    mainLayout->addWidget(_controls, 1);
    mainLayout->addWidget(_addr, 1);
    mainLayout->addWidget(_button, 1);

    setLayout(mainLayout);


    resize(1200, 600);
    connect(_mapView, SIGNAL(mapLoaded()), this, SLOT(onMapLoaded()));
    connect(_mapView, SIGNAL(regionChanged(QMCoordinateRegion)),
            this, SLOT(onRegionChanged(QMCoordinateRegion)));
    connect(_mapView, SIGNAL(mapBecameIdle()), this, SLOT(onMapBecameIdle()));
    connect(_button, SIGNAL(clicked()),this,SLOT(newPos()));
}
Ejemplo n.º 2
0
BurnUpChartCreator::BurnUpChartCreator(DatabaseManager *db, QObject *parent)
    : ProjectAnalyzer(db, parent)
{
    buildControls();
}