[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/lock_logout
From: Konstantinos Smanis <kon.smanis () gmail ! com>
Date: 2009-02-13 17:49:36
Message-ID: 1234547376.796013.26305.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 925637 by ksmanis:
FEATURE: 177021
CCBUG: 183148
1.Provide tooltips for the lockout plasmoid. (The above keywords refer to this fix)
2.Also fixed a bug which was introduced by my previous commit: the plasmoid didn't \
resize to the maximum size allocated by plasma when showing/hiding buttons. (eg. when \
on a panel)
M +7 -0 lockout.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/lock_logout/lockout.cpp #925636:925637
@@ -21,6 +21,7 @@
// Plasma
#include <Plasma/IconWidget>
+#include <Plasma/ToolTipManager>
// Qt
#include <QtGui/QWidget> // QWIDGETSIZE_MAX
@@ -67,11 +68,16 @@
m_showLogoutButton = cg.readEntry("showLogoutButton", true);
#endif
+ //Tooltip strings maybe should be different (eg. "Leave..."->"Logout")?
m_iconLock = new Plasma::IconWidget(KIcon("system-lock-screen"), "", this);
connect(m_iconLock, SIGNAL(clicked()), this, SLOT(clickLock()));
+ Plasma::ToolTipContent lockToolTip(i18n("Lock"),i18n("Lock the \
screen"),m_iconLock->icon()); + \
Plasma::ToolTipManager::self()->setContent(m_iconLock, lockToolTip);
m_iconLogout = new Plasma::IconWidget(KIcon("system-shutdown"), "", this);
connect(m_iconLogout, SIGNAL(clicked()), this, SLOT(clickLogout()));
+ Plasma::ToolTipContent logoutToolTip(i18n("Leave..."),i18n("Logout, turn off or \
restart the computer"),m_iconLogout->icon()); + \
Plasma::ToolTipManager::self()->setContent(m_iconLogout, logoutToolTip);
showButtons();
}
@@ -239,6 +245,7 @@
}
setConfigurationRequired(!m_showLockButton && !m_showLogoutButton);
+ checkLayout();
#endif // !Q_OS_WIN
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic