This commit is contained in:
Ronan Abhamon 2016-11-23 15:03:18 +01:00
parent 5d575b4b75
commit dac94d0295
8 changed files with 23 additions and 11 deletions

View file

@ -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
)

View file

@ -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_

View file

@ -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();
}

View file

@ -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_

View file

@ -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_

View file

@ -6,4 +6,4 @@ class SmartSearchBarModel {
};
#endif
#endif // SMART_SEARCH_BAR_MODEL_H_

View file

@ -0,0 +1 @@
#include "SmartSearchBarProxyModel.hpp"

View file

@ -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_