Exemplo n.º 1
0
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{

    browser_ = new WebBrowser;
    marcadores_=  new QMenu("Marcadores");
    preferencias_=new QMenu("Preferencias");
    home_=new QAction("cambiar home",this);
    historial_=new QMenu ("Historial");
    change_ = new ChangeH;

    preferencias_->addAction(home_);
    setCentralWidget(browser_);
    menuBar()->addMenu(marcadores_);
    menuBar()->addMenu(preferencias_);
    menuBar()->addMenu(historial_);

    connect(browser_,SIGNAL(s_marcador(QString)),this,SLOT(marcador_s(QString)));
    connect(home_,SIGNAL(triggered()),this,SLOT(homePage_s()));
    connect(change_,SIGNAL(s_change(QUrl)),browser_, SLOT(set_home_page_s(QUrl)));
    connect(browser_,SIGNAL(s_historial(QString)),this,SLOT(historial_s(QString)));


}
void WizardPageChoix::change(QString nom)
{
    emit s_change(nom);
}