[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KPassivePopup made nicer
From: Gioele Barabucci <ml () gioelebarabucci ! com>
Date: 2002-06-10 21:42:38
[Download RAW message or body]
The attached patch makes KPassivePopup ouput the title in the middle and
nicely space.
I think we should start using KPassivePopup in many places instead of
[QK]MessageBox, it is a very nice toy!
--
Gioele Barabucci (Gb])
) mailto:dev@gioelebarabucci.com
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) ) /Magic Pie^Oasis
["passive_center.patch" (text/x-diff)]
? passive_center.patch
Index: kpassivepopup.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kpassivepopup.cpp,v
retrieving revision 1.5
diff -u -3 -p -r1.5 kpassivepopup.cpp
--- kpassivepopup.cpp 2002/06/07 10:29:46 1.5
+++ kpassivepopup.cpp 2002/06/10 21:37:01
@@ -63,10 +63,12 @@ void KPassivePopup::setView( QWidget *ch
layout->activate();
}
-void KPassivePopup::setView( const QString &caption, const QString &text, const QPixmap &icon )
+void KPassivePopup::setView( const QString &caption, const QString &text,
+ const QPixmap &icon )
{
// kdDebug() << "KPassivePopup::setView " << caption << ", " << text << endl;
- QWidget *vb = new QVBox( this );
+ QVBox *vb = new QVBox( this );
+ vb->setSpacing( KDialog::spacingHint() );
QHBox *hb=0;
if ( !icon.isNull() ) {
@@ -82,11 +84,12 @@ void KPassivePopup::setView( const QStri
QFont fnt = ttl->font();
fnt.setBold( true );
ttl->setFont( fnt );
- };
+ ttl->setAlignment( Qt::AlignHCenter );
+ }
msg = new QLabel( text, vb, "msg_label" );
- setView( vb );
+ setView( (QWidget*)vb );
}
void KPassivePopup::setView( const QString &caption, const QString &text )
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic