mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 11:58:27 +00:00
clean code to remove warning
This commit is contained in:
parent
4fca033943
commit
858ec41ccb
12 changed files with 25 additions and 35 deletions
|
|
@ -297,12 +297,6 @@ App::App(int &argc, char *argv[])
|
|||
QCoreApplication::setApplicationName(EXECUTABLE_NAME);
|
||||
QApplication::setOrganizationDomain(EXECUTABLE_NAME);
|
||||
QCoreApplication::setApplicationVersion(APPLICATION_SEMVER);
|
||||
// CarshReporter must be call after app initialization like names.
|
||||
#ifdef HAVE_CRASH_HANDLER
|
||||
CrashReporter::start();
|
||||
#else
|
||||
lWarning() << "[Main] The application doesn't support the CrashReporter.";
|
||||
#endif
|
||||
|
||||
// If not OpenGL, createRender is never call.
|
||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ class ListProxy : public AbstractListProxy<QSharedPointer<QObject>> {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Q_PROPERTY(int count READ getCount NOTIFY countChanged)
|
||||
ListProxy(QObject *parent = Q_NULLPTR);
|
||||
virtual ~ListProxy();
|
||||
|
||||
|
|
|
|||
|
|
@ -570,8 +570,8 @@ void SettingsCore::setSelf(QSharedPointer<SettingsCore> me) {
|
|||
disableChatFeature, DisableChatFeature)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
disableMeetingsFeature, DisableMeetingsFeature)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
showPastMeetings, ShowPastMeetings)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
showPastMeetings, ShowPastMeetings)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
disableBroadcastFeature, DisableBroadcastFeature)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
|
|
@ -580,8 +580,8 @@ void SettingsCore::setSelf(QSharedPointer<SettingsCore> me) {
|
|||
HideSettings)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
hideAccountSettings, HideAccountSettings)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool, hideFps,
|
||||
HideFps)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool, hideFps,
|
||||
HideFps)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
disableCallRecordings, DisableCallRecordings)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
|
|
@ -605,16 +605,16 @@ void SettingsCore::setSelf(QSharedPointer<SettingsCore> me) {
|
|||
assistantThirdPartySipAccountDomain, AssistantThirdPartySipAccountDomain)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, QString,
|
||||
assistantThirdPartySipAccountTransport, AssistantThirdPartySipAccountTransport)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool, autoStart,
|
||||
AutoStart)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool, autoStart,
|
||||
AutoStart)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool, exitOnClose,
|
||||
ExitOnClose)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, bool,
|
||||
syncLdapContacts, SyncLdapContacts)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, QString,
|
||||
configLocale, ConfigLocale)
|
||||
DEFINE_CORE_GETSET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, QString,
|
||||
downloadFolder, DownloadFolder)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, QString,
|
||||
downloadFolder, DownloadFolder)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, int, shortcutCount,
|
||||
ShortcutCount)
|
||||
DEFINE_CORE_GET_CONNECT(mSettingsModelConnection, SettingsCore, SettingsModel, settingsModel, QVariantList,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Button {
|
|||
color: style?.color?.normal || DefaultStyle.grey_500
|
||||
pressedColor: checkedIconUrl ? color : style?.color?.pressed || DefaultStyle.grey_500
|
||||
hoveredColor: checked ? Qt.darker(pressedColor, 1.05) : style?.color?.hovered || DefaultStyle.grey_500
|
||||
property color backgroundColor: hovered
|
||||
backgroundColor: hovered
|
||||
? hoveredColor
|
||||
: checked
|
||||
? pressedColor
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import "qrc:/qt/qml/Linphone/view/Style/buttonStyle.js" as ButtonStyle
|
|||
Button {
|
||||
id: mainItem
|
||||
property alias popup: popup
|
||||
property bool shadowEnabled: mainItem.activeFocus && !keyboardFocus || hovered
|
||||
shadowEnabled: mainItem.activeFocus && !keyboardFocus || hovered
|
||||
property alias popupBackgroundColor: popupBackground.color
|
||||
property color backgroundColor: checked ? pressedColor : hovered || mainItem.activeFocus ? hoveredColor : color
|
||||
backgroundColor: checked ? pressedColor : hovered || mainItem.activeFocus ? hoveredColor : color
|
||||
property string popUpTitle: ""
|
||||
property int popupY: height
|
||||
Accessible.name: popup.visible ?
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ Item {
|
|||
active: mainItem.recording && !mainItem.chatMessageContentGui
|
||||
property int duration: item?.core.duration || 0
|
||||
property int captureVolume: item?.core.captureVolume || 0
|
||||
property var state: item?.core.state
|
||||
property var recorderState: item?.core.state
|
||||
|
||||
Connections {
|
||||
target: mainItem
|
||||
|
|
@ -120,7 +120,7 @@ Item {
|
|||
: chatMessageContentGui.core.fileDuration
|
||||
progressPosition: 0
|
||||
value: 0
|
||||
recording: recorderLoader.state === LinphoneEnums.RecorderState.Running
|
||||
recording: recorderLoader.recorderState === LinphoneEnums.RecorderState.Running
|
||||
function refresh(){
|
||||
if(soudPlayerLoader.item){
|
||||
soudPlayerLoader.item.core.lRefreshPosition()
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ ColumnLayout{
|
|||
signal editAccount(AccountGui account)
|
||||
readonly property var childrenWidth: Utils.getSizeWithScreenRatio(517)
|
||||
|
||||
readonly property real spacing: Utils.getSizeWithScreenRatio(16)
|
||||
spacing: Utils.getSizeWithScreenRatio(16)
|
||||
required property var getPreviousItem
|
||||
required property var getNextItem
|
||||
property AccountProxy accountProxy
|
||||
|
|
@ -63,16 +63,15 @@ ColumnLayout{
|
|||
index) : null
|
||||
}
|
||||
}
|
||||
|
||||
Repeater{
|
||||
model: AccountProxy {
|
||||
id: accountProxy
|
||||
ColumnLayout {
|
||||
Repeater{
|
||||
model: AccountProxy {
|
||||
id: accountProxy
|
||||
}
|
||||
delegate: contactDelegate
|
||||
}
|
||||
delegate: contactDelegate
|
||||
}
|
||||
HorizontalBar{
|
||||
Layout.topMargin: mainItem.spacing
|
||||
Layout.bottomMargin: mainItem.spacing
|
||||
visible: addAccountButton.visible
|
||||
color: DefaultStyle.main2_300
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ AbstractMainPage {
|
|||
id: accountProxy
|
||||
}
|
||||
property AccountGui account: accountProxy.defaultAccount
|
||||
property var state: account && account.core?.registrationState || 0
|
||||
property bool isRegistered: account ? account.core?.registrationState
|
||||
== LinphoneEnums.RegistrationState.Ok : false
|
||||
property int selectedParticipantsCount
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ AbstractMainPage {
|
|||
id: accountProxy
|
||||
}
|
||||
property AccountGui account: accountProxy.defaultAccount
|
||||
property var state: account && account.core?.registrationState || 0
|
||||
property bool isRegistered: account ? account.core?.registrationState
|
||||
== LinphoneEnums.RegistrationState.Ok : false
|
||||
|
||||
|
|
@ -114,7 +113,7 @@ AbstractMainPage {
|
|||
clip: true
|
||||
initialItem: chatListItem
|
||||
focus: true
|
||||
onActiveFocusChanged: if (activeFocus) {
|
||||
onActiveFocusChanged: if (activeFocus && currentItem) {
|
||||
currentItem.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -336,9 +336,9 @@ AbstractMainPage {
|
|||
Component {
|
||||
id: contactDetail
|
||||
Item {
|
||||
objectName: "contactDetail"
|
||||
width: parent?.width
|
||||
height: parent?.height
|
||||
property string objectName: "contactDetail"
|
||||
|
||||
function focusEditButton(){
|
||||
contactDetail.button.forceActiveFocus(Qt.TabFocusReason)
|
||||
|
|
@ -928,7 +928,7 @@ AbstractMainPage {
|
|||
Component {
|
||||
id: contactEdition
|
||||
ContactEdition {
|
||||
property string objectName: "contactEdition"
|
||||
objectName: "contactEdition"
|
||||
onCloseEdition: redirectAddress => {
|
||||
goToContactDetails(true)
|
||||
if (redirectAddress) {
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ AbstractMainPage {
|
|||
Component {
|
||||
id: listLayout
|
||||
FocusScope{
|
||||
property string objectName: "listLayout"
|
||||
objectName: "listLayout"
|
||||
property alias newConfButton: newConfButton
|
||||
Control.StackView.onDeactivated: {
|
||||
mainItem.selectedConference = null
|
||||
|
|
|
|||
|
|
@ -1339,7 +1339,7 @@ AbstractWindow {
|
|||
Component {
|
||||
id: inCallItem
|
||||
Loader {
|
||||
property string objectName: "inCallItem"
|
||||
objectName: "inCallItem"
|
||||
asynchronous: true
|
||||
sourceComponent: Item {
|
||||
CallLayout {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue