qtmobility/examples/samplephonebook/phonebook.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    79 {
    79 {
    80 }
    80 }
    81 
    81 
    82 void PhoneBook::activateEditor(QContactLocalId contactId)
    82 void PhoneBook::activateEditor(QContactLocalId contactId)
    83 {
    83 {
       
    84 #if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5))
    84     menuBar()->setVisible(false);
    85     menuBar()->setVisible(false);
       
    86 #endif
    85     m_editorPage->setCurrentContact(m_manager, contactId);
    87     m_editorPage->setCurrentContact(m_manager, contactId);
    86     m_stackedWidget->setCurrentIndex(1); // list = 0, editor = 1, find = 2.
    88     m_stackedWidget->setCurrentIndex(1); // list = 0, editor = 1, find = 2.
    87 }
    89 }
    88 
    90 
    89 void PhoneBook::activateList(const QContactFilter& filter)
    91 void PhoneBook::activateList(const QContactFilter& filter)
   104     m_stackedWidget->setCurrentIndex(0); // list = 0, editor = 1, find = 2.
   106     m_stackedWidget->setCurrentIndex(0); // list = 0, editor = 1, find = 2.
   105 }
   107 }
   106 
   108 
   107 void PhoneBook::activateFind()
   109 void PhoneBook::activateFind()
   108 {
   110 {
       
   111 #if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5))
   109     menuBar()->setVisible(false);
   112     menuBar()->setVisible(false);
       
   113 #endif
   110     m_stackedWidget->setCurrentIndex(2); // list = 0, editor = 1, find = 2.
   114     m_stackedWidget->setCurrentIndex(2); // list = 0, editor = 1, find = 2.
   111 }
   115 }
   112 
   116 
   113 void PhoneBook::managerChanged(QContactManager *manager)
   117 void PhoneBook::managerChanged(QContactManager *manager)
   114 {
   118 {