author | zecke <zecke> | 2002-10-06 11:24:13 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-06 11:24:13 (UTC) |
commit | a8a476782082bd340690308673983bc7e3238db5 (patch) (unidiff) | |
tree | e1bf10867cea30701bc800a90ca03e0b99c0dc60 | |
parent | 4209ade719759f4b079bdd40baa4d255ce1e9d3a (diff) | |
download | opie-a8a476782082bd340690308673983bc7e3238db5.zip opie-a8a476782082bd340690308673983bc7e3238db5.tar.gz opie-a8a476782082bd340690308673983bc7e3238db5.tar.bz2 |
Man man,
NO default parameters in the implementation please!
patch by ibotty
-rw-r--r-- | libopie/otabbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/otabbar.cpp b/libopie/otabbar.cpp index b5b93ba..52621ca 100644 --- a/libopie/otabbar.cpp +++ b/libopie/otabbar.cpp | |||
@@ -18,33 +18,33 @@ | |||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | 29 | ||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include "otabbar.h" | 32 | #include "otabbar.h" |
33 | 33 | ||
34 | OTabBar::OTabBar( QWidget *parent = 0, const char *name = 0 ) | 34 | OTabBar::OTabBar( QWidget *parent , const char *name ) |
35 | : QTabBar( parent, name ) | 35 | : QTabBar( parent, name ) |
36 | { | 36 | { |
37 | } | 37 | } |
38 | 38 | ||
39 | void OTabBar::paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const | 39 | void OTabBar::paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const |
40 | { | 40 | { |
41 | 41 | ||
42 | QRect r = br; | 42 | QRect r = br; |
43 | if ( t->iconset) | 43 | if ( t->iconset) |
44 | { | 44 | { |
45 | QIconSet::Mode mode = (t->enabled && isEnabled()) ? QIconSet::Normal : QIconSet::Disabled; | 45 | QIconSet::Mode mode = (t->enabled && isEnabled()) ? QIconSet::Normal : QIconSet::Disabled; |
46 | if ( mode == QIconSet::Normal && has_focus ) { | 46 | if ( mode == QIconSet::Normal && has_focus ) { |
47 | mode = QIconSet::Active; | 47 | mode = QIconSet::Active; |
48 | } | 48 | } |
49 | QPixmap pixmap = t->iconset->pixmap( QIconSet::Small, mode ); | 49 | QPixmap pixmap = t->iconset->pixmap( QIconSet::Small, mode ); |
50 | int pixw = pixmap.width(); | 50 | int pixw = pixmap.width(); |