Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
KTimer
Commits
5b1640ed
Commit
5b1640ed
authored
Sep 24, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clazy warning
parent
49d227ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ktimer.cpp
ktimer.cpp
+3
-3
main.cpp
main.cpp
+1
-1
No files found.
ktimer.cpp
View file @
5b1640ed
...
...
@@ -153,7 +153,7 @@ void KTimerPref::add()
// Qt drops currentChanged signals on first item (bug?)
if
(
m_list
->
topLevelItemCount
()
==
1
)
currentChanged
(
item
,
NULL
);
currentChanged
(
item
,
nullptr
);
m_list
->
setCurrentItem
(
item
);
m_list
->
update
();
...
...
@@ -202,8 +202,8 @@ void KTimerPref::currentChanged( QTreeWidgetItem *i , QTreeWidgetItem * /* old *
m_delayM
->
setValue
(
m
);
m_delay
->
setValue
(
s
);
connect
(
m_commandLine
->
lineEdit
(),
SIGNAL
(
textChanged
(
QString
))
,
job
,
SLOT
(
setCommand
(
QString
))
);
connect
(
m_commandLine
->
lineEdit
(),
&
QLineEdit
::
textChanged
,
job
,
&
KTimerJob
::
setCommand
);
connect
(
m_delayH
,
static_cast
<
void
(
QSpinBox
::*
)(
int
)
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KTimerPref
::
delayChanged
);
connect
(
m_delayM
,
static_cast
<
void
(
QSpinBox
::*
)(
int
)
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KTimerPref
::
delayChanged
);
connect
(
m_delay
,
static_cast
<
void
(
QSpinBox
::*
)(
int
)
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KTimerPref
::
delayChanged
);
...
...
main.cpp
View file @
5b1640ed
...
...
@@ -45,7 +45,7 @@ int main( int argc, char **argv )
KLocalizedString
::
setApplicationDomain
(
"ktimer"
);
KAboutData
aboutData
(
QStringLiteral
(
"ktimer"
),
i18n
(
"KTimer"
),
QString
::
fromLatin1
(
KTIMER_VERSION
),
i18n
(
description
),
KAboutLicense
::
GPL
,
QString
Literal
(
KTIMER_VERSION
),
i18n
(
description
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 2001, Stefan Schimanski"
),
QStringLiteral
(
"https://utils.kde.org/projects/ktimer/"
));
aboutData
.
addAuthor
(
i18n
(
"Stefan Schimanski"
),
QString
(),
QStringLiteral
(
"schimmi@kde.org"
));
...
...
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