diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-02-15 17:49:56 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-02-15 17:49:56 +0000 |
commit | 9154fd080fb06e779c6e3beee74c82382232c77e (patch) | |
tree | 5bb0283b40527dee87c4a3078c812a10dcfc58bf /kde-base/kdeplasma-addons | |
parent | Bump to 2.5, closes #234844 (diff) | |
download | historical-9154fd080fb06e779c6e3beee74c82382232c77e.tar.gz historical-9154fd080fb06e779c6e3beee74c82382232c77e.tar.bz2 historical-9154fd080fb06e779c6e3beee74c82382232c77e.zip |
Fixing lancelot compatibility issue with qt-4.5.(bug #258758) . Thanks to Robert Piasek
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'kde-base/kdeplasma-addons')
-rw-r--r-- | kde-base/kdeplasma-addons/ChangeLog | 9 | ||||
-rw-r--r-- | kde-base/kdeplasma-addons/Manifest | 4 | ||||
-rw-r--r-- | kde-base/kdeplasma-addons/files/lancelot-qt45.patch | 263 | ||||
-rw-r--r-- | kde-base/kdeplasma-addons/kdeplasma-addons-4.2.0-r1.ebuild | 54 |
4 files changed, 328 insertions, 2 deletions
diff --git a/kde-base/kdeplasma-addons/ChangeLog b/kde-base/kdeplasma-addons/ChangeLog index a80181b56208..878a7449f84d 100644 --- a/kde-base/kdeplasma-addons/ChangeLog +++ b/kde-base/kdeplasma-addons/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for kde-base/kdeplasma-addons # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeplasma-addons/ChangeLog,v 1.7 2009/02/01 07:02:39 jmbsvicetto Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeplasma-addons/ChangeLog,v 1.8 2009/02/15 17:49:56 hwoarang Exp $ + +*kdeplasma-addons-4.2.0-r1 (15 Feb 2009) + + 15 Feb 2009; Markos Chandras <hwoarang@gentoo.org> + +files/lancelot-qt45.patch, +kdeplasma-addons-4.2.0-r1.ebuild: + Fixing lancelot compatibility with qt-4.5 ( bug #258758 ). Thanks to + Robert Piasek for backporting upstream patch 01 Feb 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> kdeplasma-addons-4.2.0.ebuild: diff --git a/kde-base/kdeplasma-addons/Manifest b/kde-base/kdeplasma-addons/Manifest index 6835d559c835..a9076aaf1ddf 100644 --- a/kde-base/kdeplasma-addons/Manifest +++ b/kde-base/kdeplasma-addons/Manifest @@ -1,6 +1,8 @@ +AUX lancelot-qt45.patch 8420 RMD160 cd81bd189b9d6586d4ba5f999fb49fe2dcd377a1 SHA1 1acbd515b4d21e723f9d27cc3d7f51c060d21b4f SHA256 5bc08c1efce81559c28930af210cb0526903d11af0300246879b65040332e134 DIST kdeplasma-addons-4.1.4.tar.bz2 4074997 RMD160 d2cbe23d84badc8aebb8e1ad0e5aeb6b4c1a0bd6 SHA1 b2b9be3d00e96922ef1822639413f9ea665807f2 SHA256 6357e3ddb80f59760561a1787e460eba992cf4602917a61a57ea50e97ac3a5d7 DIST kdeplasma-addons-4.2.0.tar.bz2 4269323 RMD160 d2c26ea4dd6eac54d56b447f5c8fb322d5fdab77 SHA1 3db5c880182dc770a5c88f4dcb016b6237ed1dd8 SHA256 8c2d917788873521d0379a060a2b049d1eec4917e9b7c1cb90a632c0bb392d6b EBUILD kdeplasma-addons-4.1.4.ebuild 1015 RMD160 5fc20062c8dd48924343852616d7a687c6137794 SHA1 634036037c9456ee0cbf4c75bf11289442723595 SHA256 7d193b3f3162d7b0d746831205295aaaf19c11e112a091be4e17d56a442c5c13 +EBUILD kdeplasma-addons-4.2.0-r1.ebuild 1585 RMD160 538988d7f902f73535d2d855691fb7d1c29207a3 SHA1 a02edcbe4fe0148b6b99f7a4c848ce26d0ba1306 SHA256 14e43c506a0c9287eab569ac40532907efe4498630abb737bed1aaab0805f297 EBUILD kdeplasma-addons-4.2.0.ebuild 1537 RMD160 bfd326b7455a99cbbee359a0b87f5e9d5f0fe596 SHA1 8bbb6a95cca60f2a1296257767dc9e2d20248413 SHA256 41934b4b53a2bb6d1bad4436cd6978e5d2358fa0350228df49fd68c0439b0d2a -MISC ChangeLog 1278 RMD160 b57af8c68ac92bdac735fc687cd298834e75566d SHA1 e43e9f2b3ba1e371f6e41d28bf87a484a8c07c27 SHA256 9b5b5532400724cf2ad83c7dece3573246d4e0b26e4d6c07693bed937128331f +MISC ChangeLog 1554 RMD160 eaaf5ad274685a4854dcaeeb4a63b56ea60fc2fb SHA1 8721120c5528c667f14e3f79dec5ff4fbb07dc70 SHA256 fb14949c80c6b46a06b7de0e55b3dca959bf0ed9487e29fc5f420b03fcf67102 MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a diff --git a/kde-base/kdeplasma-addons/files/lancelot-qt45.patch b/kde-base/kdeplasma-addons/files/lancelot-qt45.patch new file mode 100644 index 000000000000..b1c9887d55dc --- /dev/null +++ b/kde-base/kdeplasma-addons/files/lancelot-qt45.patch @@ -0,0 +1,263 @@ +--- applets/lancelot/libs/lancelot/Global.cpp~ 2008-12-21 20:20:19.000000000 +0000 ++++ applets/lancelot/libs/lancelot/Global.cpp 2009-02-14 20:57:06.000000000 +0000 +@@ -326,8 +326,11 @@ + + d->confMain = new KConfig("lancelot" + app + "rc"); + ++ Plasma::Theme::defaultTheme()->setUseGlobalSettings(true); ++ qDebug() << "What is the plasma theme: " << Plasma::Theme::defaultTheme()->themeName(); + QString search = "desktoptheme/" + Plasma::Theme::defaultTheme()->themeName() + "/lancelot/" + app + "theme.config"; + kDebug() << search; ++ qDebug() << "Trying:" << search; + + QString path = KStandardDirs::locate( "data", search ); + if (path == "") { +@@ -338,6 +341,8 @@ + path = "lancelotrc"; + } + kDebug() << path; ++ ++ qDebug() << "Using theme:" << path; + d->confTheme = new KConfig(path); + + Instance::Private::activeInstance = this; +--- applets/lancelot/libs/lancelot/widgets/PassagewayView.cpp~ 2009-01-06 17:23:55.000000000 +0000 ++++ applets/lancelot/libs/lancelot/widgets/PassagewayView.cpp 2009-02-14 21:35:13.000000000 +0000 +@@ -20,6 +20,10 @@ + #include "PassagewayView.h" + + #include <QWidget> ++#include <QGraphicsSceneMouseEvent> ++#include <QGraphicsView> ++#include <QApplication> ++#include <climits> + + namespace Lancelot { + +@@ -65,6 +69,8 @@ + : layout(NULL), buttonsLayout(NULL), listsLayout(NULL), parent(p), focusIndex(0) + { + parent->setLayout(layout = new NodeLayout()); ++ layout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); ++ layout->setMaximumSize(INT_MAX, INT_MAX); + + layout->addItem( + buttonsLayout = new QGraphicsLinearLayout(Qt::Horizontal), +@@ -72,6 +78,9 @@ + NodeLayout::NodeCoordinate(1, 0, 0, 32) + ); + ++ buttonsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); ++ buttonsLayout->setMaximumSize(INT_MAX, INT_MAX); ++ + ExtenderButton * spacer = + new ExtenderButton(parent); + spacer->setGroupByName("PassagewayView-Spacer"); +@@ -88,6 +97,9 @@ + + listsLayout->setSizer(new PassagewayViewSizer()); + ++ listsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); ++ listsLayout->setMaximumSize(INT_MAX, INT_MAX); ++ + buttonsLayout->setSpacing(0.0); + + next(Step("", QIcon(), entranceModel)); +@@ -161,7 +173,11 @@ + path.takeLast(); + + buttonsLayout->removeItem(button); +- layout->activate(); ++ ++ // This really shouldn't be needed :( ++ buttonsLayout->setGeometry(buttonsLayout->geometry()); ++ ++ + listsLayout->pop(); + + button->deleteLater(); +@@ -196,19 +212,18 @@ + list->setCategoriesGroupByName("ActionListView-CategoriesPass"); + list->setCategoriesActivable(true); + +- // if (lists.count() > 0) { +- // lists.last()->clearSelection(); +- // } +- + focusIndex = lists.count(); + lists.append(list); + +- // list->initialSelection(); + path.append(step); + + buttonsLayout->addItem(button); + listsLayout->push(list); + ++ // This really shouldn't be needed :( ++ buttonsLayout->setGeometry(buttonsLayout->geometry()); ++ listsLayout->setGeometry(listsLayout->geometry()); ++ + QObject::connect( + list, SIGNAL(activated(int)), + parent, SLOT(listItemActivated(int)) +--- applets/lancelot/app/src/models/ContactsKopete.cpp 2009/02/14 16:58:48 926097 ++++ applets/lancelot/app/src/models/ContactsKopete.cpp 2009/02/15 10:37:30 926398 +@@ -22,7 +22,7 @@ + #include <KStandardDirs> + #include <KDebug> + +-#define UPDATE_INTERVAL 30000 ++#define UPDATE_INTERVAL 15000 + #define CHECK_RUNNING_INTERVAL 5000 + + namespace Models { +--- applets/lancelot/libs/lancelot/layouts/CardLayout.cpp 2008/08/16 21:14:21 848082 ++++ applets/lancelot/libs/lancelot/layouts/CardLayout.cpp 2009/02/15 10:37:30 926398 +@@ -31,6 +31,35 @@ + { + } + ++ void _hide(QGraphicsWidget * widget) { ++ // since Qt has some strange bug (or it ++ // just doesn't behave as it should, ++ // this is a temporary solution ++ // so instead of hiding the item, ++ // we are moving it somewhere ++ // out of bounds ++ // this is a very dirty hack! ++ ++ QRectF g = widget->geometry(); ++ if (g.left() < 0) { ++ return; ++ } ++ g.moveRight(- g.left()); ++ widget->setGeometry(g); ++ } ++ ++ void _show(QGraphicsWidget * widget) { ++ // see the comment in _hide ++ ++ QRectF g = widget->geometry(); ++ if (g.left() >= 0) { ++ return; ++ } ++ ++ g.moveLeft(- g.right()); ++ widget->setGeometry(g); ++ } ++ + void relayout() + { + QRectF g = q->geometry(); +@@ -40,9 +69,11 @@ + } + + foreach (QGraphicsWidget * l, widgets) { +- l->show(); ++ _show(l); + l->setGeometry(g); +- if (shown != l) l->hide(); ++ if (shown != l) { ++ _hide(l); ++ } + } + } + +@@ -107,6 +138,7 @@ + if (widget) { + d->widgets[id] = widget; + // widget->hide(); // BUGS in QT ++ d->_hide(widget); + } else { + d->removeItem(id); + } +@@ -142,17 +174,17 @@ + if (!d->widgets.contains(id)) return; + if (d->shown == d->widgets[id]) return; + if (d->shown) { +- d->shown->hide(); ++ d->_hide(d->shown); + } + d->shown = d->widgets[id]; + d->shown->setGeometry(geometry()); +- d->shown->show(); ++ d->_show(d->shown); + } + + void CardLayout::hideAll() + { + if (!d->shown) return; +- d->shown->hide(); ++ d->_hide(d->shown); + d->shown = NULL; + } + +--- applets/lancelot/libs/lancelot/layouts/FullBorderLayout.cpp 2008/11/24 16:25:50 888490 ++++ applets/lancelot/libs/lancelot/layouts/FullBorderLayout.cpp 2009/02/15 10:37:30 926398 +@@ -41,10 +41,10 @@ + { + } + +- QMap< FullBorderLayout::Place, QGraphicsLayoutItem * > itemPositions; +- QMap< FullBorderLayout::Border, qreal > sizes; ++ QMap < FullBorderLayout::Place, QGraphicsLayoutItem * > itemPositions; ++ QMap < FullBorderLayout::Border, qreal > sizes; + +- void calculateBorderSizes(qreal & top, qreal & bottom, qreal & left, qreal & right) const ++ void calculateBorderSizes(qreal & top, qreal & bottom, qreal & left, qreal & right) // const + { + // top + top = sizes[FullBorderLayout::TopBorder]; +@@ -121,7 +121,8 @@ + void FullBorderLayout::setGeometry(const QRectF & rect) + { + QGraphicsLayout::setGeometry(rect); +- kDebug() << rect; ++ // WHATA HELL!? ++ qDebug() << "FullBorderLayout::setGeometry()"; + + QRectF effectiveRect = geometry(); + qreal left = 0, top = 0, right = 0, bottom = 0; +@@ -158,7 +159,6 @@ + itemRect.setHeight(effectiveRect.height() - topBorder - bottomBorder); + + if (d->itemPositions[Right]) { +- kDebug() << "right" << itemRect; + d->itemPositions[Right]->setGeometry(itemRect); + } + +@@ -197,7 +197,6 @@ + ); + + if (d->itemPositions[Center]) { +- kDebug() << "center" << itemRect; + d->itemPositions[Center]->setGeometry(itemRect); + } + } +--- applets/lancelot/libs/lancelot/widgets/CustomListView.cpp 2009/02/08 10:49:35 923110 ++++ applets/lancelot/libs/lancelot/widgets/CustomListView.cpp 2009/02/15 10:37:30 926398 +@@ -163,9 +163,9 @@ + QGraphicsWidget * item = itemForIndex(i); + QRectF itemGeometry = item->geometry(); + if (viewport.intersects(itemGeometry)) { +- if (q->isVisible()) { ++ //if (q->isVisible()) { + item->show(); +- } ++ //} + transform.reset(); + if (!viewport.contains(itemGeometry)) { + QRectF clip = viewport.intersect(itemGeometry); +--- applets/lancelot/libs/lancelot/widgets/ScrollPane.cpp 2009/01/18 18:26:08 913061 ++++ applets/lancelot/libs/lancelot/widgets/ScrollPane.cpp 2009/02/15 10:37:30 926398 +@@ -229,8 +229,10 @@ + + void ScrollPane::setGeometry(const QRectF & rect) //> + { ++ QRectF old_geometry = geometry(); + Widget::setGeometry(rect); + ++ if (rect == old_geometry) return ; + scrollableWidgetSizeUpdateNeeded(); + } //< + diff --git a/kde-base/kdeplasma-addons/kdeplasma-addons-4.2.0-r1.ebuild b/kde-base/kdeplasma-addons/kdeplasma-addons-4.2.0-r1.ebuild new file mode 100644 index 000000000000..4ba4ce358ffc --- /dev/null +++ b/kde-base/kdeplasma-addons/kdeplasma-addons-4.2.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeplasma-addons/kdeplasma-addons-4.2.0-r1.ebuild,v 1.1 2009/02/15 17:49:56 hwoarang Exp $ + +EAPI="2" + +KMNAME="kdeplasma-addons" +OPENGL_REQUIRED="optional" +inherit kde4-base + +DESCRIPTION="Extra Plasma applets and engines." +HOMEPAGE="http://www.kde.org/" +LICENSE="GPL-2 LGPL-2" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="debug xinerama" + +DEPEND=" + !kdeprefix? ( !kde-misc/lancelot-menu[kdeprefix=] ) + >=kde-base/krunner-${PV}:${SLOT} + >=kde-base/plasma-workspace-${PV}:${SLOT} + opengl? ( >=kde-base/kdelibs-${PV}:${SLOT}[opengl] ) + xinerama? ( x11-proto/xineramaproto ) +" +RDEPEND="${DEPEND} + xinerama? ( x11-libs/libXinerama ) +" + +PATCHES=( + "${FILESDIR}/lancelot-qt45.patch" +) + +src_prepare() { + sed -i -e 's/${KDE4WORKSPACE_PLASMACLOCK_LIBRARY}/plasmaclock/g' \ + -e 's/${KDE4WORKSPACE_WEATHERION_LIBRARY}/weather_ion/g' \ + -e 's/${KDE4WORKSPACE_TASKMANAGER_LIBRARY}/taskmanager/g' \ + applets/{binary-clock,fuzzy-clock,weather_station,lancelot/app/src}/CMakeLists.txt \ + || die "Failed to patch CMake files" + + sed -i -e 's/(KDE4_PLASMA_OPENGL_FOUND)/(KDE4_PLASMA_OPENGL_FOUND AND OPENGL_FOUND)/g' \ + applets/CMakeLists.txt \ + || die "Failed to make OpenGL applets optional" + + kde4-base_src_prepare +} + +src_configure() { + mycmakeargs="${mycmakeargs} + -DDBUS_INTERFACES_INSTALL_DIR=${KDEDIR}/share/dbus-1/interfaces/ + $(cmake-utils_use_with opengl OpenGL) + $(cmake-utils_use_with xinerama X11_Xinerama)" + + kde4-base_src_configure +} |