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 | |||
@@ -32,8 +32,9 @@ using namespace Opie; | |||
32 | #include "resource.h" | 32 | #include "resource.h" |
33 | #include <qtabwidget.h> | 33 | #include <qtabwidget.h> |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #define WELLENREITER_VERSION "V1.0.3 (unofficial)" | ||
36 | 37 | ||
37 | /* | 38 | /* |
38 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 39 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
39 | * name 'name' and widget flags set to 'f' | 40 | * name 'name' and widget flags set to 'f' |
@@ -104,9 +105,16 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
104 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); | 105 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); |
105 | PixmapLabel1_3_2->setLineWidth( 2 ); | 106 | PixmapLabel1_3_2->setLineWidth( 2 ); |
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 ) ); |
111 | 119 | ||
112 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); | 120 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); |
@@ -167,16 +175,16 @@ WellenreiterBase::~WellenreiterBase() | |||
167 | bool WellenreiterBase::event( QEvent* ev ) | 175 | bool WellenreiterBase::event( QEvent* ev ) |
168 | { | 176 | { |
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; |
181 | } | 189 | } |
182 | 190 | ||