-rw-r--r-- | library/categoryselect.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/library/categoryselect.h b/library/categoryselect.h index 7a8e491..8ec1941 100644 --- a/library/categoryselect.h +++ b/library/categoryselect.h @@ -1,4 +1,5 @@ /********************************************************************** ** Copyright (C) 2001 Trolltech AS. All rights reserved. +** Copyright (C) 2003 zecke Introduce Sharp to the glory of default arguments ** ** This file is part of Qtopia Environment. @@ -37,5 +38,5 @@ class CategoryCombo : public QComboBox public: - CategoryCombo( QWidget *parent, const char* name = 0, int width=0); + CategoryCombo( QWidget *parent, const char* name = 0, int width = 0); ~CategoryCombo(); @@ -70,8 +71,15 @@ public: // we need two constructors, the first gets around designer limitations - CategorySelect( QWidget *parent = 0, const char *name = 0, int width = 0 ); + /* + * The Sharp libqpe does have two c'tor and no default argument for int width + * to stay BC cause the Kompany have the original headers and don't compile + * against the normal SDK we need to provide the two symbols as well + * -zecke + */ + CategorySelect( QWidget* parent = 0, const char* name = 0 ); + CategorySelect( QWidget *parent /*= 0 */, const char *name/* = 0*/ , int width /* = 0 if we break bc -zecke */ ); CategorySelect( const QArray<int> &vlCats, const QString &appName, - QWidget *parent = 0, const char *name = 0, + QWidget *parent = 0, const char *name = 0, int width = 0); CategorySelect( const QArray<int> &vlCats, const QString &appName, |