-rw-r--r-- | libopie/oapplicationfactory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/oapplicationfactory.h b/libopie/oapplicationfactory.h index 418a82e..ab88d80 100644 --- a/libopie/oapplicationfactory.h +++ b/libopie/oapplicationfactory.h | |||
@@ -225,16 +225,18 @@ struct OApplicationFactory< Opie::Typelist<Product, ProductListTail > > | |||
225 | }; | 225 | }; |
226 | 226 | ||
227 | 227 | ||
228 | /* If the library version should be build */ | 228 | /* If the library version should be build */ |
229 | #ifdef OPIE_APP_INTERFACE | 229 | #ifdef OPIE_APP_INTERFACE |
230 | #define OPIE_EXPORT_APP( factory ) Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( factory ) } | 230 | #define OPIE_EXPORT_APP( factory ) Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( factory ) } |
231 | #else | 231 | #else |
232 | 232 | ||
233 | #include <qpe/qpeapplication.h> | ||
234 | |||
233 | #define OPIE_EXPORT_APP( Factory ) \ | 235 | #define OPIE_EXPORT_APP( Factory ) \ |
234 | int main( int argc, char **argv ) { \ | 236 | int main( int argc, char **argv ) { \ |
235 | QPEApplication a(argc, argv ); \ | 237 | QPEApplication a(argc, argv ); \ |
236 | QWidget *mw = 0;\ | 238 | QWidget *mw = 0;\ |
237 | \ | 239 | \ |
238 | /* method from TT */ \ | 240 | /* method from TT */ \ |
239 | QString executableName = QString::fromLatin1( argv[0] ); \ | 241 | QString executableName = QString::fromLatin1( argv[0] ); \ |
240 | executableName = executableName.right(executableName.length() \ | 242 | executableName = executableName.right(executableName.length() \ |