Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
265965da
Commit
265965da
authored
Dec 19, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(app): coding style & log app startup
parent
59c0154f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
App.cpp
tests/src/app/App.cpp
+12
-5
ChatModel.cpp
tests/src/components/chat/ChatModel.cpp
+2
-2
ContactsListProxyModel.hpp
tests/src/components/contacts/ContactsListProxyModel.hpp
+1
-1
ListForm.qml
tests/ui/modules/Common/Form/ListForm.qml
+2
-2
Chat.qml
tests/ui/modules/Linphone/Chat/Chat.qml
+0
-1
No files found.
tests/src/app/App.cpp
View file @
265965da
...
...
@@ -61,6 +61,8 @@ App::App (int &argc, char **argv) : QApplication(argc, argv) {
// -------------------------------------------------------------------
void
App
::
initContentApp
()
{
qInfo
()
<<
"Initializing core manager..."
;
// Init core.
CoreManager
::
init
();
...
...
@@ -69,6 +71,7 @@ void App::initContentApp () {
addContextProperties
();
// Load main view.
qInfo
()
<<
"Loading main view..."
;
m_engine
.
load
(
QUrl
(
QML_VIEW_MAIN_WINDOW
));
if
(
m_engine
.
rootObjects
().
isEmpty
())
qFatal
(
"Unable to open main window."
);
...
...
@@ -81,6 +84,8 @@ void App::initContentApp () {
}
void
App
::
registerTypes
()
{
qInfo
()
<<
"Registering types..."
;
// Register meta types.
qmlRegisterUncreatableType
<
Presence
>
(
"Linphone"
,
1
,
0
,
"Presence"
,
"Presence is uncreatable"
...
...
@@ -143,14 +148,16 @@ void App::registerTypes () {
}
void
App
::
addContextProperties
()
{
qInfo
()
<<
"Adding context properties..."
;
QQmlContext
*
context
=
m_engine
.
rootContext
();
QQmlComponent
component
(
&
m_engine
,
QUrl
(
QML_VIEW_CALL_WINDOW
));
// Windows.
if
(
component
.
isError
())
QQmlComponent
component
(
&
m_engine
,
QUrl
(
QML_VIEW_CALL_WINDOW
));
if
(
component
.
isError
())
{
qWarning
()
<<
component
.
errors
();
else
context
->
setContextProperty
(
"CallsWindow"
,
component
.
create
());
abort
();
}
context
->
setContextProperty
(
"CallsWindow"
,
component
.
create
());
m_notifier
=
new
Notifier
();
context
->
setContextProperty
(
"Notifier"
,
m_notifier
);
...
...
tests/src/components/chat/ChatModel.cpp
View file @
265965da
...
...
@@ -20,7 +20,7 @@ QHash<int, QByteArray> ChatModel::roleNames () const {
return
roles
;
}
int
ChatModel
::
rowCount
(
const
QModelIndex
&
)
const
{
int
ChatModel
::
rowCount
(
const
QModelIndex
&
)
const
{
return
m_entries
.
count
();
}
...
...
@@ -40,7 +40,7 @@ QVariant ChatModel::data (const QModelIndex &index, int role) const {
return
QVariant
();
}
bool
ChatModel
::
removeRow
(
int
row
,
const
QModelIndex
&
)
{
bool
ChatModel
::
removeRow
(
int
row
,
const
QModelIndex
&
)
{
return
removeRows
(
row
,
1
);
}
...
...
tests/src/components/contacts/ContactsListProxyModel.hpp
View file @
265965da
...
...
@@ -49,7 +49,7 @@ private:
// and reused by `lessThan`.
mutable
QHash
<
const
ContactModel
*
,
unsigned
int
>
m_weights
;
bool
m_use_connected_filter
;
bool
m_use_connected_filter
=
false
;
static
const
QRegExp
m_search_separators
;
...
...
tests/ui/modules/Common/Form/ListForm.qml
View file @
265965da
...
...
@@ -132,12 +132,12 @@ RowLayout {
}
padding
:
ListFormStyle
.
value
.
text
.
padding
visible
:
values
.
model
.
count
===
0
// TODO: placeholder click machin
visible
:
values
.
model
.
count
===
0
verticalAlignment
:
Text
.
AlignVCenter
MouseArea
{
anchors.fill
:
parent
onClicked
:
_addValue
(
''
)
onClicked
:
!
listForm
.
readOnly
&&
_addValue
(
''
)
}
}
...
...
tests/ui/modules/Linphone/Chat/Chat.qml
View file @
265965da
...
...
@@ -5,7 +5,6 @@ import QtQuick.Layouts 1.3
import
Common
1.0
import
Linphone
1.0
import
Linphone
.
Styles
1.0
import
Utils
1.0
// ===================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment