• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
  • merge
  • widgets
mergecontactloseinformationwarning.cpp
Go to the documentation of this file.
1 /*
2  Copyright (c) 2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #include "mergecontactloseinformationwarning.h"
19 #include <KLocalizedString>
20 #include <QAction>
21 
22 using namespace KABMergeContacts;
23 MergeContactLoseInformationWarning::MergeContactLoseInformationWarning(QWidget *parent)
24  : KMessageWidget(parent)
25 {
26  setVisible(false);
27  setCloseButtonVisible(false);
28  setMessageType(Information);
29  setWordWrap(true);
30 
31  setText(QLatin1String("Some merge can lose information. Do you want to continue or customize what merged ?"));
32 
33  //KF5 add i18n
34  QAction *action = new QAction( QLatin1String( "Customize" ), this );
35  action->setObjectName(QLatin1String("customize"));
36  connect( action, SIGNAL(triggered(bool)), SLOT(slotCustomizeMerge()) );
37  addAction( action );
38 
39  //KF5 add i18n
40  action = new QAction( QLatin1String( "Automatic Merging" ), this );
41  action->setObjectName(QLatin1String("automatic"));
42  connect( action, SIGNAL(triggered(bool)), SLOT(slotAutomaticMerging()) );
43  addAction( action );
44 }
45 
46 MergeContactLoseInformationWarning::~MergeContactLoseInformationWarning()
47 {
48 
49 }
50 
51 void MergeContactLoseInformationWarning::slotCustomizeMerge()
52 {
53  animatedHide();
54  Q_EMIT customizeMergingContacts();
55 }
56 
57 void MergeContactLoseInformationWarning::slotAutomaticMerging()
58 {
59  animatedHide();
60  Q_EMIT continueMerging();
61 }
KABMergeContacts::MergeContactLoseInformationWarning::~MergeContactLoseInformationWarning
~MergeContactLoseInformationWarning()
Definition: mergecontactloseinformationwarning.cpp:46
QWidget
mergecontactloseinformationwarning.h
KABMergeContacts::MergeContactLoseInformationWarning::customizeMergingContacts
void customizeMergingContacts()
KABMergeContacts::MergeContactLoseInformationWarning::MergeContactLoseInformationWarning
MergeContactLoseInformationWarning(QWidget *parent=0)
Definition: mergecontactloseinformationwarning.cpp:23
QObject::setObjectName
void setObjectName(const QString &name)
QLatin1String
KABMergeContacts::MergeContactLoseInformationWarning::continueMerging
void continueMerging()
QAction
KMessageWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal