Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Ark
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
Ark
Commits
30646f2c
Commit
30646f2c
authored
Jun 13, 2016
by
Elvis Angelaccio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more new-style connect()
parent
497cce1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
part/part.cpp
part/part.cpp
+6
-5
No files found.
part/part.cpp
View file @
30646f2c
...
...
@@ -162,8 +162,8 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList& args)
this
,
&
Part
::
slotLoadingStarted
);
connect
(
m_model
,
&
ArchiveModel
::
loadingFinished
,
this
,
&
Part
::
slotLoadingFinished
);
connect
(
m_model
,
SIGNAL
(
droppedFiles
(
QStringList
,
QString
))
,
this
,
SLOT
(
slotAddFiles
(
QStringList
,
QString
)
));
connect
(
m_model
,
&
ArchiveModel
::
droppedFiles
,
this
,
static_cast
<
void
(
Part
::*
)(
const
QStringList
&
,
const
QString
&
)
>
(
&
Part
::
slotAddFiles
));
connect
(
m_model
,
&
ArchiveModel
::
error
,
this
,
&
Part
::
slotError
);
...
...
@@ -171,8 +171,8 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList& args)
this
,
&
Part
::
setBusyGui
);
connect
(
this
,
&
Part
::
ready
,
this
,
&
Part
::
setReadyGui
);
connect
(
this
,
SIGNAL
(
completed
()
),
this
,
SLOT
(
setFileNameFromArchive
())
);
connect
(
this
,
static_cast
<
void
(
KParts
::
ReadOnlyPart
::*
)()
>
(
&
KParts
::
ReadOnlyPart
::
completed
),
this
,
&
Part
::
setFileNameFromArchive
);
m_statusBarExtension
=
new
KParts
::
StatusBarExtension
(
this
);
...
...
@@ -397,7 +397,8 @@ void Part::setupActions()
m_testArchiveAction
->
setToolTip
(
i18nc
(
"@info:tooltip"
,
"Click to test the archive for integrity"
));
connect
(
m_testArchiveAction
,
&
QAction
::
triggered
,
this
,
&
Part
::
slotTestArchive
);
connect
(
m_signalMapper
,
SIGNAL
(
mapped
(
int
)),
this
,
SLOT
(
slotOpenEntry
(
int
)));
connect
(
m_signalMapper
,
static_cast
<
void
(
QSignalMapper
::*
)(
int
)
>
(
&
QSignalMapper
::
mapped
),
this
,
&
Part
::
slotOpenEntry
);
updateActions
();
updateQuickExtractMenu
(
m_extractArchiveAction
);
...
...
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