[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/lock_logout
From: Marco Martin <notmart () gmail ! com>
Date: 2007-12-31 16:45:52
Message-ID: 1199119552.849576.20707.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 755191 by mart:
-uses again the size stored in the applet
-actually displays the icons whithout the need of resizing
M +5 -1 lockout.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/lock_logout/lockout.cpp #755190:755191
@@ -53,6 +53,8 @@
layout->addItem(icon_logout);
connect(icon_logout, SIGNAL(clicked()), this, SLOT(clickLogout()));
+ //It seems the layout geometry must be calculated by hand for the first time
+ layout->setGeometry(QRectF(0,0, contentSize().width(), contentSize().height()));
}
LockOut::~LockOut()
@@ -71,7 +73,9 @@
break;
default:
//totally arbitrary size
- sizeHint = QSizeF(48,96);
+ if (sizeHint.width() < 10) {
+ sizeHint = QSizeF(48,96);
+ }
break;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic