diff options
author | Ken Moore <moorekou@gmail.com> | 2015-08-18 10:34:24 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-08-18 10:34:24 -0400 |
commit | be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331 (patch) | |
tree | 73cf77e14ddd6d00da0ca6a009545d649fde39cf /lumina-screenshot/main.cpp | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.tar.gz lumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.tar.bz2 lumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.zip |
Update the lumina theme engine/class so that custom environment variables may be set/loaded for all apps using the theme engine (including the session - which propagates to new non-lumina applications as well)
Diffstat (limited to 'lumina-screenshot/main.cpp')
-rw-r--r-- | lumina-screenshot/main.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lumina-screenshot/main.cpp b/lumina-screenshot/main.cpp index 02f6ae79..448547ca 100644 --- a/lumina-screenshot/main.cpp +++ b/lumina-screenshot/main.cpp @@ -10,18 +10,11 @@ int main(int argc, char ** argv) { + LTHEME::LoadCustomEnvSettings(); QApplication a(argc, argv); LuminaThemeEngine theme(&a); a.setApplicationName("Take Screenshot"); LUtils::LoadTranslation(&a, "lumina-screenshot"); - /*QTranslator translator; - QLocale mylocale; - QString langCode = mylocale.name(); - - if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-screenshot_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_")); - translator.load( QString("lumina-screenshot_") + langCode, LOS::LuminaShare()+"i18n/" ); - a.installTranslator( &translator ); - qDebug() << "Locale:" << langCode;*/ MainUI w; QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); |