summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2010-11-11 23:54:50 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2010-11-11 23:54:50 +0000
commit7cadcd0f5048c1b02fa8c8a5a32d21b9cb39c8df (patch)
treeed4c085d557b3f5a93448109fe1800d55831d5d0 /app-office/kmymoney
parentAdded patch to update docbook files to XML V4.2-Based Variant. Fixes bug 335023 (diff)
downloadhistorical-7cadcd0f5048c1b02fa8c8a5a32d21b9cb39c8df.tar.gz
historical-7cadcd0f5048c1b02fa8c8a5a32d21b9cb39c8df.tar.bz2
historical-7cadcd0f5048c1b02fa8c8a5a32d21b9cb39c8df.zip
Added upstream ui fix for languages with accented characters. Fixes bug 344195
Package-Manager: portage-2.1.9.24/cvs/Linux x86_64
Diffstat (limited to 'app-office/kmymoney')
-rw-r--r--app-office/kmymoney/ChangeLog9
-rw-r--r--app-office/kmymoney/Manifest24
-rw-r--r--app-office/kmymoney/files/kmymoney-4.5-accentfix.patch133
-rw-r--r--app-office/kmymoney/kmymoney-4.5-r2.ebuild77
4 files changed, 241 insertions, 2 deletions
diff --git a/app-office/kmymoney/ChangeLog b/app-office/kmymoney/ChangeLog
index 89e69afe4ae1..0be5d88d7564 100644
--- a/app-office/kmymoney/ChangeLog
+++ b/app-office/kmymoney/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-office/kmymoney
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kmymoney/ChangeLog,v 1.13 2010/11/04 11:52:53 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kmymoney/ChangeLog,v 1.14 2010/11/11 23:54:50 dilfridge Exp $
+
+*kmymoney-4.5-r2 (11 Nov 2010)
+
+ 11 Nov 2010; Andreas K. Huettel <dilfridge@gentoo.org>
+ +kmymoney-4.5-r2.ebuild, +files/kmymoney-4.5-accentfix.patch:
+ Added upstream ui fix for languages with accented characters. Fixes bug
+ 344195
*kmymoney-4.5-r1 (04 Nov 2010)
diff --git a/app-office/kmymoney/Manifest b/app-office/kmymoney/Manifest
index e4cd6e1427ec..e16e1d8f0d99 100644
--- a/app-office/kmymoney/Manifest
+++ b/app-office/kmymoney/Manifest
@@ -1,6 +1,28 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX kmymoney-4.5-accentfix.patch 4462 RMD160 f57ee76ec29bfb3973cdaa1429bf56a2bddc0a48 SHA1 e345e68cd854df224a6331fa346ec037d1f513c6 SHA256 328d517c1c8658353957ea84318594bdbaede03c83446d8f9b96a0f1bcd340de
DIST kmymoney-4.5-aqbanking-5_x.patch.bz2 13614 RMD160 86cdeaba12925e8cc907652fb6f34b0b7e12a8df SHA1 48670af5da729bf11ce7faf8f2ab61df2a89f284 SHA256 d397857406a43bcfc35bb1ecb6db9b03ac1a46905496f25ce60e3ed1ec872ca9
DIST kmymoney-4.5.tar.bz2 14590277 RMD160 7e785192ce2b77bc4d1716c79993c5df13931bcc SHA1 eb313afaf4f1fd406c1cbf8b80a1804bb505fc5a SHA256 dc2235202baf6de505129660e618c9cb4b14a36631e22ff3f57ab09089feab3c
EBUILD kmymoney-4.5-r1.ebuild 1866 RMD160 edf28d0914f9a0072bd1bf2b029116aba9fbe0cb SHA1 ab665653cd9e05cb9251958db1d1d4b2dc1c70c3 SHA256 13c6cf107af37b95ab42ac9a388b965a127bfd9e3d88440b63862c530a512b60
+EBUILD kmymoney-4.5-r2.ebuild 1904 RMD160 bcda8f1a11ad93b22ccf1c5449f10e3cc9e8a7ab SHA1 c6afa38af5ab7e035056503bac3f8dcdff24863f SHA256 bb4621d289d1b19fe2a243ce52d7fa621dfc1030b4767f6293663a26e101c823
EBUILD kmymoney-4.5.ebuild 1768 RMD160 caaf313e35ed34f58e1b3964451af23d56aa34ce SHA1 d6bac2eda73b74e4732270083b82cbae44ae14d0 SHA256 d0e4dab3d2dff09a6ec3dcee67a3a6254e29752caae8b71279a65ef734908659
-MISC ChangeLog 2044 RMD160 e91f12f7ff0518da2d7fd4eeebfc918d7f77d451 SHA1 3af2c8dc2ff9c10bc7b0baef770cdc87a770c2ef SHA256 56e36a54b6988dad4526a8d9138f36d1a9c0838d69b10d9d43b46ed2ef79af56
+MISC ChangeLog 2281 RMD160 bd750e76f5a08f6f70973e46cda2f3168f84d904 SHA1 4cfc0dbb5a04767e6e361fbce156da1ab796bdd0 SHA256 c3688c243a3a8959836c586e8bcd400f228e5ebb447f33440ca3253c75c14ef4
MISC metadata.xml 327 RMD160 337c462e38007a529ca6c979b341426898a9af04 SHA1 62bfe203a842760f95655a42acdd1da8f4436637 SHA256 af0c2dc62649bae5e9a0b375d7106bee7952dda0b258ad375e2cf1551c75246f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iQIcBAEBAgAGBQJM3IHfAAoJENwGBM22xffeHssP/3D6mT+YbNMtP2nq08EXQIXB
+tmrwYV0W3l67bd1YJgzjO2gDWaawYWcIv56J0wCbEB0A420LGnSiLmrphWZAz79s
+hByWh+YKFtIYtgriYsbtYpBaHYAjuFTspxZmAra3acnYOm4HG0Z/DPZpiuMUVbty
+svB3WSXuktdmIfssUvJRgv6z9hW06iVtHJVRUOsqnZZLzEycX0pe7Huii1GN6J00
+HGdt4m6FoCDZf7ggETTo8s01j5MmEXvn+C7bUgq7KS7SgpqAarBEjPbDAAMtXrZR
+DKPmiHxeQTTon1l3oJTa1woN20NRKczJtxc2VCtrAvxC8h1JwiVYCPummIGdkUfm
+mz6mTq5tHv76gwZa3n8CY+3E6vRG7ZTM9wW9L/+iAAG/qn+URQBbRlc/1M9QqekI
+dN48OEDhoFU6+d5vU5mRM19FmCi008edCQf7kwbx5G9dTwsDkjpUU9EuCqihyWfj
+QzCzMaji27M+6dZz8IrgvNjQ5osqwMC9fZefVf7s4iN6qSMRtcaY0Tv8Vqu2o1iK
+1aXfrMV1cAe/UcIQ9n0Tniu6vZCMijjxF0MVr6Pfs9MYnTbabc7VEZU0189CGUOq
+pm2eeGul0HRJshDQWVVVn8MiQm8jvfnJus7MzL+yurQ+HLuQ2Wq+FSiGC3rE3bvU
+2jjeY5iyFGsb98LvNfrh
+=EcY7
+-----END PGP SIGNATURE-----
diff --git a/app-office/kmymoney/files/kmymoney-4.5-accentfix.patch b/app-office/kmymoney/files/kmymoney-4.5-accentfix.patch
new file mode 100644
index 000000000000..643addcd9f38
--- /dev/null
+++ b/app-office/kmymoney/files/kmymoney-4.5-accentfix.patch
@@ -0,0 +1,133 @@
+Index: kmymoney/widgets/kmymoneycompletion.cpp
+===================================================================
+--- kmymoney/widgets/kmymoneycompletion.cpp (Revision 1193385)
++++ kmymoney/widgets/kmymoneycompletion.cpp (Revision 1193386)
+@@ -31,6 +31,8 @@
+ #include <QEvent>
+ #include <QDesktopWidget>
+ #include <QLineEdit>
++#include <QInputContext>
++#include <QInputContextFactory>
+
+ // ----------------------------------------------------------------------------
+ // KDE Includes
+@@ -47,13 +49,14 @@
+ kMyMoneyCompletion::kMyMoneyCompletion(QWidget *parent) :
+ KVBox(parent)
+ {
+- setWindowFlags(Qt::Popup);
+- setFrameStyle(QFrame::StyledPanel | QFrame::Raised);
++ setWindowFlags(Qt::ToolTip);
++ // make it look like the Qt completer
++ setMargin(0);
++ setLineWidth(0);
+
+ m_parent = parent;
+- setFocusProxy(parent);
+-
+ m_selector = new KMyMoneySelector(this);
++ m_selector->listView()->setFocusProxy(parent);
+
+ // to handle the keyboard events received by this widget in the same way as
+ // the keyboard events received by the other widgets
+@@ -130,9 +133,10 @@
+ }
+ }
+
+-void kMyMoneyCompletion::showEvent(QShowEvent*)
++void kMyMoneyCompletion::showEvent(QShowEvent* e)
+ {
+ show(true);
++ KVBox::showEvent(e);
+ }
+
+ void kMyMoneyCompletion::show(bool presetSelected)
+@@ -152,8 +156,12 @@
+ c->lineEdit()->installEventFilter(this);
+ }
+ }
+-
+ KVBox::show();
++ // after the popup is shown for the first time the input context of the combobox gets messed up
++ // so replace it whit a new input context of the same type to handle input methods correctly
++ if (m_parent) {
++ m_parent->setInputContext(QInputContextFactory::create(m_parent->inputContext()->identifierName(), m_parent));
++ }
+ }
+
+ void kMyMoneyCompletion::hide(void)
+@@ -176,6 +184,9 @@
+ KMyMoneyCombo *c = dynamic_cast<KMyMoneyCombo*>(m_parent);
+ if (o == m_parent || (c && o == c->lineEdit()) || o == this) {
+ if (isVisible()) {
++ if (e->type() == QEvent::FocusOut) {
++ hide();
++ }
+ if (e->type() == QEvent::KeyPress) {
+ QTreeWidgetItem* item = 0;
+ QKeyEvent* ev = static_cast<QKeyEvent*>(e);
+@@ -266,9 +277,6 @@
+ }
+ }
+ }
+- // forward any keyboard event that was received by this widget and was not handled to the parent widget
+- if (o == this && c && (e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease))
+- c->event(e);
+ return KVBox::eventFilter(o, e);
+ }
+
+Index: kmymoney/widgets/kmymoneyaccountcompletion.cpp
+===================================================================
+--- kmymoney/widgets/kmymoneyaccountcompletion.cpp (Revision 1193385)
++++ kmymoney/widgets/kmymoneyaccountcompletion.cpp (Revision 1193386)
+@@ -43,7 +43,7 @@
+ {
+ delete m_selector;
+ m_selector = new kMyMoneyAccountSelector(this, 0, false);
+- m_selector->listView()->setFocusProxy(this);
++ m_selector->listView()->setFocusProxy(parent);
+
+ #ifndef KMM_DESIGNER
+ // Default is to show all accounts
+Index: kmymoney/widgets/kmymoneyselector.cpp
+===================================================================
+--- kmymoney/widgets/kmymoneyselector.cpp (Revision 1193385)
++++ kmymoney/widgets/kmymoneyselector.cpp (Revision 1193386)
+@@ -43,6 +43,8 @@
+ KMyMoneySelector::KMyMoneySelector(QWidget *parent, Qt::WFlags flags) :
+ QWidget(parent, flags)
+ {
++ setAutoFillBackground(true);
++
+ m_selMode = QTreeWidget::SingleSelection;
+
+ m_treeWidget = new QTreeWidget(this);
+@@ -52,11 +54,6 @@
+ m_treeWidget->setSortingEnabled(false);
+ m_treeWidget->setAlternatingRowColors(true);
+
+- if (parent) {
+- setFocusProxy(parent->focusProxy());
+- m_treeWidget->setFocusProxy(parent->focusProxy());
+- }
+-
+ m_treeWidget->setAllColumnsShowFocus(true);
+
+ m_layout = new QHBoxLayout(this);
+Index: kmymoney/widgets/kmymoneycombo.cpp
+===================================================================
+--- kmymoney/widgets/kmymoneycombo.cpp (Revision 1193385)
++++ kmymoney/widgets/kmymoneycombo.cpp (Revision 1193386)
+@@ -224,12 +224,6 @@
+
+ void KMyMoneyCombo::focusOutEvent(QFocusEvent* e)
+ {
+- // when showing m_completion we'll receive a focus out event even if the focus
+- // will still remain at this widget since this widget is the completion's focus proxy
+- // so ignore the focus out event caused by showin a widget of type Qt::Popup
+- if (e->reason() == Qt::PopupFocusReason)
+- return;
+-
+ if (m_inFocusOutEvent) {
+ KComboBox::focusOutEvent(e);
+ return;
diff --git a/app-office/kmymoney/kmymoney-4.5-r2.ebuild b/app-office/kmymoney/kmymoney-4.5-r2.ebuild
new file mode 100644
index 000000000000..b0a28d3eecb5
--- /dev/null
+++ b/app-office/kmymoney/kmymoney-4.5-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kmymoney/kmymoney-4.5-r2.ebuild,v 1.1 2010/11/11 23:54:50 dilfridge Exp $
+
+EAPI=3
+
+KMNAME="extragear/office"
+
+if [[ ${PV} != *9999* ]]; then
+ KDE_LINGUAS="bg ca ca@valencia cs da de el en_GB eo es et fi fr ga gl hu it lt
+ ms nds nl pl pt pt_BR ro ru sk sv tr uk zh_CN zh_TW"
+ KDE_DOC_DIRS="doc doc-translations/%lingua_${PN}"
+ KDE_HANDBOOK="optional"
+ SRC_URI="mirror://sourceforge/kmymoney2/${P}.tar.bz2
+ mirror://gentoo/${P}-aqbanking-5_x.patch.bz2"
+fi
+
+inherit virtualx kde4-base
+
+DESCRIPTION="A personal finance manager for KDE"
+HOMEPAGE="http://kmymoney2.sourceforge.net/"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="4"
+IUSE="debug calendar doc hbci ofx quotes test"
+
+COMMON_DEPEND="
+ app-crypt/gpgme
+ >=dev-libs/boost-1.33.1
+ dev-libs/libgpg-error
+ dev-libs/libxml2
+ $(add_kdebase_dep kdepimlibs)
+ calendar? ( dev-libs/libical )
+ hbci? (
+ >=net-libs/aqbanking-5.0.1
+ >=sys-libs/gwenhywfar-4.0.1[qt4]
+ )
+ ofx? ( >=dev-libs/libofx-0.9.1 )
+"
+RDEPEND="${COMMON_DEPEND}
+ quotes? ( >=dev-perl/Finance-Quote-1.17 )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( >=dev-util/cppunit-1.12.1 )
+"
+
+PATCHES=( "${WORKDIR}"/${P}-aqbanking-5_x.patch
+ "${FILESDIR}"/${P}-accentfix.patch )
+
+src_configure() {
+ mycmakeargs=(
+ -DUSE_QT_DESIGNER=OFF
+ $(cmake-utils_use_enable calendar LIBICAL)
+ $(cmake-utils_use_use doc DEVELOPER_DOC)
+ $(cmake-utils_use_enable hbci KBANKING)
+ $(cmake-utils_use_enable ofx LIBOFX)
+ $(cmake-utils_use test KDE4_BUILD_TESTS)
+ )
+ kde4-base_src_configure
+}
+
+src_compile() {
+ kde4-base_src_compile
+ use doc && kde4-base_src_compile apidoc
+}
+
+src_install() {
+ use doc && HTML_DOCS=("${CMAKE_BUILD_DIR}/apidocs/html/")
+ kde4-base_src_install
+}
+
+src_test() {
+ export maketype="kde4-base_src_test"
+ virtualmake
+}