Commit 1a5d6250 authored by Emmanuel Lepage's avatar Emmanuel Lepage

SFLPhone KDE do not destroy history anymore

parent 33083583
......@@ -111,7 +111,7 @@ SFLPhoneView::~SFLPhoneView()
void SFLPhoneView::saveState()
{
ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
configurationManager.setHistory(callTreeModel->getHistoryCallId());
//configurationManager.setHistory(callTreeModel->getHistoryCallId());
}
void SFLPhoneView::loadWindow()
......
......@@ -42,28 +42,38 @@ ContactItemWidget::ContactItemWidget(QWidget *parent)
m_pCallAgain->setShortcut(Qt::CTRL + Qt::Key_Enter);
m_pCallAgain->setText("Call Again");
m_pCallAgain->setIcon(KIcon(ICON_DIALING));
m_pEditContact = new KAction(this);
m_pEditContact->setShortcut(Qt::CTRL + Qt::Key_E);
m_pEditContact->setText("Edit contact");
m_pEditContact->setIcon(KIcon("contact-new"));
m_pCopy = new KAction(this);
m_pCopy->setShortcut(Qt::CTRL + Qt::Key_C);
m_pCopy->setText("Copy");
m_pCopy->setIcon(KIcon("edit-copy"));
m_pEmail = new KAction(this);
m_pEmail->setShortcut(Qt::CTRL + Qt::Key_M);
m_pEmail->setText("Send Email");
m_pEmail->setIcon(KIcon("mail-message-new"));
m_pAddPhone = new KAction(this);
m_pAddPhone->setShortcut(Qt::CTRL + Qt::Key_N);
m_pAddPhone->setText("Add Phone Number");
m_pAddPhone->setIcon(KIcon("list-resource-add"));
connect(m_pCallAgain ,SIGNAL(triggered()),this,SLOT(callAgain() ));
connect(m_pEditContact ,SIGNAL(triggered()),this,SLOT(editContact() ));
connect(m_pCopy ,SIGNAL(triggered()),this,SLOT(copy() ));
connect(m_pEmail ,SIGNAL(triggered()),this,SLOT(sendEmail() ));
connect(m_pAddPhone ,SIGNAL(triggered()),this,SLOT(addPhone() ));
m_pBookmark = new KAction(this);
m_pBookmark->setShortcut(Qt::CTRL + Qt::Key_N);
m_pBookmark->setText("Bookmark");
m_pBookmark->setIcon(KIcon("bookmarks"));
connect(m_pCallAgain , SIGNAL(triggered()) , this,SLOT(callAgain() ));
connect(m_pEditContact , SIGNAL(triggered()) , this,SLOT(editContact() ));
connect(m_pCopy , SIGNAL(triggered()) , this,SLOT(copy() ));
connect(m_pEmail , SIGNAL(triggered()) , this,SLOT(sendEmail() ));
connect(m_pAddPhone , SIGNAL(triggered()) , this,SLOT(addPhone() ));
connect(m_pBookmark , SIGNAL(triggered()) , this,SLOT(bookmark() ));
}
ContactItemWidget::~ContactItemWidget()
......@@ -226,4 +236,9 @@ void ContactItemWidget::editContact()
void ContactItemWidget::addPhone()
{
qDebug() << "Adding to contact";
}
void ContactItemWidget::bookmark()
{
}
\ No newline at end of file
......@@ -53,6 +53,7 @@ class ContactItemWidget : public QWidget
KAction* m_pCopy;
KAction* m_pEmail;
KAction* m_pAddPhone;
KAction* m_pBookmark;
QMenu* m_pMenu;
KABC::Addressee* contact() const;
......@@ -92,6 +93,7 @@ private slots:
void copy();
void editContact();
void addPhone();
void bookmark();
};
#endif // CALLTREE_ITEM_H
......@@ -78,6 +78,7 @@ class HistoryTreeItem : public QWidget
KAction* m_pAddToContact;
KAction* m_pCopy;
KAction* m_pEmail;
KAction* m_pBookmark;
QMenu* m_pMenu;
uint m_pTimeStamp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment