kde-apps/kaddressbook: Fix building in C++ 2011 and 2014 mode
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 3 Jun 2017 19:55:26 +0000 (21:55 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 3 Jun 2017 21:26:25 +0000 (23:26 +0200)
kde-apps/kaddressbook/files/kaddressbook-4.4.2017.04-gcc6.patch [new file with mode: 0644]
kde-apps/kaddressbook/kaddressbook-4.4.2017.04.ebuild

diff --git a/kde-apps/kaddressbook/files/kaddressbook-4.4.2017.04-gcc6.patch b/kde-apps/kaddressbook/files/kaddressbook-4.4.2017.04-gcc6.patch
new file mode 100644 (file)
index 0000000..5c7b55c
--- /dev/null
@@ -0,0 +1,27 @@
+--- a/kaddressbook/views/configurecardviewdialog.cpp
++++ b/kaddressbook/views/configurecardviewdialog.cpp
+@@ -34,6 +34,7 @@
+ #include <kcolorscheme.h>
+ #include <kconfig.h>
+ #include <kdebug.h>
++#include <kfontchooser.h>
+ #include <kfontdialog.h>
+ #include <kglobal.h>
+ #include <kiconloader.h>
+@@ -165,14 +166,14 @@
+ void CardViewLookNFeelPage::setTextFont()
+ {
+   QFont f( lTextFont->font() );
+-  if ( KFontDialog::getFont( f, false, this ) == QDialog::Accepted )
++  if ( KFontDialog::getFont( f, KFontChooser::NoDisplayFlags, this ) == QDialog::Accepted )
+     updateFontLabel( f, lTextFont );
+ }
+ void CardViewLookNFeelPage::setHeaderFont()
+ {
+   QFont f( lHeaderFont->font() );
+-  if ( KFontDialog::getFont( f,false, this ) == QDialog::Accepted )
++  if ( KFontDialog::getFont( f, KFontChooser::NoDisplayFlags, this ) == QDialog::Accepted )
+     updateFontLabel( f, lHeaderFont );
+ }
index 822b8b1c29eb2c560f60699b6fe284ba54b65e63..00897c0b3cbfa9447e3baa918d747907d60f6caa 100644 (file)
@@ -32,6 +32,8 @@ KMEXTRACTONLY="
 
 KMLOADLIBS="libkdepim"
 
+PATCHES=( "${FILESDIR}/${P}-gcc6.patch" )
+
 src_install() {
        kde4-meta_src_install