Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
0cfb501d
Commit
0cfb501d
authored
Aug 30, 2021
by
Laurent Montel
😁
Browse files
Use qOverload directly (scripted)
parent
00334d58
Pipeline
#77310
passed with stage
in 10 minutes and 21 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/buttongroup.cpp
View file @
0cfb501d
...
...
@@ -14,7 +14,7 @@
ButtonGroup
::
ButtonGroup
(
QObject
*
parent
)
:
QButtonGroup
(
parent
)
{
connect
(
this
,
Q
Overload
<
QAbstractButton
*>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
ButtonGroup
::
buttonSet
);
connect
(
this
,
q
Overload
<
QAbstractButton
*>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
ButtonGroup
::
buttonSet
);
}
/******************************************************************************
...
...
src/messagenotification.cpp
View file @
0cfb501d
...
...
@@ -162,7 +162,7 @@ MessageNotification::MessageNotification(const KAEvent& event, const KAAlarm& al
if
(
!
(
flags
&
NoInitView
))
MessageNotification
::
setUpDisplay
();
// avoid calling virtual method from constructor
connect
(
this
,
Q
Overload
<
unsigned
int
>
::
of
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
q
Overload
<
unsigned
int
>
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
&
KNotification
::
closed
,
this
,
&
MessageNotification
::
slotClosed
);
connect
(
mHelper
,
&
MessageDisplayHelper
::
textsChanged
,
this
,
&
MessageNotification
::
textsChanged
);
connect
(
mHelper
,
&
MessageDisplayHelper
::
commandExited
,
this
,
&
MessageNotification
::
commandCompleted
);
...
...
@@ -185,7 +185,7 @@ MessageNotification::MessageNotification(const KAEvent& event, const DateTime& a
setWidget
(
MainWindow
::
mainMainWindow
());
MessageNotification
::
setUpDisplay
();
// avoid calling virtual method from constructor
connect
(
this
,
Q
Overload
<
unsigned
int
>
::
of
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
q
Overload
<
unsigned
int
>
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
&
KNotification
::
closed
,
this
,
&
MessageNotification
::
slotClosed
);
connect
(
mHelper
,
&
MessageDisplayHelper
::
textsChanged
,
this
,
&
MessageNotification
::
textsChanged
);
...
...
@@ -205,7 +205,7 @@ MessageNotification::MessageNotification(const QString& eventId, MessageDisplayH
MNSessionManager
::
create
();
setWidget
(
MainWindow
::
mainMainWindow
());
connect
(
this
,
Q
Overload
<
unsigned
int
>
::
of
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
q
Overload
<
unsigned
int
>
(
&
KNotification
::
activated
),
this
,
&
MessageNotification
::
buttonActivated
);
connect
(
this
,
&
KNotification
::
closed
,
this
,
&
MessageNotification
::
slotClosed
);
connect
(
mHelper
,
&
MessageDisplayHelper
::
textsChanged
,
this
,
&
MessageNotification
::
textsChanged
);
connect
(
mHelper
,
&
MessageDisplayHelper
::
commandExited
,
this
,
&
MessageNotification
::
commandCompleted
);
...
...
src/resources/dirresourceimportdialog.cpp
View file @
0cfb501d
...
...
@@ -252,7 +252,7 @@ DirResourceImportTypeWidget::DirResourceImportTypeWidget(CalEvent::Type alarmTyp
mUi
->
statusLabel
->
setText
(
QString
());
mUi
->
pathRequester
->
setFocus
();
mUi
->
pathRequester
->
installEventFilter
(
this
);
connect
(
mUi
->
pathRequester
,
Q
Overload
<
const
QString
&>
::
of
(
&
KUrlRequester
::
returnPressed
),
this
,
[
this
]()
{
validate
();
});
connect
(
mUi
->
pathRequester
,
q
Overload
<
const
QString
&>
(
&
KUrlRequester
::
returnPressed
),
this
,
[
this
]()
{
validate
();
});
connect
(
mUi
->
pathRequester
,
&
KUrlRequester
::
urlSelected
,
this
,
[
this
]()
{
validate
();
});
connect
(
mUi
->
pathRequester
,
&
KUrlRequester
::
textChanged
,
this
,
[
this
]()
{
setStatus
(
false
);
});
connect
(
mUi
->
nameText
,
&
QLineEdit
::
textChanged
,
this
,
[
this
]()
{
validate
();
});
...
...
src/traywindow.cpp
View file @
0cfb501d
...
...
@@ -116,11 +116,11 @@ TrayWindow::TrayWindow(MainWindow* parent)
// Update when alarms are modified
AlarmListModel
*
all
=
DataModel
::
allAlarmListModel
();
connect
(
all
,
&
QAbstractItemModel
::
dataChanged
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsInserted
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsMoved
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsRemoved
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
modelReset
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
dataChanged
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsInserted
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsMoved
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
rowsRemoved
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
connect
(
all
,
&
QAbstractItemModel
::
modelReset
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
// Set auto-hide status when next alarm or preferences change
mStatusUpdateTimer
->
setSingleShot
(
true
);
...
...
@@ -130,7 +130,7 @@ TrayWindow::TrayWindow(MainWindow* parent)
updateStatus
();
// Update when tooltip preferences are modified
Preferences
::
connect
(
&
Preferences
::
tooltipPreferencesChanged
,
mToolTipUpdateTimer
,
Q
Overload
<>
::
of
(
&
QTimer
::
start
));
Preferences
::
connect
(
&
Preferences
::
tooltipPreferencesChanged
,
mToolTipUpdateTimer
,
q
Overload
<>
(
&
QTimer
::
start
));
}
TrayWindow
::~
TrayWindow
()
...
...
Write
Preview
Supports
Markdown
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