Skip to content
Snippets Groups Projects
Commit 1a5d6250 authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

SFLPhone KDE do not destroy history anymore

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