Commit 5b1640ed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 49d227ab
......@@ -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);
......
......@@ -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,
QStringLiteral(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"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment