diff options
author | Ken Moore <ken@pcbsd.org> | 2015-02-25 15:36:02 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-02-25 15:36:02 -0500 |
commit | e2f47beba0abb27edca3c82c4a77d6907c13ac21 (patch) | |
tree | 97476123a7cfe3f9d3d5092e2f383dd2373974e6 | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-e2f47beba0abb27edca3c82c4a77d6907c13ac21.tar.gz lumina-e2f47beba0abb27edca3c82c4a77d6907c13ac21.tar.bz2 lumina-e2f47beba0abb27edca3c82c4a77d6907c13ac21.zip |
Have lumina-search load the icons a moment after the application is done initializing. This should help speed things up a tiny bit on slower systems.
-rw-r--r-- | lumina-search/MainUI.cpp | 3 | ||||
-rw-r--r-- | lumina-search/main.cpp | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lumina-search/MainUI.cpp b/lumina-search/MainUI.cpp index 2a17217d..6597f589 100644 --- a/lumina-search/MainUI.cpp +++ b/lumina-search/MainUI.cpp @@ -11,7 +11,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ ui->setupUi(this); //load the designer file - setupIcons(); + //setupIcons(); ui->radio_apps->setChecked(true); //always default to starting here ui->tool_stop->setVisible(false); //no search running initially ui->tool_configure->setVisible(false); //app search initially set @@ -50,6 +50,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ this->show(); workthread->start(); + QTimer::singleShot(0,this, SLOT(setupIcons()) ); } MainUI::~MainUI(){ diff --git a/lumina-search/main.cpp b/lumina-search/main.cpp index 3739cf70..305c388b 100644 --- a/lumina-search/main.cpp +++ b/lumina-search/main.cpp @@ -17,14 +17,6 @@ int main(int argc, char ** argv) //qDebug() << "Load Translations..."; a.setApplicationName("Search for..."); LUtils::LoadTranslation(&a, "lumina-search"); - /*QTranslator translator; - QLocale mylocale; - QString langCode = mylocale.name(); - - if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-search_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); - translator.load( QString("lumina-search_") + langCode, LOS::LuminaShare()+"i18n/" ); - a.installTranslator( &translator ); - qDebug() << "Locale:" << langCode;*/ MainUI w; QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); |