author | simon <simon> | 2002-03-25 19:19:51 (UTC) |
---|---|---|
committer | simon <simon> | 2002-03-25 19:19:51 (UTC) |
commit | 956522a9355051294e12e85e564d8ae1f0b928a3 (patch) (unidiff) | |
tree | 1926e6b270be501ed9fa4d5b89d839666c2c82ba /library | |
parent | 7c0676ba302dc1cfa4348423544ea2d66417c1bd (diff) | |
download | opie-956522a9355051294e12e85e564d8ae1f0b928a3.zip opie-956522a9355051294e12e85e564d8ae1f0b928a3.tar.gz opie-956522a9355051294e12e85e564d8ae1f0b928a3.tar.bz2 |
- no default arguments in method implementations
-rw-r--r-- | library/categorymenu.cpp | 2 | ||||
-rw-r--r-- | library/imageedit.cpp | 2 | ||||
-rw-r--r-- | library/menubutton.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/library/categorymenu.cpp b/library/categorymenu.cpp index 52a127c..e733107 100644 --- a/library/categorymenu.cpp +++ b/library/categorymenu.cpp | |||
@@ -12,33 +12,33 @@ | |||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "categorymenu.h" | 21 | #include "categorymenu.h" |
22 | #include "backend/categories.h" | 22 | #include "backend/categories.h" |
23 | #include "categoryselect.h" | 23 | #include "categoryselect.h" |
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qmap.h> | 25 | #include <qmap.h> |
26 | 26 | ||
27 | CategoryMenu::CategoryMenu( const QString &n, bool ig = TRUE, | 27 | CategoryMenu::CategoryMenu( const QString &n, bool ig = TRUE, |
28 | QWidget *parent = 0, const char *name = 0 ) : | 28 | QWidget *parent, const char *name ) : |
29 | QPopupMenu(parent, name), | 29 | QPopupMenu(parent, name), |
30 | appName(n), | 30 | appName(n), |
31 | includeGlobal(ig) | 31 | includeGlobal(ig) |
32 | { | 32 | { |
33 | currentMid = 1; | 33 | currentMid = 1; |
34 | reload(); | 34 | reload(); |
35 | connect(this, SIGNAL(activated(int)), this, SLOT(mapMenuId(int))); | 35 | connect(this, SIGNAL(activated(int)), this, SLOT(mapMenuId(int))); |
36 | } | 36 | } |
37 | 37 | ||
38 | CategoryMenu::~CategoryMenu( ) | 38 | CategoryMenu::~CategoryMenu( ) |
39 | { | 39 | { |
40 | } | 40 | } |
41 | 41 | ||
42 | void CategoryMenu::reload() | 42 | void CategoryMenu::reload() |
43 | { | 43 | { |
44 | clear(); | 44 | clear(); |
diff --git a/library/imageedit.cpp b/library/imageedit.cpp index 7f98ebb..0c22448 100644 --- a/library/imageedit.cpp +++ b/library/imageedit.cpp | |||
@@ -7,33 +7,33 @@ | |||
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "imageedit.h" | 20 | #include "imageedit.h" |
21 | #include <qpainter.h> | 21 | #include <qpainter.h> |
22 | 22 | ||
23 | ImageEdit::ImageEdit( QWidget *parent = 0, const char *name = 0 ) | 23 | ImageEdit::ImageEdit( QWidget *parent, const char *name ) |
24 | : QScrollView( parent, name, WNorthWestGravity | WResizeNoErase ), buffer() | 24 | : QScrollView( parent, name, WNorthWestGravity | WResizeNoErase ), buffer() |
25 | { | 25 | { |
26 | buffer.resize( size() ); | 26 | buffer.resize( size() ); |
27 | buffer.fill( colorGroup().color( QColorGroup::Base ) ); | 27 | buffer.fill( colorGroup().color( QColorGroup::Base ) ); |
28 | } | 28 | } |
29 | 29 | ||
30 | ImageEdit::~ImageEdit() | 30 | ImageEdit::~ImageEdit() |
31 | { | 31 | { |
32 | 32 | ||
33 | } | 33 | } |
34 | 34 | ||
35 | void ImageEdit::contentsMousePressEvent( QMouseEvent *e ) | 35 | void ImageEdit::contentsMousePressEvent( QMouseEvent *e ) |
36 | { | 36 | { |
37 | lastPos = e->pos(); | 37 | lastPos = e->pos(); |
38 | } | 38 | } |
39 | 39 | ||
diff --git a/library/menubutton.cpp b/library/menubutton.cpp index c34383a..6b1fa2b 100644 --- a/library/menubutton.cpp +++ b/library/menubutton.cpp | |||
@@ -88,33 +88,33 @@ void MenuButton::clear() | |||
88 | a separator. | 88 | a separator. |
89 | */ | 89 | */ |
90 | void MenuButton::insertItems( const QStringList& items ) | 90 | void MenuButton::insertItems( const QStringList& items ) |
91 | { | 91 | { |
92 | QStringList::ConstIterator it=items.begin(); | 92 | QStringList::ConstIterator it=items.begin(); |
93 | for (; it!=items.end(); ++it) { | 93 | for (; it!=items.end(); ++it) { |
94 | if ( (*it) == "--" ) | 94 | if ( (*it) == "--" ) |
95 | insertSeparator(); | 95 | insertSeparator(); |
96 | else | 96 | else |
97 | insertItem(*it); | 97 | insertItem(*it); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | /*! | 101 | /*! |
102 | Inserts an \a icon and \a text into the menu. | 102 | Inserts an \a icon and \a text into the menu. |
103 | */ | 103 | */ |
104 | void MenuButton::insertItem( const QIconSet& icon, const QString& text=QString::null ) | 104 | void MenuButton::insertItem( const QIconSet& icon, const QString& text ) |
105 | { | 105 | { |
106 | pop->insertItem(icon, text, nitems++); | 106 | pop->insertItem(icon, text, nitems++); |
107 | if ( nitems==1 ) select(0); | 107 | if ( nitems==1 ) select(0); |
108 | } | 108 | } |
109 | 109 | ||
110 | /*! | 110 | /*! |
111 | Inserts \a text into the menu. | 111 | Inserts \a text into the menu. |
112 | */ | 112 | */ |
113 | void MenuButton::insertItem( const QString& text ) | 113 | void MenuButton::insertItem( const QString& text ) |
114 | { | 114 | { |
115 | pop->insertItem(text, nitems++); | 115 | pop->insertItem(text, nitems++); |
116 | if ( nitems==1 ) select(0); | 116 | if ( nitems==1 ) select(0); |
117 | } | 117 | } |
118 | 118 | ||
119 | /*! | 119 | /*! |
120 | Inserts a visual separator into the menu. | 120 | Inserts a visual separator into the menu. |