author | zecke <zecke> | 2003-05-12 13:07:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-12 13:07:37 (UTC) |
commit | 4765c92ba3dcbd829cb2adde4a097dfe6283d7cc (patch) (unidiff) | |
tree | 7a13062058737af1564863f9caec692f145fdfaa /library/qpeapplication.h | |
parent | 65a043f4ac4b43967947c1e8d99c629bb993f065 (diff) | |
download | opie-4765c92ba3dcbd829cb2adde4a097dfe6283d7cc.zip opie-4765c92ba3dcbd829cb2adde4a097dfe6283d7cc.tar.gz opie-4765c92ba3dcbd829cb2adde4a097dfe6283d7cc.tar.bz2 |
Hospital Hacking Session
Install libopie.qm make apps fully translatable...
refactor installing trans into a method instead of having the same code copy
and pasted three times
-rw-r--r-- | library/qpeapplication.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 0bad8b7..e35c008 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -109,32 +109,35 @@ private slots: | |||
109 | void hideOrQuit(); | 109 | void hideOrQuit(); |
110 | 110 | ||
111 | protected: | 111 | protected: |
112 | bool qwsEventFilter( QWSEvent * ); | 112 | bool qwsEventFilter( QWSEvent * ); |
113 | void internalSetStyle( const QString &style ); | 113 | void internalSetStyle( const QString &style ); |
114 | void prepareForTermination(bool willrestart); | 114 | void prepareForTermination(bool willrestart); |
115 | virtual void restart(); | 115 | virtual void restart(); |
116 | virtual void shutdown(); | 116 | virtual void shutdown(); |
117 | bool eventFilter( QObject *, QEvent * ); | 117 | bool eventFilter( QObject *, QEvent * ); |
118 | void timerEvent( QTimerEvent * ); | 118 | void timerEvent( QTimerEvent * ); |
119 | bool raiseAppropriateWindow(); | 119 | bool raiseAppropriateWindow(); |
120 | virtual void tryQuit(); | 120 | virtual void tryQuit(); |
121 | 121 | ||
122 | virtual void polish ( QWidget * ); // this is actually implemented in qt_override.cpp (!) | 122 | virtual void polish ( QWidget * ); // this is actually implemented in qt_override.cpp (!) |
123 | 123 | ||
124 | private: | 124 | private: |
125 | #ifndef QT_NO_TRANSLATION | ||
126 | void installTranslation( const QString& baseName ); | ||
127 | #endif | ||
125 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); | 128 | void mapToDefaultAction( QWSKeyEvent *ke, int defKey ); |
126 | 129 | ||
127 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 130 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
128 | QCopChannel *sysChannel; | 131 | QCopChannel *sysChannel; |
129 | QCopChannel *pidChannel; | 132 | QCopChannel *pidChannel; |
130 | #endif | 133 | #endif |
131 | QPEApplicationData *d; | 134 | QPEApplicationData *d; |
132 | 135 | ||
133 | bool reserved_sh; | 136 | bool reserved_sh; |
134 | 137 | ||
135 | 138 | ||
136 | 139 | ||
137 | }; | 140 | }; |
138 | 141 | ||
139 | inline void QPEApplication::showDialog( QDialog* d, bool nomax ) | 142 | inline void QPEApplication::showDialog( QDialog* d, bool nomax ) |
140 | { | 143 | { |