author | mickeyl <mickeyl> | 2004-05-03 14:15:54 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-05-03 14:15:54 (UTC) |
commit | 1ca586e85263f06f0de2e58d174da34fee4bf937 (patch) (unidiff) | |
tree | 2852372b1f8c8a143a8b8bb37d41842891c8ff73 /noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |
parent | aad04cffe30ef133edcd5051ce7e486f27599d83 (diff) | |
download | opie-1ca586e85263f06f0de2e58d174da34fee4bf937.zip opie-1ca586e85263f06f0de2e58d174da34fee4bf937.tar.gz opie-1ca586e85263f06f0de2e58d174da34fee4bf937.tar.bz2 |
I hereby declare his Version 1.0.3.
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiterbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index 9bdf3e0..a29d520 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -34,4 +34,5 @@ using namespace Opie; | |||
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #define WELLENREITER_VERSION "V1.0.3 (unofficial)" | ||
36 | 37 | ||
37 | /* | 38 | /* |
@@ -106,5 +107,12 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
106 | PixmapLabel1_3_2->setMargin( 0 ); | 107 | PixmapLabel1_3_2->setMargin( 0 ); |
107 | PixmapLabel1_3_2->setMidLineWidth( 0 ); | 108 | PixmapLabel1_3_2->setMidLineWidth( 0 ); |
108 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); | 109 | |
110 | QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" ); | ||
111 | QPainter draw( &logo ); | ||
112 | draw.setPen( Qt::black ); | ||
113 | draw.setFont( QFont( "Fixed", 8 ) ); | ||
114 | draw.drawText( 30, 10, WELLENREITER_VERSION ); | ||
115 | |||
116 | PixmapLabel1_3_2->setPixmap( logo ); | ||
109 | PixmapLabel1_3_2->setScaledContents( TRUE ); | 117 | PixmapLabel1_3_2->setScaledContents( TRUE ); |
110 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); | 118 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); |
@@ -169,12 +177,12 @@ bool WellenreiterBase::event( QEvent* ev ) | |||
169 | bool ret = QWidget::event( ev ); | 177 | bool ret = QWidget::event( ev ); |
170 | if ( ev->type() == QEvent::ApplicationFontChange ) { | 178 | if ( ev->type() == QEvent::ApplicationFontChange ) { |
171 | //QFont Log_2_font( Log_2->font() ); | 179 | //QFont Log_2_font( Log_2->font() ); |
172 | //Log_2_font.setFamily( "adobe-courier" ); | 180 | //Log_2_font.setFamily( "adobe-courier" ); |
173 | //Log_2_font.setPointSize( 8 ); | 181 | //Log_2_font.setPointSize( 8 ); |
174 | //Log_2->setFont( Log_2_font ); | 182 | //Log_2->setFont( Log_2_font ); |
175 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 183 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
176 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 184 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
177 | TextLabel1_4_2_font.setPointSize( 10 ); | 185 | TextLabel1_4_2_font.setPointSize( 10 ); |
178 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 186 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
179 | } | 187 | } |
180 | return ret; | 188 | return ret; |