diff options
| author | Peter Penz <[email protected]> | 2010-11-20 17:17:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-11-20 17:17:35 +0000 |
| commit | 6ec1a1eb364f70d33922a6936f01d981e9e7f620 (patch) | |
| tree | 73f34eafd4aec55ce3d0e5591f440bb2d6d22e15 /src/dolphinviewcontainer.cpp | |
| parent | 111558558437cbe14624b6916371ca7f82467bba (diff) | |
Allow to cancel the loading of search results.
BUG: 257421
FIXED-IN: 4.6.0
svn path=/trunk/KDE/kdebase/apps/; revision=1199112
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 9e927ee98..bfab87cc8 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -164,6 +164,8 @@ DolphinViewContainer::DolphinViewContainer(const KUrl& url, QWidget* parent) : // initialize status bar m_statusBar = new DolphinStatusBar(this, m_view); + connect(m_statusBar, SIGNAL(stopPressed()), this, SLOT(stopLoading())); + m_statusBarTimer = new QTimer(this); m_statusBarTimer->setSingleShot(true); m_statusBarTimer->setInterval(300); @@ -550,6 +552,11 @@ void DolphinViewContainer::closeSearchBox() setSearchModeEnabled(false); } +void DolphinViewContainer::stopLoading() +{ + m_view->stopLoading(); +} + bool DolphinViewContainer::isSearchUrl(const KUrl& url) const { const QString protocol = url.protocol(); |
