-rw-r--r-- | libopie2/opiecore/oapplicationfactory.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libopie2/opiecore/oapplicationfactory.h b/libopie2/opiecore/oapplicationfactory.h index 8516565..8cb0ddd 100644 --- a/libopie2/opiecore/oapplicationfactory.h +++ b/libopie2/opiecore/oapplicationfactory.h @@ -49,16 +49,18 @@ */ #include <qstring.h> #include <qmetaobject.h> #include <qtopia/qcom.h> #include <qtopia/applicationinterface.h> +#include <opie2/odebug.h> + namespace Opie { namespace Core { struct NullType; template <class T, class U> struct Typelist { typedef T Head; @@ -123,19 +125,24 @@ struct OApplicationFactory : public ApplicationInterface { /* * */ virtual QWidget *createMainWindow( const QString& appName, QWidget* parent, const char* name, Qt::WFlags f ) { if (appName == Product::appName() ) return new Product(parent, name, f ); - else + else{ + odebug << "Application Name = " << appName.latin1() << oendl; + odebug << "ProductName = " << Product::appName().latin1() << oendl; + odebug << "The application name is not equal to the product name!" << oendl; + odebug << "Please compare TARGET entry in the project file (*.pro) and the call of the OApplicationFactory< productName >" << oendl; return 0l; } + } virtual QStringList applications()const { QStringList list; list << Product::appName() ; return list; } Q_REFCOUNT |