diff --git a/src/widgets/krun.h b/src/widgets/krun.h --- a/src/widgets/krun.h +++ b/src/widgets/krun.h @@ -600,7 +600,7 @@ * so this can be removed. */ #ifndef KIOWIDGETS_NO_DEPRECATED - KIOWIDGETS_DEPRECATED QTimer &timer(); + KIOWIDGETS_DEPRECATED QTimer &timer() const; #endif /** diff --git a/src/widgets/krun.cpp b/src/widgets/krun.cpp --- a/src/widgets/krun.cpp +++ b/src/widgets/krun.cpp @@ -1538,7 +1538,7 @@ } #ifndef KIOWIDGETS_NO_DEPRECATED -QTimer &KRun::timer() +QTimer &KRun::timer() const { return *d->m_timer; } diff --git a/src/widgets/krun_p.h b/src/widgets/krun_p.h --- a/src/widgets/krun_p.h +++ b/src/widgets/krun_p.h @@ -78,7 +78,6 @@ // This helper method makes debugging easier: a single breakpoint for all // the code paths that start the timer - at least from KRun itself. - // TODO: add public method startTimer() and deprecate timer() accessor, // starting is the only valid use of the timer in subclasses (BrowserRun, KHTMLRun and KonqRun) void startTimer();