summaryrefslogtreecommitdiff
path: root/library
Side-by-side diff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp76
1 files changed, 41 insertions, 35 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 187a7e2..8448352 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -489,3 +489,3 @@ static void setScreenSaverInterval( int interval )
that are available to all Qtopia applications.
-
+
Simply by using QPEApplication instead of QApplication, a plain Qt
@@ -499,3 +499,3 @@ static void setScreenSaverInterval( int interval )
\fn void QPEApplication::clientMoused()
-
+
\internal
@@ -505,3 +505,3 @@ static void setScreenSaverInterval( int interval )
\fn void QPEApplication::timeChanged();
-
+
This signal is emitted when the time jumps forward or backwards
@@ -512,3 +512,3 @@ static void setScreenSaverInterval( int interval )
\fn void QPEApplication::clockChanged( bool ampm );
-
+
This signal is emitted when the user changes the style
@@ -520,9 +520,9 @@ static void setScreenSaverInterval( int interval )
\fn void QPEApplication::appMessage( const QCString& msg, const QByteArray& data )
-
+
This signal is emitted when a message is received on the
QPE/Application/<i>appname</i> QCop channel for this application.
-
+
The slot to which you connect this signal uses \a msg and \a data
in the following way:
-
+
\code
@@ -540,3 +540,3 @@ static void setScreenSaverInterval( int interval )
\endcode
-
+
\sa qcop.html
@@ -645,9 +645,15 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
- //###language/font hack; should look it up somewhere
- if ( lang == "ja" || lang == "zh_CN" || lang == "zh_TW" || lang == "ko" ) {
- QFont fn = FontManager::unicodeFont( FontManager::Proportional );
- setFont( fn );
- }
- else {
- Config config( "qpe" );
+ /*
+ * not required. if using one of these languages, you might as well install
+ * a custom font.
+
+ //###language/font hack; should look it up somewhere
+ if ( lang == "ja" || lang == "zh_CN" || lang == "zh_TW" || lang == "ko" ) {
+ QFont fn = FontManager::unicodeFont( FontManager::Proportional );
+ setFont( fn );
+ }
+
+ else {
+ */
+ Config config( "qpe" );
config.setGroup( "Appearance" );
@@ -662,3 +668,3 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
setFont( selectedFont );
- }
+ //}
}
@@ -695,3 +701,3 @@ static void createInputMethodDict()
\a w has any use for text input methods.
-
+
\sa setInputMethodHint()
@@ -707,3 +713,3 @@ QPEApplication::InputMethodHint QPEApplication::inputMethodHint( QWidget * w )
\enum QPEApplication::InputMethodHint
-
+
\value Normal the application sometimes needs text input (the default).
@@ -716,3 +722,3 @@ QPEApplication::InputMethodHint QPEApplication::inputMethodHint( QWidget * w )
as specified by \a mode.
-
+
\sa inputMethodHint()
@@ -1271,5 +1277,5 @@ static bool setWidgetCaptionFromAppName( QWidget* /*mw*/, const QString& /*appNa
// the app name in the program and in the .desktop files.
-
+
AppLnkSet apps( appsPath );
-
+
QList<AppLnk> appsList = apps.children();
@@ -1281,3 +1287,3 @@ static bool setWidgetCaptionFromAppName( QWidget* /*mw*/, const QString& /*appNa
}
- */
+ */
return FALSE;
@@ -1289,3 +1295,3 @@ static bool setWidgetCaptionFromAppName( QWidget* /*mw*/, const QString& /*appNa
consider passing TRUE for \a nomaximize rather than the default FALSE.
-
+
\sa showMainDocumentWidget()
@@ -1324,8 +1330,8 @@ void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize )
consider passing TRUE for \a nomaximize rather than the default FALSE.
-
+
This calls designates the application as
a \link docwidget.html document-oriented\endlink application.
-
+
The \a mw widget must have a slot: setDocument(const QString&).
-
+
\sa showMainWidget()
@@ -1370,3 +1376,3 @@ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize )
will show and start proper once it has finished processing qcop messages.
-
+
\sa keepRunning()
@@ -1383,4 +1389,4 @@ void QPEApplication::setKeepRunning()
Returns whether the application will quit after processing the current
- list of qcop messages.
-
+ list of qcop messages.
+
\sa setKeepRunning()
@@ -1466,3 +1472,3 @@ void QPEApplication::internalSetStyle( const QString &style )
delete lib;
-
+
setStyle ( new QPEStyle ( ));
@@ -1566,3 +1572,3 @@ static void createDict()
Returns the current StylusMode for \a w.
-
+
\sa setStylusOperation()
@@ -1578,3 +1584,3 @@ QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget * w )
\enum QPEApplication::StylusMode
-
+
\value LeftOnly the stylus only generates LeftButton
@@ -1583,3 +1589,3 @@ QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget * w )
if the user uses the press-and-hold gesture.
-
+
See setStylusOperation().
@@ -1589,3 +1595,3 @@ QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget * w )
Causes \a w to receive mouse events according to \a mode.
-
+
\sa stylusOperation()
@@ -1722,3 +1728,3 @@ void QPEApplication::ungrabKeyboard()
application.
-
+
\sa ungrabKeyboard()