File indexing completed on 2024-09-08 06:47:59
0001 /* 0002 SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "settings.h" 0008 0009 #include <KUser> 0010 0011 QString Settings::findNick() 0012 { 0013 QString nick = nickname(); 0014 if (nick.isEmpty()) { 0015 KUser user; 0016 nick = user.property(KUser::FullName).toString(); 0017 if (nick.isEmpty()) { 0018 nick = user.loginName(); 0019 } 0020 } 0021 0022 return nick; 0023 } 0024 0025 #include "moc_settings.cpp"