-rw-r--r-- | kaddressbook/details/detailsviewcontainer.cpp | 3 | ||||
-rw-r--r-- | kaddressbook/details/look_html.cpp | 3 | ||||
-rw-r--r-- | kaddressbook/kabprefs.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kabprefs.h | 1 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 13 |
5 files changed, 19 insertions, 3 deletions
diff --git a/kaddressbook/details/detailsviewcontainer.cpp b/kaddressbook/details/detailsviewcontainer.cpp index a42499f..ceffc77 100644 --- a/kaddressbook/details/detailsviewcontainer.cpp +++ b/kaddressbook/details/detailsviewcontainer.cpp @@ -118,5 +118,2 @@ void ViewContainer::slotStyleSelected( int index ) KABLookFactory *factory = mLookFactories.at( index ); - kdDebug(5720) << "ViewContainer::slotStyleSelected: " - << "creating look " - << factory->description() << endl; diff --git a/kaddressbook/details/look_html.cpp b/kaddressbook/details/look_html.cpp index 63364a7..64987b8 100644 --- a/kaddressbook/details/look_html.cpp +++ b/kaddressbook/details/look_html.cpp @@ -27,2 +27,3 @@ #include <qscrollview.h> +#include "kabprefs.h" KABHtmlView::KABHtmlView( QWidget *parent, const char *name ) @@ -31,2 +32,3 @@ KABHtmlView::KABHtmlView( QWidget *parent, const char *name ) mView = new KPIM::AddresseeView( this ); + mView->setFont( KABPrefs::instance()->mDetailsFont ); } @@ -39,2 +41,3 @@ void KABHtmlView::setAddressee( const KABC::Addressee &addr ) { + mView->setFont( KABPrefs::instance()->mDetailsFont ); mView->setAddressee( addr ); diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index dded2bf..9270a7d 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp @@ -41,2 +41,3 @@ KABPrefs::KABPrefs() { + mDetailsFont = QFont("helvetica",12); KPrefs::setCurrentGroup( "Views" ); @@ -53,2 +54,3 @@ KABPrefs::KABPrefs() addItemBool("SearchWithReturn",&mSearchWithReturn, true ); + addItemFont("DetailsFont",&mDetailsFont); diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h index e4f359c..4a3b6e2 100644 --- a/kaddressbook/kabprefs.h +++ b/kaddressbook/kabprefs.h @@ -84,2 +84,3 @@ class KABPrefs : public KPimPrefs void setCategoryDefaults(); + QFont mDetailsFont; diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index e970c3d..c8b68c7 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp @@ -100,2 +100,15 @@ KABConfigWidget::KABConfigWidget( KABPrefs* prefs, QWidget *parent, const char * KDialog::spacingHintSmall() ); + + QWidget *hBox = new QWidget( generalPage, "qhbox" ); + QHBoxLayout *hboxLayout = new QHBoxLayout( hBox); + KPrefsWidFont *detailsFont = + addWidFont(i18n("phone:123"),i18n("Details view font"), + &(KABPrefs::instance()->mDetailsFont),hBox); + hboxLayout->addWidget(detailsFont->label()); + hboxLayout->addWidget(detailsFont->preview()); + hboxLayout->addWidget(detailsFont->button()); + hboxLayout->setMargin(KDialog::marginHintSmall() ); + hboxLayout->setSpacing(KDialog::spacingHintSmall()); + layout->addWidget( hBox ); + //general groupbox |