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

List:       kde-commits
Subject:    branches/kdepim/enterprise4/kdepim/kleopatra/crypto
From:       Christoph Schleifenbaum <christoph () kdab ! net>
Date:       2010-10-21 18:33:05
Message-ID: 20101021183305.23D1AAC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1188235 by cschleifenbaum:

Fix dialog sizes


 M  +5 -0      createchecksumscontroller.cpp  
 M  +7 -0      gui/verifychecksumsdialog.cpp  


--- branches/kdepim/enterprise4/kdepim/kleopatra/crypto/createchecksumscontroller.cpp \
#1188234:1188235 @@ -98,6 +98,11 @@
             KDAB_SET_OBJECT_NAME( vlay );
 
             createdLW.addItems( created );
+            QRect r;
+            for( int i = 0; i < created.size(); ++i )
+                r = r.united( createdLW.visualRect( createdLW.model()->index( 0, i ) \
) ); +            createdLW.setMinimumWidth( qMin( 1024, r.width() + 4 * \
createdLW.frameWidth() ) ); +
             errorsLW.addItems( errors );
 
             vlay.addWidget( &createdLB );
--- branches/kdepim/enterprise4/kdepim/kleopatra/crypto/gui/verifychecksumsdialog.cpp \
#1188234:1188235 @@ -171,6 +171,13 @@
             proxy.setSourceModel( model );
 
             view.setModel( &proxy );
+       
+            QRect r;
+            for( int i = 0; i < proxy.columnCount(); ++i )
+                view.resizeColumnToContents( i );
+            for( int i = 0; i < proxy.rowCount(); ++i )
+                r = r.united( view.visualRect( proxy.index( proxy.columnCount() - 1, \
i ) ) ); +            view.setMinimumSize( QSize( qMin( 1024, r.width() + 4 * \
view.frameWidth() ), qMin( 512, r.height() ) ) );  }
 
         void setBase( const QString & base ) {


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

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