summaryrefslogtreecommitdiff
path: root/noncore/settings/language
Side-by-side diff
Diffstat (limited to 'noncore/settings/language') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/language/language.pro4
-rw-r--r--noncore/settings/language/main.cpp13
-rw-r--r--noncore/settings/language/settings.h2
3 files changed, 5 insertions, 14 deletions
diff --git a/noncore/settings/language/language.pro b/noncore/settings/language/language.pro
index eb9e0b9..f181f7e 100644
--- a/noncore/settings/language/language.pro
+++ b/noncore/settings/language/language.pro
@@ -1,27 +1,25 @@
-TEMPLATE = app
-CONFIG += qt warn_on release
-DESTDIR = $(OPIEDIR)/bin
+CONFIG += qt warn_on release quick-app
HEADERS = settings.h
SOURCES = language.cpp main.cpp
INTERFACES = languagesettingsbase.ui
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += ../$(OPIEDIR)/include
LIBS += -lqpe
TARGET = language
TRANSLATIONS = ../../../i18n/de/language.ts \
../../../i18n/nl/language.ts \
../../../i18n/xx/language.ts \
../../../i18n/en/language.ts \
../../../i18n/es/language.ts \
../../../i18n/fr/language.ts \
../../../i18n/hu/language.ts \
../../../i18n/ja/language.ts \
../../../i18n/ko/language.ts \
../../../i18n/no/language.ts \
../../../i18n/pl/language.ts \
../../../i18n/pt/language.ts \
../../../i18n/pt_BR/language.ts \
../../../i18n/sl/language.ts \
../../../i18n/zh_CN/language.ts \
../../../i18n/zh_TW/language.ts \
diff --git a/noncore/settings/language/main.cpp b/noncore/settings/language/main.cpp
index a760ff3..8bdf8a5 100644
--- a/noncore/settings/language/main.cpp
+++ b/noncore/settings/language/main.cpp
@@ -1,36 +1,27 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
** This file is part of Qtopia Environment.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#include "settings.h"
#include <qpe/qpeapplication.h>
+#include <opie/oapplicationfactory.h>
-int main(int argc, char** argv)
-{
- QPEApplication a(argc,argv);
-
- LanguageSettings dlg;
-
- a.showMainWidget(&dlg);
-
- return a.exec();
-}
-
+OPIE_EXPORT_APP( OApplicationFactory<LanguageSettings> )
diff --git a/noncore/settings/language/settings.h b/noncore/settings/language/settings.h
index 22cc987..a157d26 100644
--- a/noncore/settings/language/settings.h
+++ b/noncore/settings/language/settings.h
@@ -14,45 +14,47 @@
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <qstrlist.h>
#include <qasciidict.h>
#include "languagesettingsbase.h"
class QPEDialogListener;
class LanguageSettings : public LanguageSettingsBase
{
Q_OBJECT
public:
LanguageSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~LanguageSettings();
+ static QString appName() { return QString::fromLatin1("language"); }
+
protected:
void accept();
void reject();
void done(int);
QStrList langAvail;
private slots:
void applyLanguage();
void reset();
private:
static void setLanguage(const QString&);
static QString actualLanguage;
QPEDialogListener *dl;
};
#endif // SETTINGS_H