[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kleopatra/conf
From: Marc Mutz <mutz () kde ! org>
Date: 2008-02-21 15:19:56
Message-ID: 1203607196.830686.14748.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 777771 by mutz:
Restore the last-seen minimum size, not last-seen _current_ size, as that leads to \
ever-increasing config dialogs
M +4 -3 configuredialog.cpp
--- trunk/KDE/kdepim/kleopatra/conf/configuredialog.cpp #777770:777771
@@ -60,7 +60,7 @@
addModule( "kleopatra_config_appear" );
addModule( "kleopatra_config_dnorder" );
- // We store the size of the dialog on hide, because otherwise
+ // We store the minimum size of the dialog on hide, because otherwise
// the KCMultiDialog starts with the size of the first kcm, not
// the largest one. This way at least after the first showing of
// the largest kcm the size is kept.
@@ -74,9 +74,10 @@
}
void ConfigureDialog::hideEvent( QHideEvent * e ) {
+ const QSize minSize = minimumSizeHint();
KConfigGroup geometry( KGlobal::config(), "Geometry" );
- geometry.writeEntry( "ConfigureDialogWidth", width() );
- geometry.writeEntry( "ConfigureDialogHeight",height() );
+ geometry.writeEntry( "ConfigureDialogWidth", minSize.width() );
+ geometry.writeEntry( "ConfigureDialogHeight",minSize.height() );
KCMultiDialog::hideEvent( e );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic