Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
2d228849
Commit
2d228849
authored
3 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
messagesadapter: remove useless method
openFile is unused Change-Id: I991ccf489f742f87dda4af206766956b95772fa5
parent
a79ea5fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/messagesadapter.cpp
+0
-9
0 additions, 9 deletions
src/messagesadapter.cpp
src/messagesadapter.h
+3
-2
3 additions, 2 deletions
src/messagesadapter.h
with
3 additions
and
11 deletions
src/messagesadapter.cpp
+
0
−
9
View file @
2d228849
...
...
@@ -178,15 +178,6 @@ MessagesAdapter::deleteInteraction(const QString& interactionId)
->
clearInteractionFromConversation
(
lrcInstance_
->
get_selectedConvUid
(),
interactionId
);
}
void
MessagesAdapter
::
openFile
(
const
QString
&
arg
)
{
QUrl
fileUrl
(
"file:///"
+
arg
);
if
(
!
QDesktopServices
::
openUrl
(
fileUrl
))
{
qDebug
()
<<
"Couldn't open file: "
<<
fileUrl
;
}
}
void
MessagesAdapter
::
openUrl
(
const
QString
&
url
)
{
...
...
This diff is collapsed.
Click to expand it.
src/messagesadapter.h
+
3
−
2
View file @
2d228849
...
...
@@ -96,7 +96,6 @@ protected:
Q_INVOKABLE
void
acceptFile
(
const
QString
&
arg
);
Q_INVOKABLE
void
cancelFile
(
const
QString
&
arg
);
Q_INVOKABLE
void
openUrl
(
const
QString
&
url
);
Q_INVOKABLE
void
openFile
(
const
QString
&
arg
);
Q_INVOKABLE
void
openDirectory
(
const
QString
&
arg
);
Q_INVOKABLE
void
retryInteraction
(
const
QString
&
interactionId
);
Q_INVOKABLE
void
deleteInteraction
(
const
QString
&
interactionId
);
...
...
@@ -106,7 +105,9 @@ protected:
Q_INVOKABLE
QVariantMap
getMediaInfo
(
const
QString
&
msg
);
Q_INVOKABLE
bool
isRemoteImage
(
const
QString
&
msg
);
Q_INVOKABLE
QString
getFormattedTime
(
const
quint64
timestamp
);
Q_INVOKABLE
void
parseMessageUrls
(
const
QString
&
messageId
,
const
QString
&
msg
,
bool
showPreview
);
Q_INVOKABLE
void
parseMessageUrls
(
const
QString
&
messageId
,
const
QString
&
msg
,
bool
showPreview
);
Q_INVOKABLE
void
onPaste
();
Q_INVOKABLE
QString
getStatusString
(
int
status
);
Q_INVOKABLE
QVariantMap
getTransferStats
(
const
QString
&
messageId
,
int
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment