[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/pager
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-01-18 0:08:04
Message-ID: 1200614884.636436.7930.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 762847 by aseigo:
use the Applet::shape() when we are drawing the background
M +9 -3 pager.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #762846:762847
@@ -102,6 +102,10 @@
QPainterPath Pager::shape() const
{
+ if (drawStandardBackground()) {
+ return Plasma::Applet::shape();
+ }
+
return Plasma::Widget::shape();
}
@@ -166,6 +170,8 @@
void Pager::recalculateGeometry()
{
if (!m_rects.isEmpty() && contentSize() == m_size) {
+ //kDebug() << "leaving because" << !m_rects.isEmpty() << " and " << contentSize() << "==" <<
+ m_size;
return;
}
@@ -190,10 +196,10 @@
ceil(m_rows * itemHeight + padding * (m_rows - 1)));
updateGeometry();
- //kDebug() << "new size set" << m_size << m_rows << m_columns << columns << itemWidth;
+ kDebug() << "new size set" << m_size << m_rows << m_columns << columns << itemWidth;
- if (m_desktopLayoutOwner && columns != m_columns)
- { // must own manager selection before setting global desktop layout
+ if (m_desktopLayoutOwner && columns != m_columns) {
+ // must own manager selection before setting global desktop layout
m_columns = columns;
NET::Orientation orient = NET::OrientationHorizontal;
NETRootInfo i( QX11Info::display(), 0 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic