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

List:       kde-commits
Subject:    kdebase/kcontrol/kdm
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2003-11-17 21:28:07
[Download RAW message or body]

CVS commit by ossi: 

use button margin pixel metric to define the size of the user face
button.

i could do the same with the logo button, but i think it makes more
sense to just replace it with an url requester - a reasonable logo size
is 300x300, which is way too big for the dialog anyway.


  M +3 -1      kdm-users.cpp   1.74


--- kdebase/kcontrol/kdm/kdm-users.cpp  #1.73:1.74
@@ -21,4 +21,5 @@
 #include <sys/types.h>
 
+#include <qstyle.h>
 #include <qlayout.h>
 #include <qlabel.h>
@@ -158,5 +159,6 @@ KDMUsersWidget::KDMUsersWidget(QWidget *
     userbutton->setAcceptDrops( true );
     userbutton->installEventFilter( this ); // for drag and drop
-    userbutton->setFixedSize( 50, 50 );
+    uint sz = style().pixelMetric( QStyle::PM_ButtonMargin ) * 2 + 48;
+    userbutton->setFixedSize( sz, sz );
     connect( userbutton, SIGNAL(clicked()),
              SLOT(slotUserButtonClicked()) );


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

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