Changeset bdc8227


Ignore:
Timestamp:
05/05/14 12:55:24 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
ef33538
Parents:
d7d7973
Message:

Add a splashscreen to the startup of the new AppCafe? since it might take a couple seconds to probe the pkg database.

Location:
src-qt4/pc-softwaremanager
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/SoftwareManager.qrc

    rb6102c8 rbdc8227  
    11<RCC> 
    22  <qresource> 
     3    <file>icons/splash.png</file> 
    34    <file>icons/info-tips.png</file> 
    45    <file>icons/stat-installed.png</file> 
  • src-qt4/pc-softwaremanager/main.cpp

    rd25fc88 rbdc8227  
    44#include <qtsingleapplication.h> 
    55#include <QDebug> 
     6#include <QSplashScreen> 
    67 
    78#include "mainUI.h" 
     
    4445      return a.exec(); 
    4546    }else{ 
     47     QPixmap pix(":/icons/splash.png"); 
     48     QSplashScreen SS(pix); 
     49        SS.showMessage(QObject::tr("Starting Up.."), Qt::AlignHCenter | Qt::AlignBottom); 
     50        SS.show(); 
     51        a.processEvents(); 
     52        a.processEvents(); 
     53 
    4654      //Already on PBI-NG 
    4755      MainUI w;  
    4856      w.ProgramInit(); 
    4957      w.show(); 
     58      SS.finish(&w); 
    5059      QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) ); 
    5160      a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); 
  • src-qt4/pc-softwaremanager/mainUI.cpp

    ra1eda3b rbdc8227  
    5252   //Now startup the backend 
    5353   qDebug() << "Startup Backend"; 
     54   QApplication::processEvents(); 
    5455   PBI = new PBIBackend(); 
    5556   //Initialize the Installed tab 
  • src-qt4/pc-softwaremanager/migrateUI.cpp

    rd25fc88 rbdc8227  
    77  proc = new QProcess(this); 
    88        proc->setProcessChannelMode(QProcess::MergedChannels); 
    9   connect(proc, SIGNAL(finished(int, QProcess:ExitStatus)), this, SLOT(procFinished()) ); 
     9  connect(proc, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(procFinished()) ); 
    1010  connect(proc, SIGNAL(readyReadStandardOutput()), this, SLOT(updateProgress()) ); 
    1111  connect(ui->push_start, SIGNAL(clicked()), this, SLOT(startMigration()) ); 
    12   connect(ui->push_reboot, SIGNAL(clicked()), this, SLOT(systemReboot()) ); 
     12  connect(ui->push_reboot, SIGNAL(clicked()), this, SLOT(restartSystem()) ); 
    1313  connect(ui->actionClose, SIGNAL(triggered()), this, SLOT(closeWindow()) ); 
    1414} 
Note: See TracChangeset for help on using the changeset viewer.