[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenox/konq-embed/dropin/kssl
From:       Eva Brucherseifer <eva () kde ! org>
Date:       2006-06-17 20:07:01
Message-ID: 1150574821.075090.22930.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 552429 by eva:

small layout adoptions


 M  +14 -6     ksslinfodlg.cpp  


--- trunk/kdenox/konq-embed/dropin/kssl/ksslinfodlg.cpp #552428:552429
@@ -80,12 +80,17 @@
 KSSLInfoDlg::KSSLInfoDlg(bool secureConnection, QWidget *parent, const char *name, \
                bool modal)
     : KDialog(parent, name, modal, Qt::WDestructiveClose), d(new KSSLInfoDlgPrivate) \
{  
-        QBoxLayout *layout = new QHBoxLayout( this );
-        QScrollView *scrollView = new QScrollView( this );
-        d->_parent = new QWidget( scrollView->viewport() );
-        scrollView->addChild( d->_parent );
-        scrollView->viewport()->setBackgroundMode(d->_parent->backgroundMode());
-        layout->addWidget( scrollView );
+        if (secureConnection)
+        {
+             QBoxLayout *layout = new QHBoxLayout( this );
+             QScrollView *scrollView = new QScrollView( this );
+             d->_parent = new QWidget( scrollView->viewport() );
+             scrollView->addChild( d->_parent );
+             scrollView->viewport()->setBackgroundMode(d->_parent->backgroundMode());
 +             layout->addWidget( scrollView );
+        }
+        else
+           d->_parent = this;
 
         QVBoxLayout *topLayout = new QVBoxLayout(d->_parent, KDialog::marginHint(), \
KDialog::spacingHint());  d->m_secCon = secureConnection;
@@ -196,6 +201,9 @@
         KSSLCertificate::KSSLValidation /*certState*/) {
     // Needed to put the GUI stuff here to get the layouting right
 
+    if (!d->m_secCon)
+        return;
+
     d->_cert = cert;
 
     QGridLayout *layout = new QGridLayout(4, 2, KDialog::spacingHint());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic