mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
unstable
This commit is contained in:
parent
5d575b4b75
commit
dac94d0295
8 changed files with 23 additions and 11 deletions
|
|
@ -41,6 +41,7 @@ set(SOURCES
|
|||
src/components/notifier/Notifier.cpp
|
||||
src/components/settings/AccountSettingsModel.cpp
|
||||
src/components/settings/SettingsModel.cpp
|
||||
src/components/smart-search-bar/SmartSearchBarModel.cpp
|
||||
src/components/timeline/TimelineModel.cpp
|
||||
src/main.cpp
|
||||
)
|
||||
|
|
@ -58,6 +59,7 @@ set(HEADERS
|
|||
src/components/presence/Presence.hpp
|
||||
src/components/settings/AccountSettingsModel.hpp
|
||||
src/components/settings/SettingsModel.hpp
|
||||
src/components/smart-search-bar/SmartSearchBarModel.hpp
|
||||
src/components/timeline/TimelineModel.hpp
|
||||
src/utils.hpp
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef CONTACT_MODEL_H
|
||||
#define CONTACT_MODEL_H
|
||||
#ifndef CONTACT_MODEL_H_
|
||||
#define CONTACT_MODEL_H_
|
||||
|
||||
#include <QObject>
|
||||
#include <linphone++/linphone.hh>
|
||||
|
|
@ -80,4 +80,4 @@ private:
|
|||
|
||||
Q_DECLARE_METATYPE(ContactModel*);
|
||||
|
||||
#endif // CONTACT_MODEL_H
|
||||
#endif // CONTACT_MODEL_H_
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ bool ContactsListModel::removeRows (int row, int count, const QModelIndex &paren
|
|||
ContactModel *contact = m_list[row];
|
||||
|
||||
m_list.removeAt(row);
|
||||
m_linphone_friends->removeFriend(contact->m_linphone_friend);
|
||||
// m_linphone_friends->removeFriend(contact->m_linphone_friend);
|
||||
contact->deleteLater();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef CONTACTS_LIST_MODEL_H
|
||||
#define CONTACTS_LIST_MODEL_H
|
||||
#ifndef CONTACTS_LIST_MODEL_H_
|
||||
#define CONTACTS_LIST_MODEL_H_
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
|
|
@ -39,4 +39,4 @@ private:
|
|||
std::shared_ptr<linphone::FriendList> m_linphone_friends;
|
||||
};
|
||||
|
||||
#endif // CONTACTS_LIST_MODEL_H
|
||||
#endif // CONTACTS_LIST_MODEL_H_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef CONTACTS_LIST_PROXY_MODEL_H
|
||||
#define CONTACTS_LIST_PROXY_MODEL_H
|
||||
#ifndef CONTACTS_LIST_PROXY_MODEL_H_
|
||||
#define CONTACTS_LIST_PROXY_MODEL_H_
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
|
|
@ -49,4 +49,4 @@ private:
|
|||
bool m_use_connected_filter;
|
||||
};
|
||||
|
||||
#endif // CONTACTS_LIST_PROXY_MODEL_H
|
||||
#endif // CONTACTS_LIST_PROXY_MODEL_H_
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ class SmartSearchBarModel {
|
|||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // SMART_SEARCH_BAR_MODEL_H_
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
#include "SmartSearchBarProxyModel.hpp"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef SMART_SEARCH_BAR_PROXY_MODEL_H_
|
||||
#define SMART_SEARCH_BAR_PROXY_MODEL_H_
|
||||
|
||||
class SmartSearchBarProxyModel {
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // SMART_SEARCH_BAR_PROXY_MODEL_H_
|
||||
Loading…
Add table
Reference in a new issue