summaryrefslogtreecommitdiffabout
path: root/pwmanager
Side-by-side diff
Diffstat (limited to 'pwmanager') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/commentbox.cpp1
-rw-r--r--pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp19
-rw-r--r--pwmanager/pwmanager/listviewpwm.cpp1
-rw-r--r--pwmanager/pwmanager/pwmprefs.cpp9
-rw-r--r--pwmanager/pwmanager/pwmprefs.h3
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_0.cpp2
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_1.cpp1
7 files changed, 30 insertions, 6 deletions
diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp
index 0f32561..51f88b2 100644
--- a/pwmanager/pwmanager/commentbox.cpp
+++ b/pwmanager/pwmanager/commentbox.cpp
@@ -43,2 +43,3 @@ CommentBox::CommentBox(QWidget *_parentWidget)
mode = mode_notSet;
+ setFont( prefs->mViewFont );
}
diff --git a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
index a8696ea..c1ca536 100644
--- a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
+++ b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
@@ -72,9 +72,6 @@ PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *n
- QLabel* lab = new QLabel(i18n("<b>Font for Password entries:</b>"), windowStylePage);
+ QLabel* lab = new QLabel(i18n("Font for Password entries:"), windowStylePage);
windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
-
-
++i;
-
- KPrefsWidFont *selEntrFont =
+ KPrefsWidFont *selEntrFont =
addWidFont(i18n("Password"),i18n("Font:"),
@@ -85,2 +82,14 @@ PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *n
++i;
+
+ lab = new QLabel(i18n("Font for Password summary:"), windowStylePage);
+ windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
+ ++i;
+ selEntrFont =
+ addWidFont(i18n("Summary"),i18n("Font:"),
+ &(prefs->mViewFont),windowStylePage);
+ windowStyleLayout->addWidget(selEntrFont->label(),i,0);
+ windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
+ windowStyleLayout->addWidget(selEntrFont->button(),i,2);
+ ++i;
+
lab = new QLabel(i18n(""), windowStylePage);
diff --git a/pwmanager/pwmanager/listviewpwm.cpp b/pwmanager/pwmanager/listviewpwm.cpp
index 9f351d6..85e788c 100644
--- a/pwmanager/pwmanager/listviewpwm.cpp
+++ b/pwmanager/pwmanager/listviewpwm.cpp
@@ -36,2 +36,3 @@ ListViewPwM::ListViewPwM(QWidget *parent, const char *name)
// setResizeMode(QListView::AllColumns);
+ setAllColumnsShowFocus (true );
}
diff --git a/pwmanager/pwmanager/pwmprefs.cpp b/pwmanager/pwmanager/pwmprefs.cpp
index 31fb2e0..444186c 100644
--- a/pwmanager/pwmanager/pwmprefs.cpp
+++ b/pwmanager/pwmanager/pwmprefs.cpp
@@ -45,2 +45,3 @@ PWMPrefs::PWMPrefs()
addItemFont( "entryFont", &mEntryFont,KGlobalSettings::generalFont());
+ addItemFont( "viewFont", &mViewFont,KGlobalSettings::generalFont());
addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT );
@@ -122,2 +123,6 @@ QFont PWMPrefs::confGlobEntryFont()
}
+QFont PWMPrefs::confGlobViewFont()
+{
+ return mViewFont;
+}
@@ -236,2 +241,6 @@ void PWMPrefs::confGlobEntryFont(const QFont &e)
}
+void PWMPrefs::confGlobViewFont(const QFont &e)
+{
+ mViewFont = e;
+}
diff --git a/pwmanager/pwmanager/pwmprefs.h b/pwmanager/pwmanager/pwmprefs.h
index 5b8f9d8..1f6a35c 100644
--- a/pwmanager/pwmanager/pwmprefs.h
+++ b/pwmanager/pwmanager/pwmprefs.h
@@ -75,2 +75,3 @@ public:
QFont confGlobEntryFont();
+ QFont confGlobViewFont();
int confGlobPwTimeout();
@@ -102,2 +103,3 @@ public:
void confGlobEntryFont(const QFont &e);
+ void confGlobViewFont(const QFont &e);
void confGlobPwTimeout(int e);
@@ -129,2 +131,3 @@ public:
QFont mEntryFont;
+ QFont mViewFont;
int mPwTimeout;
diff --git a/pwmanager/pwmanager/pwmviewstyle_0.cpp b/pwmanager/pwmanager/pwmviewstyle_0.cpp
index 1453d03..1fc8a34 100644
--- a/pwmanager/pwmanager/pwmviewstyle_0.cpp
+++ b/pwmanager/pwmanager/pwmviewstyle_0.cpp
@@ -101,3 +101,3 @@ void PwMViewStyle_0::restoreSettings(PWMPrefs* prefs)
splitter1->setSizes( prefs->mCommentSplitter );
-
+ commentBox->setFont( prefs->mViewFont );
}
diff --git a/pwmanager/pwmanager/pwmviewstyle_1.cpp b/pwmanager/pwmanager/pwmviewstyle_1.cpp
index 27ad40e..4a7ffd7 100644
--- a/pwmanager/pwmanager/pwmviewstyle_1.cpp
+++ b/pwmanager/pwmanager/pwmviewstyle_1.cpp
@@ -155,2 +155,3 @@ void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs)
splitter2->setSizes( prefs->mCommentSplitter );
+ commentBox->setFont( prefs->mViewFont );