|
|
@ -128,6 +128,7 @@ void install::next2()
|
|
|
|
// page 2: warnings
|
|
|
|
// page 2: warnings
|
|
|
|
// page 3: apt-get update
|
|
|
|
// page 3: apt-get update
|
|
|
|
// page 4: install package
|
|
|
|
// page 4: install package
|
|
|
|
|
|
|
|
// page 5: process complete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void install::page1()
|
|
|
|
void install::page1()
|
|
|
@ -166,8 +167,8 @@ void install::page3()
|
|
|
|
run.append( "update" );
|
|
|
|
run.append( "update" );
|
|
|
|
|
|
|
|
|
|
|
|
QWidget *consoleWidget = new console(this, run );
|
|
|
|
QWidget *consoleWidget = new console(this, run );
|
|
|
|
widgetStack->addWidget(consoleWidget, 3);
|
|
|
|
widgetStack->addWidget(consoleWidget, 4);
|
|
|
|
widgetStack->raiseWidget(3);
|
|
|
|
widgetStack->raiseWidget(4);
|
|
|
|
|
|
|
|
|
|
|
|
connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( page1() ));
|
|
|
|
connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( page1() ));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -192,11 +193,21 @@ void install::page4()
|
|
|
|
run.append( removePkg );
|
|
|
|
run.append( removePkg );
|
|
|
|
|
|
|
|
|
|
|
|
QWidget *consoleWidget = new console(this, run );
|
|
|
|
QWidget *consoleWidget = new console(this, run );
|
|
|
|
widgetStack->addWidget(consoleWidget, 4);
|
|
|
|
widgetStack->addWidget(consoleWidget, 5);
|
|
|
|
widgetStack->raiseWidget(4);
|
|
|
|
widgetStack->raiseWidget(5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( close() ));
|
|
|
|
|
|
|
|
connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( page5() ));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect( consoleWidget, SIGNAL( finished(bool) ), this, SLOT( close() ));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void install::page5()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
successTextLabel->setText("<b>"+i18n("Installation process is complete!")+"</b><br>"+i18n("You may now close this window."));
|
|
|
|
|
|
|
|
nextPushButton2->hide();
|
|
|
|
|
|
|
|
closePushButton->show();
|
|
|
|
|
|
|
|
widgetStack->raiseWidget(3);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|