From 80df7c8f597825812189b07fd98c634e92cbf7ae Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 3 Aug 2007 20:34:04 +0000 Subject: [PATCH] As requested by Florian, set the defaul annotation author to the full name of the current user, or to the username if there's no full name available for it. svn path=/trunk/KDE/kdegraphics/okular/; revision=696101 --- conf/okular.kcfg | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/conf/okular.kcfg b/conf/okular.kcfg index b1316a787..7bee74fc2 100644 --- a/conf/okular.kcfg +++ b/conf/okular.kcfg @@ -4,6 +4,7 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + kuser.h false @@ -216,6 +217,16 @@ - + + + KUser currentUser; + QString userString = currentUser.fullName(); + if ( userString.isEmpty() ) + { + userString = currentUser.loginName(); + } + + userString +