diff options
Diffstat (limited to 'src/processingdialog.cpp')
-rw-r--r-- | src/processingdialog.cpp | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/processingdialog.cpp b/src/processingdialog.cpp index a545a39..b241190 100644 --- a/src/processingdialog.cpp +++ b/src/processingdialog.cpp @@ -50,7 +50,7 @@ ProcessingDialogHeader::ProcessingDialogHeader(TQWidget* parent) frame->setFrameStyle( TQFrame::NoFrame ); frame->setLineWidth( 0 ); // we need to set the minimum size for the window - frame->setMinimumWidth(400); + frame->setMinimumWidth(300); vbox->addWidget( frame ); TQGridLayout* gbox = new TQGridLayout( frame, 1, 1, 0, KDialog::spacingHint() ); TQHBoxLayout* centerbox = new TQHBoxLayout( KDialog::spacingHint() ); @@ -58,46 +58,14 @@ ProcessingDialogHeader::ProcessingDialogHeader(TQWidget* parent) centerbox->setMargin(0); seperatorbox->setMargin(0); - TQWidget* ticon = new TQWidget( frame ); - KIconLoader * ldr = KGlobal::iconLoader(); - TQPixmap trinityPixmap = ldr->loadIcon("kmenu", KIcon::Panel, KIcon::SizeLarge, KIcon::DefaultState, 0L, true); - - // Manually draw the alpha portions of the icon onto the widget background color... - TQRgb backgroundRgb = ticon->paletteBackgroundColor().rgb(); - TQImage correctedImage = trinityPixmap.convertToImage(); - correctedImage = correctedImage.convertDepth(32); - correctedImage.setAlphaBuffer(true); - int w = correctedImage.width(); - int h = correctedImage.height(); - for (int y = 0; y < h; ++y) { - TQRgb *ls = (TQRgb *)correctedImage.scanLine( y ); - for (int x = 0; x < w; ++x) { - TQRgb l = ls[x]; - float alpha_adjust = tqAlpha( l )/255.0; - int r = int( (tqRed( l ) * alpha_adjust) + (tqRed( backgroundRgb ) * (1.0-alpha_adjust)) ); - int g = int( (tqGreen( l ) * alpha_adjust) + (tqGreen( backgroundRgb ) * (1.0-alpha_adjust)) ); - int b = int( (tqBlue( l ) * alpha_adjust) + (tqBlue( backgroundRgb ) * (1.0-alpha_adjust)) ); - int a = int( 255 ); - ls[x] = tqRgba( r, g, b, a ); - } - } - trinityPixmap.convertFromImage(correctedImage); - - ticon->setBackgroundPixmap(trinityPixmap); - ticon->setMinimumSize(trinityPixmap.size()); - ticon->setMaximumSize(trinityPixmap.size()); - ticon->resize(trinityPixmap.size()); - centerbox->addWidget( ticon, AlignCenter ); - TQWidget* swidget = new TQWidget( frame ); swidget->resize(2, frame->sizeHint().width()); swidget->setBackgroundColor(Qt::black); seperatorbox->addWidget( swidget, AlignCenter ); - TQLabel* label = new TQLabel( i18n("Trinity Desktop Environment"), frame ); + TQLabel* label = new TQLabel( i18n("LDAP/Kerberos Realm Configuration"), frame ); TQFont fnt = label->font(); fnt.setBold( true ); - fnt.setPointSize( fnt.pointSize() * 3 / 2 ); label->setFont( fnt ); centerbox->addWidget( label, AlignCenter ); |