Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooseremail.cpp
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | componentchooseremail.cpp | 2 | componentchooseremail.cpp | ||
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2002 by Joseph Wenninger | 4 | copyright : (C) 2002 by Joseph Wenninger | ||
5 | email : jowenn@kde.org | 5 | email : jowenn@kde.org | ||
6 | ***************************************************************************/ | 6 | ***************************************************************************/ | ||
7 | 7 | | |||
8 | /*************************************************************************** | 8 | /*************************************************************************** | ||
9 | * * | 9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License verstion 2 as * | 11 | * it under the terms of the GNU General Public License version 2 as * | ||
12 | * published by the Free Software Foundation * | 12 | * published by the Free Software Foundation * | ||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #include "componentchooseremail.h" | 16 | #include "componentchooseremail.h" | ||
17 | 17 | | |||
18 | #include <kemailsettings.h> | 18 | #include <kemailsettings.h> | ||
19 | #include <kopenwithdialog.h> | 19 | #include <kopenwithdialog.h> | ||
Show All 32 Lines | |||||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | CfgEmailClient::~CfgEmailClient() { | 54 | CfgEmailClient::~CfgEmailClient() { | ||
55 | delete pSettings; | 55 | delete pSettings; | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | void CfgEmailClient::defaults() | 58 | void CfgEmailClient::defaults() | ||
59 | { | 59 | { | ||
60 | load(nullptr); | 60 | kmailCB->setChecked(true); | ||
61 | txtEMailClient->clear(); | ||||
62 | chkRunTerminal->setChecked(false); | ||||
63 | } | ||||
64 | | ||||
65 | bool CfgEmailClient::isDefaults() const | ||||
66 | { | ||||
67 | return kmailCB->isChecked(); | ||||
61 | } | 68 | } | ||
62 | 69 | | |||
63 | void CfgEmailClient::load(KConfig *) | 70 | void CfgEmailClient::load(KConfig *) | ||
64 | { | 71 | { | ||
65 | QString emailClient = pSettings->getSetting(KEMailSettings::ClientProgram); | 72 | QString emailClient = pSettings->getSetting(KEMailSettings::ClientProgram); | ||
66 | bool useKMail = (emailClient.isEmpty()); | 73 | bool useKMail = (emailClient.isEmpty()); | ||
67 | 74 | | |||
68 | kmailCB->setChecked(useKMail); | 75 | kmailCB->setChecked(useKMail); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |